-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(ena-submission): Create ena samples #2312
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anna-parker
changed the title
Create ena samples
feat(ena-submission): Create ena samples
Jul 19, 2024
anna-parker
force-pushed
the
create_ena_samples
branch
from
July 24, 2024 08:51
8db4aab
to
3ecd214
Compare
anna-parker
force-pushed
the
create_ena_samples
branch
2 times, most recently
from
August 9, 2024 10:15
7329cc0
to
1c378aa
Compare
anna-parker
force-pushed
the
create_ena_samples
branch
4 times, most recently
from
August 14, 2024 07:03
6e1830d
to
7453de9
Compare
anna-parker
added
preview
Triggers a deployment to argocd
and removed
preview
Triggers a deployment to argocd
labels
Aug 14, 2024
7 tasks
anna-parker
force-pushed
the
create_ena_samples
branch
from
August 29, 2024 09:12
5735831
to
303d384
Compare
…d mapping. Keep state in sample_table. Send slack notifications if submission fails.
anna-parker
force-pushed
the
create_ena_samples
branch
from
August 29, 2024 10:07
bab330f
to
9438de0
Compare
anna-parker
added
preview
Triggers a deployment to argocd
and removed
preview
Triggers a deployment to argocd
labels
Aug 29, 2024
corneliusroemer
added
preview
Triggers a deployment to argocd
and removed
preview
Triggers a deployment to argocd
labels
Sep 16, 2024
Closing as this was part of #2417 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #2313, #2398
preview URL: https://create-ena-samples.loculus.org/
Summary
Uses same principal as create_ena_projects to keep submission state in DB - please review that PR first :-)
Summary
This adds the following rule to the ena-submission snakemake file :
create_samples
rule . This function will continuously (in a loop) scan for new sequences where a sample needs to be created and trigger their creation. It will also update both thesubmission_table
and thesample_table
.High level overview of
sample_creation
:In a loop:
submission_table
in state SUBMITTED_PROJECTsample_table
for the corresponding (accession, version)):-- if (entry is in status SUBMITTED): update
submission_table
to SUBMITTED_SAMPLE.-- else: update
submission_table
to SUBMITTING_SAMPLE.sample_table
for (accession, version).submission_table
in state SUBMITTING_SAMPLEsample_table
entry is in state SUBMITTED): update entries to state SUBMITTED_SAMPLE.sample_table
in state READY, prepare submission object, set status to SUBMITTINGsample_table
in state HAS_ERRORS for over 15min and sequences in status SUBMITTING for over 15min: #TODO (handle failure ena-submission: Recover from failed project/sample/assembly submission #2311), currently just throw an errorENA Sample
This PR will create samples in ENA with the following attributes, with additional sample attributes defined by the metadata mapping: metadata mapping defined in: #2313 (comment)
PR Checklist
upload to submission_table and project creation works as intended: