-
Notifications
You must be signed in to change notification settings - Fork 589
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
Fixes dropped AS_QD bug #6168
Fixes dropped AS_QD bug #6168
Changes from 3 commits
0a7c7d3
9f935c0
71b8d19
e880cc3
7635ece
04e22eb
9ada0ce
70e8197
11cfcd2
8a116e2
e82b3f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
import org.broadinstitute.hellbender.tools.walkers.annotator.BaseQualityRankSumTest; | ||
import org.broadinstitute.hellbender.utils.help.HelpConstants; | ||
import org.broadinstitute.hellbender.utils.read.GATKRead; | ||
import org.broadinstitute.hellbender.utils.read.ReadUtils; | ||
import org.broadinstitute.hellbender.utils.variant.GATKVCFConstants; | ||
|
||
import java.util.Arrays; | ||
|
@@ -43,7 +42,7 @@ public List<String> getKeyNames() { | |
} | ||
|
||
@Override | ||
public String getRawKeyName() { return GATKVCFConstants.AS_RAW_BASE_QUAL_RANK_SUM_KEY;} | ||
public List<String> getRawKeyNames() { return Arrays.asList(GATKVCFConstants.AS_RAW_BASE_QUAL_RANK_SUM_KEY);} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The indexing scheme you added in the most recent revision is an improvement, but it's a bit brittle, since I think you should either:
or:
|
||
|
||
/** | ||
* Get the element for the given read at the given reference position | ||
|
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.
Perhaps you should write a method that searches the raw key names for the index of the key you want instead of assuming it's the first item. At the very least, declare a named constant for 0 and add some comments explaining your assumptions.
Or, here's another thought: if you can only ever have either 1 or 2 raw keys in this brave new world, maybe you should implement named methods for each of the two keys -- something like
getPrimaryRawKeyName()
andgetSecondaryRawKeyName()
(or some more meaningful method names), instead of relying on indices. When you want them both together you can still callgetRawKeyNames()
.