-
Notifications
You must be signed in to change notification settings - Fork 587
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
take sample name as a param #7236
Conversation
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.
👍
@@ -5,6 +5,7 @@ workflow GvsImportGenomes { | |||
input { | |||
Array[File] input_vcfs | |||
Array[File] input_vcf_indexes | |||
Array[String] research_ids |
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.
Maybe let's call this external_sample_name
or something like that? research_ids is pretty specific to AoU
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.
Also -- can you update the example json (GvsImportGenomes.example.inputs.json)
@@ -24,6 +25,9 @@ workflow GvsImportGenomes { | |||
|
|||
String docker_final = select_first([docker, "us.gcr.io/broad-gatk/gatk:4.1.7.0"]) | |||
|
|||
# how do i return an error if the lengths are not equal? | |||
# if (length(input_vcfs) != length(input_vcf_indexes) != length(research_ids)) |
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 think if you just exit 1
from bash here, that would cause the overall task to fail
doc = "Sample id", | ||
optional = true) | ||
public Long sampleIdParam; | ||
|
||
@Argument(fullName = "sample-name", | ||
shortName = "SN", | ||
doc = "Sample id", |
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.
Some docs here would be really helpful I think for the constellation of parameters around sample-name, gvs-sample-id, sample-name-mapping (maybe even the same comment for all of these parameters).
scripts/variantstore/README.md
Outdated
After using the json file to auth as that service account, you can query the | ||
`region-us`.INFORMATION_SCHEMA.JOBS_BY_USER table to narrow down the query you are interested in. | ||
|
||
gcloud auth activate-service-account --key-file=aou_wgs_vumc_prod.json |
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.
maybe change the json key name here, I'm nervous about having AOU specific details checked into a public repo
scripts/variantstore/README.md
Outdated
|
||
gcloud auth activate-service-account --key-file=aou_wgs_vumc_prod.json | ||
# use queries like this to narrow down the time window of the queries you are interested in | ||
bq --project_id aou-genomics-curation-prod query --use_legacy_sql=false 'select total_bytes_billed, job_id, creation_time, start_time, query from `region-us`.INFORMATION_SCHEMA.JOBS_BY_USER where creation_time > "2021-04-16 00:00:00" and creation_time < "2021-04-18 00:00:00" and total_bytes_billed > 1 order by creation_time asc limit 100' |
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.
same thing for the project IDs
This also start the mark down for how to find cost info for the aou prod project