-
Notifications
You must be signed in to change notification settings - Fork 596
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
VS-1159 - Enhance GVSWithdrawSamples #8599
Conversation
LEFT JOIN `~{dataset_name}.sample_info` sample_info ON sample_info.sample_name = callset.sample_name | ||
WHERE sample_info.sample_name IS NULL' > new_samples.txt | ||
|
||
echo "The following samples in the uploaded list have NOT been loaded into ~{dataset_name}" |
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.
I worry this message might get missed...could this condition be checked first and generate an error if there are samples that need to be loaded?
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.
I wondered about this too, but the AC are to let it pass if there are samples that have not been loaded.
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.
But I kind of feel that it should fail if there are samples in the file that haven't been uploaded.
Co-authored-by: Miguel Covarrubias <[email protected]>
Co-authored-by: Miguel Covarrubias <[email protected]>
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.
My only request is that you update the docs (https://github.com/broadinstitute/gatk/blob/ah_var_store/scripts/variantstore/docs/aou/AOU_DELIVERABLES.md) to include what to do with the outputs (e.g. ingest the missing samples, make sure the number of samples that are withdrawn is as expected).
…outputs of GvsWithdrawSamples.
…es yet to be ingested in the list.
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.
LGTM. Thanks for adding the flag to control the behavior
This PR updates GvsWithdrawSamples to:
A) Example Run with 0 samples withdrawn and 0 new samples (samples in the withdrawn file that aren't in sample_info)
B) Example Run with 1 sample withdrawn and 0 new samples (samples in the withdrawn file that aren't in sample_info)
C) Example Run with 1 sample withdrawn and 1 new sample (sample in the withdrawn file that wasn't in sample_info). This run was run with the override flag allowing it to pass
D) Example Run with 1 sample withdrawn and 1 new sample (sample in the withdrawn file that wasn't in sample_info). This run failed (as intended)