bihealth / sodar-server

SODAR: System for Omics Data Access and Retrieval
https://github.com/bihealth/sodar-server
MIT License
14 stars 3 forks source link

Set of ontologies for lookup #944

Open mikkonie opened 4 years ago

mikkonie commented 4 years ago

We need to set up an initial set of supported ontologies when deploying the ontology editor feature of #699.

My thinking is to query for existing sheets on sodar.bihealth.org and collect a list from there. I'll have to test each ontology to make sure they work correctly with the parser.

The Ansible playbook will also have to be edited to import/update the ontologies using the importobo management command.

TL;DR

Currently Used in CUBI SODAR

Currently Not Used

TBD: Are these needed?

Fixed

Available But Not Working

N/A

Non-Standard Accession URL Patterns

mikkonie commented 4 years ago

Django shell script to get currently used ontologies by name:

from samplesheets.models import Investigation
ol = []

for inv in Investigation.objects.all(): 
    for o in inv.ontology_source_refs: 
        if o['name'] not in ol: 
            ol.append(o['name'])

for o in sorted(ol):
    print(o)
mikkonie commented 4 years ago

Storing list of management commands for import here in lack of a better place.

./manage.py importobo -n CL --title "Cell Ontology" -u http://purl.obolibrary.org/obo/cl.obo
./manage.py importobo -n DUO --title "Data Use Ontology" -u http://purl.obolibrary.org/obo/duo.owl
./manage.py importobo -n HP --title "Human Phenotype Ontology" -u http://purl.obolibrary.org/obo/hp.obo
./manage.py importobo -n MS --title "Mass Spectrometry Ontology" -u http://purl.obolibrary.org/obo/ms.obo
./manage.py importobo -n NCBITAXON --title "NCBI Taxonomy" -u https://github.com/obophenotype/ncbitaxon/releases/download/current/taxslim.obo
./manage.py importobo -n ORDO --title "Orphanet Rare Disease Ontology" -p /LOCAL/PATH/orphanet_ordo_fix.obo --term-url "http://www.orpha.net/ORDO/{id_space}_{local_id}"
./manage.py importomim -p /LOCAL/PATH/OMIM.csv
./manage.py importobo -n PATO --title "Phenotype And Trait Ontology" -u http://purl.obolibrary.org/obo/pato.obo
./manage.py importobo -n PRIDE --title "PRoteomics IDEntifications" -p /LOCAL/PATH/pride_cv_fix.obo
./manage.py importobo -n ROLEO --title "Role Ontology" -u http://data.bioontology.org/ontologies/ROLEO/submissions/3/download?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb -f owl
./manage.py importobo -n UBERON --title "Uberon" -p /LOCAL/PATH/uberon_basic_fix.obo
./manage.py importobo -n OBI --title "Ontology for Biomedical Investigations" -u http://purl.obolibrary.org/obo/obi.obo
mikkonie commented 3 years ago

Update for current versions of ontologies and fastobo-py v0.10.1: