-
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
Restore withdrawn [VS-581] #8006
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## ah_var_store #8006 +/- ##
================================================
Coverage ? 86.243%
Complexity ? 35201
================================================
Files ? 2173
Lines ? 165004
Branches ? 17791
================================================
Hits ? 142304
Misses ? 16373
Partials ? 6327 |
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
|
||
NUMROWS=$(python3 -c "csvObj=open('num_rows.csv','r');csvContents=csvObj.read();print(csvContents.split('\n')[1]);") | ||
SELECT COUNT(*) FROM `~{fq_sample_table}` WHERE |
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 believe the input fq_sample_table_lastmodified_timestamp
is no longer needed.
help='File containing list of samples to extract, 1 per line. ' + | ||
'All samples in this file will be included in the cohort regardless of `withdrawn` status in the `sample_info` table.') | ||
sample_args.add_argument('--fq_cohort_sample_names', type=str, | ||
help='FQN of cohort table to extract, contains "sample_name" column. ' + |
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 spell out FQN (I actually had to look it 😁 )
samples.sample_id NOT IN (SELECT sample_id FROM `~{dataset_name}.sample_load_status` WHERE status="FINISHED") AND | ||
samples.withdrawn is NULL | ||
|
||
' > sample_map |
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.
csv the filename
SELECT IFNULL(MIN(sample_id),0) as min, IFNULL(MAX(sample_id),0) as max FROM `~{dataset_name}.~{table_name}` | ||
AS samples JOIN `~{temp_table}` AS temp ON samples.sample_name = temp.sample_name | ||
|
||
' > results |
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.
csv the filename
01f21d9
to
9c88111
Compare
895c115
to
e7ba68b
Compare
e7ba68b
to
86f45ae
Compare
Putting this out for early review as I slowly continue to test the changes. 'Hide whitespace' highly recommended when viewing the diffs due to PEP8-fueled horizontal whitespace fixes in a couple of Python scripts.