-
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
[AoU DRC] Support uppercase site_ids for reblocking #7929
Conversation
.dockstore.yml
Outdated
@@ -73,6 +73,7 @@ workflows: | |||
branches: | |||
- master | |||
- ah_var_store | |||
- mmt_aou_site_id_fix |
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.
to remove before merging, but keeping in case changes are requested
(if select_first([site_id]) == "bcm" then "gs://prod-genomics-data-baylor/" else | ||
(if select_first([site_id]) == "uw" then "gs://prod-genomics-data-northwest/" else "null" ))) | ||
else "" | ||
# janky lower |
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.
please someone tell me a better way to do this
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 couldn't find a way. If no one else can, I would just add a comment that this is WDL for .toLowerCase()
.
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.
good call, thanks!
Codecov Report
@@ Coverage Diff @@
## ah_var_store #7929 +/- ##
================================================
Coverage ? 86.288%
Complexity ? 35194
================================================
Files ? 2170
Lines ? 164888
Branches ? 17785
================================================
Hits ? 142278
Misses ? 16288
Partials ? 6322 |
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.
No help, just a nit.
(if select_first([site_id]) == "bcm" then "gs://prod-genomics-data-baylor/" else | ||
(if select_first([site_id]) == "uw" then "gs://prod-genomics-data-northwest/" else "null" ))) | ||
else "" | ||
# janky lower |
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 couldn't find a way. If no one else can, I would just add a comment that this is WDL for .toLowerCase()
.
@@ -77,7 +81,7 @@ task ReblockAndCopy { | |||
set -x | |||
|
|||
if [ ~{site_id} -a ~{dir} == "null" ]; then | |||
echo "dir is not set to a valid value: ~{dir}. check site_id - only valid values are ['bi', 'bcm', 'uw']" | |||
echo "dir is not set to a valid value. site_id is ~{site_id}. check site_id - only valid values are ['bi', 'bcm', 'uw']" |
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.
nit for clarity (feel free to finesse)
echo "dir is not set to a valid value. site_id is ~{site_id}. check site_id - only valid values are ['bi', 'bcm', 'uw']" | |
echo "The additional output directory for the reblocked gVCFs can not set to a valid value because the site_id is '~{site_id}' and the only valid values are ['bi', 'bcm', 'uw']." |
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.
thank you! this is way better
else "" | ||
# this is WDL for .toLowerCase() for the three possible site codes | ||
String site_id_lower = if defined(site_id) then ( | ||
sub(sub(sub(select_first([site_id]), "BI", "bi"), "BCM", "bcm"), "UW", "uw") |
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.
omg this hurts, but I understand
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 agree, i am embarrassed
This PR modifies the AoU-specific WDL
GvsAoUReblockGvcf
to support processing samples whose site_ids (usually lowercase) were sent in as uppercase.