Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Calculate the number of possible mappings between bioregistry entries.""" | |
from itertools import combinations | |
from bioregistry.external.getters import GETTERS | |
from bioregistry.version import VERSION | |
from humanize import intword | |
def main(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#defaultView:Graph | |
SELECT ?s ?sLabel ?rgb ?edgelabel ?o ?oLabel | |
WHERE { | |
{ | |
SELECT ?s ?sLabel ?rgb ?o ?oLabel | |
WHERE { | |
?o wdt:P50 wd:Q47475003, ?s . | |
FILTER (?s != wd:Q47475003) | |
OPTIONAL { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import pandas as pd | |
import pybiopax | |
ALL_PATHWAYS = "https://reactome.org/download/current/ReactomePathways.txt" | |
def download_reactome(directory): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tabulate | |
import bioregistry | |
def main(): | |
"""Generate a curation sheet for URL format strings with problematic trailing slashes.""" | |
rows = [] | |
for prefix, resource in bioregistry.read_registry().items(): | |
format_url = resource.get_format() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Generate PyKEEN model tweets.""" | |
from textwrap import dedent | |
import click | |
from docdata import get_docdata | |
from pykeen.models import model_resolver | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
import requests | |
def has_topic(owner: str, repo: str, topic: str, token: Optional[str] = None) -> bool: | |
"""Check if the given GitHub repository has the given topic. | |
:param owner: The name of the owner/organization for the repository. | |
:param repo: The name of the repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script blasts all of the OBO Foundry Repositories with a given issue. | |
Use sparingly. | |
______________________________ | |
/ with great power comes great \ | |
\ responsibility / | |
------------------------------ | |
\ ^__^ |