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:
parent
34519b3e3b
commit
f857159343
|
|
@ -282,6 +282,16 @@ public class RodVCF extends BasicReferenceOrderedDatum implements VariationRod,
|
||||||
return mCurrentRecord.getVCFGenotypeRecords();
|
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
|
* do we have the specified genotype? not all backedByGenotypes
|
||||||
* have all the genotype data.
|
* have all the genotype data.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue