diff options
author | Pjotr Prins | 2020-07-21 11:33:54 +0100 |
---|---|---|
committer | Pjotr Prins | 2020-07-21 11:33:54 +0100 |
commit | a259e9a1da5c56c100292c1cb4c5ef7941596611 (patch) | |
tree | 320b945e72d93ecf42bc096dbe72e4b224a1a4aa | |
parent | 76be1c0da7593ae61c0935747d21b1ff5a844985 (diff) | |
download | bh20-seq-resource-a259e9a1da5c56c100292c1cb4c5ef7941596611.tar.gz bh20-seq-resource-a259e9a1da5c56c100292c1cb4c5ef7941596611.tar.lz bh20-seq-resource-a259e9a1da5c56c100292c1cb4c5ef7941596611.zip |
sequencer/mapper
-rw-r--r-- | bh20simplewebuploader/api.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bh20simplewebuploader/api.py b/bh20simplewebuploader/api.py index 65435ea..2a5529f 100644 --- a/bh20simplewebuploader/api.py +++ b/bh20simplewebuploader/api.py @@ -17,14 +17,15 @@ def fetch_sample_metadata(id): PREFIX efo: <http://www.ebi.ac.uk/efo/> PREFIX evs: <http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#> PREFIX obo: <http://purl.obolibrary.org/obo/> - select distinct ?id ?seq ?date ?info ?specimen ?sequencer + select distinct ?id ?seq ?date ?info ?specimen ?sequencer ?mapper { ?sample sio:SIO_000115 "%s" ; sio:SIO_000115 ?id ; evs:C25164 ?date . ?seq pubseq:technology ?tech ; pubseq:sample ?sample . - ?tech efo:EFO_0002699 ?sequencer . + ?tech efo:EFO_0002699 ?mapper ; + obo:OBI_0600047 ?sequencer . optional { ?sample edam:data_2091 ?info } . optional { ?sample obo:OBI_0001479 ?specimen } . } limit 5 @@ -52,6 +53,7 @@ def sample(id): 'info': x['info']['value'], 'specimen': x['specimen']['value'], 'sequencer': x['sequencer']['value'], + 'mapper': x['mapper']['value'], } for x in meta]) @app.route('/api/ebi/sample-<id>.xml', methods=['GET']) |