From a259e9a1da5c56c100292c1cb4c5ef7941596611 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 21 Jul 2020 11:33:54 +0100 Subject: sequencer/mapper --- bh20simplewebuploader/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bh20simplewebuploader') 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: PREFIX evs: PREFIX 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-.xml', methods=['GET']) -- cgit v1.2.3