useful convenience function to get a genotype associated with a particular sample

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2515 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
depristo 2010-01-06 15:03:07 +00:00
parent 34519b3e3b
commit f857159343
1 changed files with 10 additions and 0 deletions

View File

@ -282,6 +282,16 @@ public class RodVCF extends BasicReferenceOrderedDatum implements VariationRod,
return mCurrentRecord.getVCFGenotypeRecords();
}
/**
* Returns the genotype associated with sample, or null if the genotype is missing
*
* @param sampleName the name of the sample genotype to fetch
* @return
*/
public Genotype getGenotype(final String sampleName) {
return mCurrentRecord.getGenotype(sampleName);
}
/**
* do we have the specified genotype? not all backedByGenotypes
* have all the genotype data.