Skip to content
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

Merged
merged 3 commits into from
May 4, 2021
Merged

Conversation

ahaessly
Copy link
Contributor

@ahaessly ahaessly commented Apr 29, 2021

This also start the mark down for how to find cost info for the aou prod project

Copy link
Contributor

@kcibul kcibul left a 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
Copy link
Contributor

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

Copy link
Contributor

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))
Copy link
Contributor

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",
Copy link
Contributor

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).

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
Copy link
Contributor

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


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'
Copy link
Contributor

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

@ahaessly ahaessly merged commit 17f913b into ah_var_store May 4, 2021
@ahaessly ahaessly deleted the ah_add_sample_name_input branch May 4, 2021 16:06
This was referenced Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants