Twitter isn't a friendly place anymore (to put it mildly), so it doesn't track with the Bioregistry project values to promote it as a platform. This gist will serve as a final resting place for the mappings, outside of the Bioregistry itself.
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
| { | |
| "14": [ | |
| "ffdd3a7e-f82e-4600-98b1-20402e74b0a6" | |
| ], | |
| "15": [ | |
| "1837" | |
| ], | |
| "16": [ | |
| "627" | |
| ], |
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
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "sssom-pydantic[wikidata]>=0.1.18", | |
| # ] | |
| # /// | |
| from urllib.request import urlretrieve | |
| from sssom_pydantic.contrib.wikidata import read_and_open_quickstatements |
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 Any | |
| import curies | |
| from bioregistry import get_iri | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import json | |
This demonstration goes along with information-artifact-ontology/ontology-metadata#194 to show what happens when ROBOT tries to convert an ontology that has hierarchical synonym type properties.
Unfortunately, it doesn't appear to write the child property in OBO. This is probably because the parser
only looks for direct children of oboInOwl:SynonymTypeProperty
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 bioregistry | |
| import quickstatements_client | |
| import sssom | |
| from curies.dataframe import filter_df_by_curies, filter_df_by_prefixes | |
| from quickstatements_client import Line, Qualifier, TextLine, TextQualifier | |
| from sssom import MappingSetDataFrame | |
| def open_quickstatements_tab(msdf: MappingSetDataFrame) -> None: | |
| """Create a QuickStatements tab from mappings.""" |
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
| Prefix | Resource Name | RegEx | Example | |
|---|---|---|---|---|
| anzctr | Australian New Zealand Clinical Trials Registry | ACTRN\d+ | ACTRN12623000498695 | |
| beetlebase | Tribolium Genome Database -- Insertion | TC\d+ | TC010103 | |
| blastrule | BlastRule | NBR\d+ | NBR016799 | |
| cellopub | Cellosaurus Publication | CLPUB\d+ | CLPUB00496 | |
| chembl | ChEMBL | CHEMBL\d+ | CHEMBL4303805 | |
| chembl.cell | ChEMBL database of bioactive drug-like small [...] | CHEMBL\d+ | CHEMBL3307800 | |
| chembl.compound | ChEMBL | CHEMBL\d+ | CHEMBL465070 | |
| chembl.target | ChEMBL target | CHEMBL\d+ | CHEMBL3467 | |
| chempro.competitor | ChemPro Competitor | LDCM\d+ | LDCM0160 |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "clinicaltrials-downloader>=0.0.2", | |
| # "pyobo[grounding]", | |
| # "tabulate", | |
| # "pystow", | |
| # "click", | |
| # ] | |
| # |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "beautifulsoup4", | |
| # "requests", | |
| # "yt-dlp", | |
| # ] | |
| # /// | |
| """Download chapters from Wind and Truth. |
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 json | |
| import bioregistry | |
| if __name__ == "__main__": | |
| r = json.load(open("mismatch.json")) | |
| with open("mismatches.sssom.tsv", "w") as file: | |
| print( | |
| "subject_id", | |
| "subject_label", |
NewerOlder