Package haplotype
Class WrappedHapPair
- java.lang.Object
-
- haplotype.WrappedHapPair
-
-
Constructor Summary
Constructors Constructor Description WrappedHapPair(GT phasedGT, int hapPair)Creates aWrappedHapPairinstance representing the specified haplotype pair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intallele1(int marker)Returns the first allele for the specified marker.intallele2(int marker)Returns the second allele for the specified marker.intidIndex()Returns the sample identifier index.Markermarker(int marker)Returns the specified marker.Markersmarkers()Returns the markers.intnMarkers()Returns the number of markers.
-
-
-
Constructor Detail
-
WrappedHapPair
public WrappedHapPair(GT phasedGT, int hapPair)
Creates aWrappedHapPairinstance representing the specified haplotype pair.- Parameters:
phasedGT- theRefGTWindowobject that will be "wrapped" bythishapPair- a haplotype pair index- Throws:
java.lang.IllegalArgumentException- ifphasedGT.isPhased() == falsejava.lang.IllegalArgumentException- ifhapPair < 0 || hapPair >= sampleHapPairs.nHapPairs()java.lang.NullPointerException- ifsampleHapPairs == null
-
-
Method Detail
-
allele1
public int allele1(int marker)
Description copied from interface:HapPairReturns the first allele for the specified marker.
-
allele2
public int allele2(int marker)
Description copied from interface:HapPairReturns the second allele for the specified marker.
-
marker
public Marker marker(int marker)
Description copied from interface:HapPairReturns the specified marker.
-
nMarkers
public int nMarkers()
Description copied from interface:HapPairReturns the number of markers.
-
-