-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Currently when querying mutli-segmented organisms (or pathogens with multiple subtypes) the segment can be added to the alignedNucleotideSequences download but also needs to be added as a prefix to all mutation queries - ideally we could re-route requests and add this prefix in LAPIS.
Now:
curl -X 'GET' \
'https://lapis-main.loculus.org/cchf/sample/alignedNucleotideSequences/L\
-H 'accept: application/json'
curl -X 'POST' \
'https://lapis-main.loculus.org/cchf/sample/aminoAcidMutations' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"nucleotideMutations": [
"sequence1:A123T"
],
"aminoAcidMutations": [
"sequence1_gene:123T"
],
}'
Would become (the top query would still work but the bottom one would be changed to the top one internally when querying SILO):
curl -X 'GET' \
'https://lapis-main.loculus.org/cchf/L/sample/alignedNucleotideSequences/\
-H 'accept: application/json'
curl -X 'POST' \
'https://lapis-main.loculus.org/cchf/L/sample/aminoAcidMutations' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"nucleotideMutations": [
"A123T"
],
"aminoAcidMutations": [
"gene:123T"
],
}'
Metadata
Metadata
Assignees
Labels
No labels