-
Notifications
You must be signed in to change notification settings - Fork 9
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
Rework update submissions to allow re-submissions #256
base: dev
Are you sure you want to change the base?
Conversation
_csv_file
Test the three different flags, for example (with virus test data):
NOTE: # 3 should fail if it doesn't find the accession ID in the submission report csv file, and now that I'm thinking about it - it probably doesn't fail. If you can test and let me know, then I'll fix that. To update a submission, NCBI requires the accession IDs (that get pulled into the submission_report.csv file if they exist. On the test server, we never get those...I still need to work that out or do a prod submission to properly assess this feature, but need to talk to NCBI before I submit to prod, so I don't break stuff). |
Description
This reworks the update_submissions module so that it is used for re-submitting updates to BioSample, etc. Now the
--update_submissions
flag is used to submit an updated metadata file. It requires the submission_report.csv to be present in its expected location (with valid accession IDs) and will upload new submission/xml files with updated metadata and the accession IDs.There is a new fetch_submissions module that runs after initial_submissions. It runs after an initial submission or an update submission, but can also be run independently with fetch_reports_only = true.
The subworkflow was re-worked a bit to allow these three independent submission-related functionalities:
Checklist
Go Through Checklist Below and Place A ✔️ (X Inside the Box) if Completed
General Checks
[] Have you run appropriate tests (unit/integration/end-to-end) to check logic across run environments (Conda/Docker/Singularity on Scicomp/AWS/NF Tower/Local)?
Checked test profile on Scicomp, with Singularity
For each relevant configuration:
Have you conducted proper linting procedures?
[] Have you updated existing documentation (README.md, etc.) or created new ones within docs?
I have not done this yet. Should be completed before merging the PR.
We need to add fetch_reports_only flag, and explain that's just for fetching the report.xml from NCBI server if, for instance, it wasn't fetched after the initial submission ran. And we need to clarify that update_submission is for updating a submission you've already made - it requires the submission_report.csv (with valid accession IDs) and will upload new submission/xml files with updated metadata and the accession IDs. The IDs are required for NCBI to link the record to the original one and update it (otherwise it gets submitted as a new record).
CDC Checks
Are additional approvals needed for this change? If so, please mention them below:
Are there potential vulnerabilities or licensing issues with any new dependencies introduced? If so, please mention them below: