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

Fix overfiltering in M2 in GGA alleles with no reads #5743

Merged
merged 3 commits into from
Mar 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
@DocumentedFeature(groupName=HelpConstants.DOC_CAT_ANNOTATORS, groupSummary=HelpConstants.DOC_CAT_ANNOTATORS_SUMMARY, summary="Median mapping quality of reads supporting each allele (MMQ)")
public class MappingQuality extends PerAlleleAnnotation implements StandardMutectAnnotation {

// we don't want a GGA mode allele with no reads to prejudice us against a site so we assign a good mapping quality
private static final int VALUE_FOR_NO_READS = 60;

@Override
protected int aggregate(final List<Integer> values) {
return values.isEmpty() ? 0 : MathUtils.median(Ints.toArray(values));
return values.isEmpty() ? VALUE_FOR_NO_READS : MathUtils.median(Ints.toArray(values));
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure you want to do this for all runs of M2, not just the GGA runs?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just seems like there could be a downstream effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because any allele with no reads should have no say either way. But also, an allele with no reads can't occur outside of GGA mode.

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@
@DocumentedFeature(groupName=HelpConstants.DOC_CAT_ANNOTATORS, groupSummary=HelpConstants.DOC_CAT_ANNOTATORS_SUMMARY, summary="Median distance of variant starts from ends of reads supporting each allele (MPOS)")
public class ReadPosition extends PerAlleleAnnotation implements StandardMutectAnnotation {

// we don't want a GGA mode allele with no reads to prejudice us against a site so we assign a non-suspicious value
private static final int VALUE_FOR_NO_READS = 50;

@Override
protected int aggregate(final List<Integer> values) {
return values.isEmpty() ? 0 : MathUtils.median(Ints.toArray(values));
return values.isEmpty() ? VALUE_FOR_NO_READS : MathUtils.median(Ints.toArray(values));
}

@Override
Expand Down
Loading