serratus-bio / serratus.io

Front-end code for Serratus project website
https://serratus.io
GNU Affero General Public License v3.0
11 stars 11 forks source link

Add `palmid` Report Page #149

Closed ababaian closed 2 years ago

ababaian commented 3 years ago

PalmID has a containerized version of it running on AWS Lambda, and an API interface to submit data to it as described by palmid-lambda.

I'd like to add a webform to parse input FASTA data and submit data to the API, which returns a hash for the input. The hash is a key to where the HTML report will be stored on S3 once it is generated. (s3://openvirome.com/MY_HASH.html)

After submission the url should update to: serratus.io/palmid --> serratus.io/palmid?hash=MY_HASH.

If the report HTML is not available, there should be a "loading page" which pings for the HTML file every 30 seconds or so. Once the report file is available, it is loaded in the same iframe (serratus.io/palmid?hash=MY_HASH)

Code so far is here: https://github.com/serratus-bio/serratus.io/tree/palmid

binoyskumar92 commented 3 years ago

I can work on this/ I'm working on it

victorlin commented 3 years ago

Thanks @binoyskumar92! I've had a busy week, haven't had a chance to dig in yet. Will be happy to review any PR.