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

fixed bug; added tests #7717

Merged
merged 1 commit into from
Mar 11, 2022
Merged

fixed bug; added tests #7717

merged 1 commit into from
Mar 11, 2022

Conversation

kcibul
Copy link
Contributor

@kcibul kcibul commented Mar 11, 2022

No description provided.

@@ -128,14 +128,14 @@ public String getColumnValue(final VariantContext variant) {
// Try to use non-AS version
// TODO: it looks like the AS_RAW version also trims to a single decimal point??
// e.g. MQRankSum=1.465 and turn it into |1.465,1|
String outNotAlleleSpecific = getAttribute(variant, GATKVCFConstants.READ_POS_RANK_SUM_KEY, null);
String outNotAlleleSpecific = getAttribute(variant, GATKVCFConstants.MAP_QUAL_RANK_SUM_KEY, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

this is legendary now

@@ -257,8 +257,8 @@ public String getColumnValue(final VariantContext variant) {
AS_SB_TABLE { // Required
public String getColumnValue(final VariantContext variant) {
String out = getAttribute(variant, GATKVCFConstants.AS_SB_TABLE_KEY, null);
String outNotAlleleSpecific = variant.getGenotype(0).getExtendedAttribute(GATKVCFConstants.STRAND_BIAS_BY_SAMPLE_KEY, null).toString();
if (out == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this switch do?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh---was this a different bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was more that we were trying to parse out the "fallback" (non-AS) annotation even if we didn't need it. Now it just parses it if we can't find the first one. The tests caught it

@kcibul kcibul merged commit cc81b76 into ah_var_store Mar 11, 2022
@kcibul kcibul deleted the kc_fix_import_annot branch March 11, 2022 20:43
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