-
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
ah - use new GT encoding #6822
ah - use new GT encoding #6822
Conversation
…ample metadata tsv
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.
Looks good to me, just a few questions.
if (columns == null) { | ||
columns = line; | ||
} else { | ||
values = line; |
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.
Is there only one line in the metrics file? If so, can you put in a check for that?
@@ -30,67 +36,39 @@ public String getColumnValue(VariantContext variant, ProbeInfo probeInfo, String | |||
|
|||
// This where the validation step (required vs not) lives -- fail if there is missing data for a required field |
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.
Should this comment be deleted too?
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.
Looks good, merge when tests pass.
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.
Left a few comments
|
||
|
||
public static String getGTString(final VariantContext variant) { |
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.
I'm so surprised this code doesn't exist anywhere? the VCFWriter must be doing (largely) the same thing?
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.
yes, but it is very embedded in the actual writing of the output and in htsjdk which for some reason i think it's more difficult for us to modify to make it modular.
gt = RawArrayTsvCreator.GT_encoding.AA; | ||
} else if (allele.basesMatch(probeInfo.alleleB)) { | ||
gt = RawArrayTsvCreator.GT_encoding.BB; | ||
if (alleleIndexes.size() == 2) { |
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.
what if it's not two? should we throw an exception?
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.
added a warning
} | ||
return gt.getValue(); | ||
return gt == RawArrayTsvCreator.value_to_drop ? "null" : gt.getValue(); |
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.
do you mean the string null
or an actual null?
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.
yes, the actual string "null". the tsv needs some value and the bq import will convert it to an actual null in the db. added to the comment to explain
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
* change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv
change GTs to single character, drop hom ref, add sample metrics to sample metadata tsv