don't have a null-pointer hissy fit when the reference is N.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@997 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
1fb241a8b8
commit
dbf2cc037c
|
|
@ -208,6 +208,7 @@ public class SingleSampleGenotyper extends LocusWalker<AlleleFrequencyEstimate,
|
||||||
|
|
||||||
public String reduce(AlleleFrequencyEstimate alleleFreq, String sum)
|
public String reduce(AlleleFrequencyEstimate alleleFreq, String sum)
|
||||||
{
|
{
|
||||||
|
if (alleleFreq == null) { return ""; }
|
||||||
if ( alleleFreq.lodVsRef >= lodThreshold ) {
|
if ( alleleFreq.lodVsRef >= lodThreshold ) {
|
||||||
String line = GeliOutputFormat ? alleleFreq.asGeliString() : alleleFreq.asTabularString();
|
String line = GeliOutputFormat ? alleleFreq.asGeliString() : alleleFreq.asTabularString();
|
||||||
calls_file.println(line);
|
calls_file.println(line);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue