Package phase
Class Ibs2Sets
java.lang.Object
phase.Ibs2Sets
Class Ibs2Sets partitions markers into steps, and stores
the sets of samples whose genotypes are consistent with IBS2 in each
step.
Instances of Ibs2Sets are immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionIbs2Sets(GT targGT, Ibs2Markers ibs2Markers) Constructs a newIbs2Setsinstance from the specified data. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of target samples.segList(int sample) Returns the detected IBS2 sample segments.
-
Constructor Details
-
Ibs2Sets
Constructs a newIbs2Setsinstance from the specified data.- Parameters:
targGT- the target genotype dataibs2Markers- the markers and intervals that are used to detect IBS2 segments- Throws:
IllegalArgumentException- iftargGT.nMarkers() != ibs2Markers.nMarkers()NullPointerException- if(targGT == null || ibs2Markers == null)
-
-
Method Details
-
nTargSamples
public int nTargSamples()Returns the number of target samples.- Returns:
- the number of target samples
-
segList
Returns the detected IBS2 sample segments.- Parameters:
sample- a sample index- Returns:
- the detected IBS2 sample segments
- Throws:
IndexOutOfBoundsException- ifsample < 0 || sample >= this.nTargSamples()
-