Corrected bad merge.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5625 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
9134bf3129
commit
06b1497902
|
|
@ -217,7 +217,7 @@ public class SelectVariants extends RodWalker<Integer, Integer> {
|
||||||
// if the genotype of any of the samples we're looking it is HET or HomVar, we write this variant
|
// if the genotype of any of the samples we're looking it is HET or HomVar, we write this variant
|
||||||
for (String sample : samples) {
|
for (String sample : samples) {
|
||||||
Genotype g = compVC.getGenotype(sample);
|
Genotype g = compVC.getGenotype(sample);
|
||||||
if ( g.isHet() || g.isHomVar() ) {
|
if ( g != null && (g.isHet() || g.isHomVar()) ) {
|
||||||
vcfWriter.add(compVC, ref.getBase());
|
vcfWriter.add(compVC, ref.getBase());
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue