-
Notifications
You must be signed in to change notification settings - Fork 0
Add endpoints for Upload/download samples metadata #87
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
base: main
Are you sure you want to change the base?
Conversation
EricSDavis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ✅ Download functionality works well.
- ❌ Re-uploading the same samplesheet to a project results in a 500 integrity error for samples. This could be problematic if a user wants to make partial edits to a samplesheet and re-upload it.
- 📝 Update
add_sample_to_project()to check for existing samples/sample attributes and make edits, rather than attempting to create a new sample which triggers an error.
- 📝 Update
- ℹ️ Uploading a samplesheet takes a long time. Not sure if there is a more efficient way than calling put/post requests to opensearch with each sample addition - maybe doing this as a batch?
- 🙏 Request addition of an endpoint to delete/unlink sample/samplesheet? Users otherwise have no way to remove samples linked to a project.
|
|
The upload functionality is to reset the sample metadata for all samples in the project. |
|
When a samplesheet is uploaded, we can scan the bucket to ensure fastq file are present for the sample. If they are not, the sample can be highlighted in red. |
|
Also, the user should be able to re-scan the bucket to auto-populate the samplesheet, then they can download the auto-created samplesheet to populate with metadata and re-upload. |
This PR add GET "/{project_id}/samples/download" and POST "/{project_id}/samples/upload" endpoints