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

address VS-152, remove extra headers from extract #7466

Merged
merged 4 commits into from
Sep 13, 2021
Merged

Conversation

kcibul
Copy link
Contributor

@kcibul kcibul commented Sep 13, 2021

No description provided.

import htsjdk.variant.vcf.VCFHeaderLine;
import htsjdk.variant.vcf.VCFHeaderLineType;
import htsjdk.samtools.SAMSequenceDictionary;
import htsjdk.variant.vcf.*;
Copy link
Contributor

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?

Copy link
Contributor Author

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

@gatk-bot
Copy link

Travis reported job failures from build 35992
Failures in the following jobs:

Test Type JDK Job ID Logs
unit openjdk11 35992.13 logs

@gatk-bot
Copy link

gatk-bot commented Sep 13, 2021

Travis reported job failures from build 35994
Failures in the following jobs:

Test Type JDK Job ID Logs
unit openjdk11 35994.13 logs
unit openjdk8 35994.3 logs

Copy link
Contributor

@ahaessly ahaessly left a 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) " \
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah great catch

@kcibul kcibul merged commit a9206a2 into ah_var_store Sep 13, 2021
@kcibul kcibul deleted the kc_vcf_header branch September 13, 2021 20:45
@gatk-bot
Copy link

gatk-bot commented Sep 13, 2021

Travis reported job failures from build 35997
Failures in the following jobs:

Test Type JDK Job ID Logs
unit openjdk11 35997.13 logs
unit openjdk8 35997.3 logs

RoriCremer pushed a commit that referenced this pull request Sep 20, 2021
* 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
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.

4 participants