pyobo 0.12.7__tar.gz → 0.12.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyobo-0.12.7 → pyobo-0.12.8}/PKG-INFO +1 -1
- {pyobo-0.12.7 → pyobo-0.12.8}/pyproject.toml +2 -2
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/__init__.py +2 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/__init__.py +2 -1
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/embedding.py +26 -1
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/__init__.py +2 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/chembl/chembl_target.py +1 -1
- pyobo-0.12.8/src/pyobo/sources/iconclass.py +55 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/version.py +1 -1
- {pyobo-0.12.7 → pyobo-0.12.8}/LICENSE +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/README.md +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/.DS_Store +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/__main__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/alts.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/combine.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/edges.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/hierarchy.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/metadata.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/names.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/properties.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/relations.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/species.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/typedefs.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/api/xrefs.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/cli/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/cli/cli.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/cli/database.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/cli/database_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/cli/lookup.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/cli/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/constants.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/getters.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/gilda_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/api.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/relations/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/relations/api.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/relations/data.json +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/relations/data_owl.json +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/relations/data_rdf.json +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/identifier_utils/relations/data_rdfs.json +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/mocks.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ner/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ner/api.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ner/normalizer.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/plugins.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/py.typed +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resource_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resources/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resources/ncbitaxon.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resources/ncbitaxon.tsv.gz +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resources/ro.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resources/ro.tsv +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resources/so.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/resources/so.tsv +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/README.md +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/agrovoc.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/antibodyregistry.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/bigg/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/bigg/bigg_compartment.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/bigg/bigg_metabolite.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/bigg/bigg_model.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/bigg/bigg_reaction.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/biogrid.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/ccle.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/cgnc.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/chebi.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/chembl/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/chembl/chembl_cell.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/chembl/chembl_compound.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/chembl/chembl_mechanism.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/chembl/chembl_tissue.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/civic_gene.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/clinicaltrials.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/complexportal.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/conso.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/cpt.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/credit.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/cvx.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/depmap.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/dictybase_gene.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/drugbank/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/drugbank/drugbank.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/drugbank/drugbank_salt.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/drugcentral.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/expasy.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/famplex.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/flybase.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/gard.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/geonames/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/geonames/features.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/geonames/geonames.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/geonames/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/gmt_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/go.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/gtdb.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/gwascentral/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/gwascentral/gwascentral_phenotype.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/gwascentral/gwascentral_study.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/hgnc/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/hgnc/hgnc.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/hgnc/hgncgenefamily.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/iana_media_type.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/icd/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/icd/icd10.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/icd/icd11.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/icd/icd_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/intact.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/interpro.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/itis.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/kegg/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/kegg/api.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/kegg/genes.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/kegg/genome.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/kegg/pathway.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/mesh.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/mgi.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/mirbase/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/mirbase/mirbase.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/mirbase/mirbase_constants.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/mirbase/mirbase_family.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/mirbase/mirbase_mature.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/msigdb.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/ncbi/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/ncbi/ncbi_gc.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/ncbi/ncbigene.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/nih_reporter.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/nlm/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/nlm/nlm_catalog.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/nlm/nlm_publisher.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/nlm/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/npass.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/omim_ps.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pathbank.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pfam/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pfam/pfam.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pfam/pfam_clan.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pharmgkb/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pharmgkb/pharmgkb_chemical.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pharmgkb/pharmgkb_disease.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pharmgkb/pharmgkb_gene.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pharmgkb/pharmgkb_pathway.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pharmgkb/pharmgkb_variant.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pharmgkb/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pid.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pombase.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/pubchem.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/reactome.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/rgd.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/rhea.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/ror.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/selventa/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/selventa/schem.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/selventa/scomp.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/selventa/sdis.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/selventa/sfam.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/sgd.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/signor/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/signor/download.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/signor/signor_complexes.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/slm.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/spdx.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/umls/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/umls/__main__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/umls/get_synonym_types.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/umls/sty.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/umls/synonym_types.tsv +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/umls/umls.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/unimod.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/uniprot/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/uniprot/uniprot.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/uniprot/uniprot_ptm.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/wikipathways.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/sources/zfin.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ssg/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ssg/base.html +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ssg/index.html +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ssg/term.html +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/ssg/typedef.html +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/functional/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/functional/dsl.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/functional/macros.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/functional/obo_to_functional.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/functional/ontology.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/functional/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/obo/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/obo/reader.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/obo/reader_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/obograph/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/obograph/export.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/obograph/reader.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/obograph/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/reference.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/struct.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/struct_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/typedef.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/struct/vocabulary.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/utils/__init__.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/utils/cache.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/utils/io.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/utils/iter.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/utils/misc.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/utils/ndex_utils.py +0 -0
- {pyobo-0.12.7 → pyobo-0.12.8}/src/pyobo/utils/path.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobo
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.8
|
|
4
4
|
Summary: A python package for handling and generating OBO
|
|
5
5
|
Keywords: snekpack,cookiecutter,ontologies,biomedical ontologies,life sciences,natural sciences,bioinformatics,cheminformatics,Open Biomedical Ontologies,OBO
|
|
6
6
|
Author: Charles Tapley Hoyt
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pyobo"
|
|
7
|
-
version = "0.12.
|
|
7
|
+
version = "0.12.8"
|
|
8
8
|
description = "A python package for handling and generating OBO"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -296,7 +296,7 @@ known-first-party = [
|
|
|
296
296
|
docstring-code-format = true
|
|
297
297
|
|
|
298
298
|
[tool.bumpversion]
|
|
299
|
-
current_version = "0.12.
|
|
299
|
+
current_version = "0.12.8"
|
|
300
300
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+(?P<build>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?"
|
|
301
301
|
serialize = [
|
|
302
302
|
"{major}.{minor}.{patch}-{release}+{build}",
|
|
@@ -50,6 +50,7 @@ from .api import (
|
|
|
50
50
|
get_synonyms,
|
|
51
51
|
get_text_embedding,
|
|
52
52
|
get_text_embedding_similarity,
|
|
53
|
+
get_text_embeddings_df,
|
|
53
54
|
get_typedef_df,
|
|
54
55
|
get_xref,
|
|
55
56
|
get_xrefs,
|
|
@@ -145,6 +146,7 @@ __all__ = [
|
|
|
145
146
|
"get_synonyms",
|
|
146
147
|
"get_text_embedding",
|
|
147
148
|
"get_text_embedding_similarity",
|
|
149
|
+
"get_text_embeddings_df",
|
|
148
150
|
"get_typedef_df",
|
|
149
151
|
"get_version",
|
|
150
152
|
"get_xref",
|
|
@@ -8,7 +8,7 @@ from .alts import (
|
|
|
8
8
|
)
|
|
9
9
|
from .combine import get_literal_mappings_subset
|
|
10
10
|
from .edges import get_edges, get_edges_df, get_graph
|
|
11
|
-
from .embedding import get_text_embedding, get_text_embedding_similarity
|
|
11
|
+
from .embedding import get_text_embedding, get_text_embedding_similarity, get_text_embeddings_df
|
|
12
12
|
from .hierarchy import (
|
|
13
13
|
get_ancestors,
|
|
14
14
|
get_children,
|
|
@@ -119,6 +119,7 @@ __all__ = [
|
|
|
119
119
|
"get_synonyms",
|
|
120
120
|
"get_text_embedding",
|
|
121
121
|
"get_text_embedding_similarity",
|
|
122
|
+
"get_text_embeddings_df",
|
|
122
123
|
"get_typedef_df",
|
|
123
124
|
"get_version",
|
|
124
125
|
"get_xref",
|
|
@@ -6,8 +6,9 @@ from typing import TYPE_CHECKING
|
|
|
6
6
|
|
|
7
7
|
import curies
|
|
8
8
|
import numpy as np
|
|
9
|
+
import pandas as pd
|
|
9
10
|
|
|
10
|
-
from pyobo.api.names import get_definition, get_name
|
|
11
|
+
from pyobo.api.names import get_definition, get_name, get_references
|
|
11
12
|
|
|
12
13
|
if TYPE_CHECKING:
|
|
13
14
|
import sentence_transformers
|
|
@@ -16,6 +17,7 @@ __all__ = [
|
|
|
16
17
|
"get_text_embedding",
|
|
17
18
|
"get_text_embedding_model",
|
|
18
19
|
"get_text_embedding_similarity",
|
|
20
|
+
"get_text_embeddings_df",
|
|
19
21
|
]
|
|
20
22
|
|
|
21
23
|
|
|
@@ -39,6 +41,29 @@ def _get_text(
|
|
|
39
41
|
return name
|
|
40
42
|
|
|
41
43
|
|
|
44
|
+
def get_text_embeddings_df(
|
|
45
|
+
prefix: str,
|
|
46
|
+
*,
|
|
47
|
+
model: sentence_transformers.SentenceTransformer | None = None,
|
|
48
|
+
) -> pd.DataFrame:
|
|
49
|
+
"""Get embeddings for all entities in the resource.
|
|
50
|
+
|
|
51
|
+
:param prefix: A reference, either as a string or Reference object
|
|
52
|
+
:param model: A sentence transformer model. Defaults to ``all-MiniLM-L6-v2`` if not given.
|
|
53
|
+
"""
|
|
54
|
+
luids, texts = [], []
|
|
55
|
+
for reference in get_references(prefix):
|
|
56
|
+
text = _get_text(reference)
|
|
57
|
+
if text is None:
|
|
58
|
+
continue
|
|
59
|
+
luids.append(reference.identifier)
|
|
60
|
+
texts.append(text)
|
|
61
|
+
if model is None:
|
|
62
|
+
model = get_text_embedding_model()
|
|
63
|
+
res = model.encode(texts)
|
|
64
|
+
return pd.DataFrame(res, index=luids)
|
|
65
|
+
|
|
66
|
+
|
|
42
67
|
def get_text_embedding(
|
|
43
68
|
reference: str | curies.Reference | curies.ReferenceTuple,
|
|
44
69
|
*,
|
|
@@ -34,6 +34,7 @@ from .gwascentral import GWASCentralPhenotypeGetter, GWASCentralStudyGetter
|
|
|
34
34
|
from .hgnc import HGNCGetter, HGNCGroupGetter
|
|
35
35
|
from .iana_media_type import IANAGetter
|
|
36
36
|
from .icd import ICD10Getter, ICD11Getter
|
|
37
|
+
from .iconclass import IconclassGetter
|
|
37
38
|
from .intact import IntactGetter
|
|
38
39
|
from .interpro import InterProGetter
|
|
39
40
|
from .itis import ITISGetter
|
|
@@ -115,6 +116,7 @@ __all__ = [
|
|
|
115
116
|
"ICD10Getter",
|
|
116
117
|
"ICD11Getter",
|
|
117
118
|
"ITISGetter",
|
|
119
|
+
"IconclassGetter",
|
|
118
120
|
"IntactGetter",
|
|
119
121
|
"InterProGetter",
|
|
120
122
|
"KEGGGeneGetter",
|
|
@@ -138,7 +138,7 @@ def iter_terms(version: str) -> Iterable[Term]:
|
|
|
138
138
|
def get_chembl_protein_equivalences(version: str | None = None) -> dict[str, list[str]]:
|
|
139
139
|
"""Get ChEMBL protein equivalences."""
|
|
140
140
|
if version is None:
|
|
141
|
-
version = chembl_downloader.latest()
|
|
141
|
+
version = chembl_downloader.latest(full=False)
|
|
142
142
|
url = f"ftp://ftp.ebi.ac.uk/pub/databases/chembl/ChEMBLdb/releases/chembl_{version}/chembl_uniprot_mapping.txt"
|
|
143
143
|
df = ensure_df(
|
|
144
144
|
PREFIX,
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""Get ICONCLASS as OBO."""
|
|
2
|
+
|
|
3
|
+
from collections.abc import Iterable
|
|
4
|
+
from urllib.parse import quote
|
|
5
|
+
|
|
6
|
+
import pandas as pd
|
|
7
|
+
|
|
8
|
+
from pyobo.struct import Obo, Term
|
|
9
|
+
from pyobo.utils.path import ensure_df
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"IconclassGetter",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
PREFIX = "iconclass"
|
|
16
|
+
BASE_URL = "https://github.com/iconclass/data/raw/refs/heads/main/txt/en/txt_en_{}.txt"
|
|
17
|
+
URLS = [
|
|
18
|
+
BASE_URL.format("0_1"),
|
|
19
|
+
BASE_URL.format("2_3"),
|
|
20
|
+
BASE_URL.format("4"),
|
|
21
|
+
BASE_URL.format("5_6_7_8"),
|
|
22
|
+
BASE_URL.format("9"),
|
|
23
|
+
BASE_URL.format("keys"),
|
|
24
|
+
# shakespeare
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def get_df() -> pd.DataFrame:
|
|
29
|
+
"""Get an ICONCLASS terms dataframe."""
|
|
30
|
+
df = pd.concat(
|
|
31
|
+
ensure_df(prefix=PREFIX, url=url, sep="|", names=["luid", "name"]) for url in URLS
|
|
32
|
+
)
|
|
33
|
+
return df
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def iter_terms() -> Iterable[Term]:
|
|
37
|
+
"""Iterate over terms in ICONCLASS."""
|
|
38
|
+
for luid, name in get_df().values:
|
|
39
|
+
yv = Term.from_triple(prefix=PREFIX, identifier=quote(luid), name=name)
|
|
40
|
+
yield yv
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class IconclassGetter(Obo):
|
|
44
|
+
"""An ontology representation of ICONCLASS."""
|
|
45
|
+
|
|
46
|
+
ontology = PREFIX
|
|
47
|
+
dynamic_version = True
|
|
48
|
+
|
|
49
|
+
def iter_terms(self, force: bool = False) -> Iterable[Term]:
|
|
50
|
+
"""Iterate over terms in the ontology."""
|
|
51
|
+
return iter_terms()
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
if __name__ == "__main__":
|
|
55
|
+
IconclassGetter.cli()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|