Closed ababaian closed 1 year ago
This should be fairly straightforward. We do the same for the Explorer results page (e.g. https://serratus.io/explorer/rdrp?run=ERR2756788).
Add a parameter to the component definition: https://github.com/serratus-bio/serratus.io/blob/4cc21ac212dc114823c37bf656fa834e177c8d18/src/components/Palmid/Palmid.tsx#L10
Use URLSearchParams.get()
to set the value if it's present. Example: https://github.com/serratus-bio/serratus.io/blob/4cc21ac212dc114823c37bf656fa834e177c8d18/src/components/Explorer/Base/ExplorerBase.tsx#L80
PR open (but not complete) https://github.com/serratus-bio/serratus.io/pull/188
For BLAST, you can "pre-fill" the submission form by parsing the URL correctly. Such as:
So for
https://blast.ncbi.nlm.nih.gov/Blast.cgi
you can submit parameters/sequences using such asThis feature will add URL parsing for the
https://serratus.io/palmid
page such that it can accept a fasta sequence input, and thus a user will only have to one-click "submit" to analyze the sequence.Thus to pre-submit the input string:
Where
>
is%3E
and\n
is%0A
, the example above this would be: