useful convenience function to get a genotype associated with a particular sample
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2510 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
ec774f62be
commit
bca3d1b943
|
|
@ -417,6 +417,16 @@ public class VCFRecord implements Variation, VariantBackedByGenotype {
|
||||||
return names;
|
return names;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public VCFGenotypeRecord getGenotype(final String sampleName) {
|
||||||
|
for ( VCFGenotypeRecord rec : getVCFGenotypeRecords() ) {
|
||||||
|
if ( rec.getSampleName().equals(sampleName) ) {
|
||||||
|
return rec;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public String getGenotypeFormatString() {
|
public String getGenotypeFormatString() {
|
||||||
return mGenotypeFormatString;
|
return mGenotypeFormatString;
|
||||||
}// the formatting string for our genotype records
|
}// the formatting string for our genotype records
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue