Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GET / POST with S3 Urls to Loculus #49

Closed
Tracked by #45
gordonkoehn opened this issue Nov 26, 2024 · 10 comments · Fixed by #55
Closed
Tracked by #45

Implement GET / POST with S3 Urls to Loculus #49

gordonkoehn opened this issue Nov 26, 2024 · 10 comments · Fixed by #55
Assignees
Labels
enhancement New feature or request

Comments

@gordonkoehn
Copy link
Collaborator

gordonkoehn commented Nov 26, 2024

Determine what exact GET and POSTs Loculus backend requires and write a query for this.

@gordonkoehn
Copy link
Collaborator Author

gordonkoehn commented Dec 2, 2024

Chaoron was so kind to already spin up our own WISE Loculus instance.

FYI: they spin up Loculus my simply making a PR with the tag preview.

loculus-project/loculus#3330

Takes about 2 minutes to spin up.

This is the live webpage:

https://wise-seqs.loculus.org/

@gordonkoehn
Copy link
Collaborator Author

By default the the user is:

user:testuser
pw:testuser

but one can also create a new user.

@gordonkoehn
Copy link
Collaborator Author

Steps to upload data:

  1. create group in the web UX - get group number

  2. Create the files for submission metadata.tsv and sequences.fasta
    2.1) metadata.tsv contains two columns 'submissionId | s3Link' , for each sequence in the other file there is one line
    2.2) 'seqeunces.fasta' contains fasta format like the sequences

       > NNNNNNN```
       just enter NNNN for mock sequences
    
  3. Try Drag and Drop to upload these

  4. Then try API
    4.1) Get API Keys: get authentication server by logging in and copy URL
    4.2) Add this in the Keycloak URL – see authenticate request in the API - backend-wise-seqs.loculus.org - echoes a json auth token
    4.3) Make submit POST with the echo token we may submit - for the next 15 min or so - so per session

@gordonkoehn
Copy link
Collaborator Author

@gordonkoehn
Copy link
Collaborator Author

Created a group "sr2silo01" – it has Group ID: 1

@gordonkoehn gordonkoehn added the enhancement New feature or request label Dec 3, 2024
@gordonkoehn
Copy link
Collaborator Author

gordonkoehn commented Dec 3, 2024

I am running into some errors uploading the metadata in the correct format. Checking with Chaoran. Works now, really need to make sure its a tsv.

@gordonkoehn
Copy link
Collaborator Author

KeycloakURL = authentication-wise-seqs.loculus.org

@gordonkoehn
Copy link
Collaborator Author

Chaoran share this project with me to get the POST working with Authentication:

@gordonkoehn
Copy link
Collaborator Author

backend_url= backend-wise-seqs.loculus.org

@gordonkoehn
Copy link
Collaborator Author

First programmatic submissions where made; check here:
https://wise-seqs.loculus.org/test/submission/1/review

@gordonkoehn gordonkoehn linked a pull request Dec 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant