-
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
address VS-152, remove extra headers from extract #7466
Conversation
import htsjdk.variant.vcf.VCFHeaderLine; | ||
import htsjdk.variant.vcf.VCFHeaderLineType; | ||
import htsjdk.samtools.SAMSequenceDictionary; | ||
import htsjdk.variant.vcf.*; |
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.
was this intentional? Are we changing styles?
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.
intellij autoformatting -- I didn't even know we had an official style :D but happy to change it back
…aded in the __SAMPLES table
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.
only one change needed
@@ -121,7 +121,7 @@ def get_all_sample_ids(fq_destination_table_samples): | |||
|
|||
def create_extract_samples_table(fq_destination_table_samples, fq_sample_name_table, fq_sample_mapping_table): | |||
sql = f"CREATE OR REPLACE TABLE `{fq_destination_table_samples}` AS (" \ | |||
f"SELECT m.sample_id, m.sample_name FROM `{fq_sample_name_table}` s JOIN `{fq_sample_mapping_table}` m ON (s.sample_name = m.sample_name) " \ | |||
f"SELECT m.sample_id, m.sample_name, s.is_loaded FROM `{fq_sample_name_table}` s JOIN `{fq_sample_mapping_table}` m ON (s.sample_name = m.sample_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.
this should be m.is_loaded
the s table might be the temp table with only sample names
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.
ah great catch
…aded in the __SAMPLES table
* address VS-152, remove extra headers from extract * explicit imports * fixed inconsistency between prepare and extract with respect to is_loaded in the __SAMPLES table * fixed inconsistency between prepare and extract with respect to is_loaded in the __SAMPLES table
No description provided.