Package phase
Class Ibs2Markers
java.lang.Object
phase.Ibs2Markers
Class Ibs2Markers
stores the markers and intervals that are
used to detect IBS2 segments.
Instances of Ibs2Markers
are immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionIbs2Markers
(GT targGT, MarkerMap map, FloatArray maf) Constructs a newIbs2Markers
instance from the specified data. -
Method Summary
-
Constructor Details
-
Ibs2Markers
Constructs a newIbs2Markers
instance from the specified data.- Parameters:
targGT
- target genotype datamap
- a list whosej
-th element is the genetic map position of thej
-th the markermaf
- a list whosej
-th element is the estimated minor allele frequency of thej
-th the marker- Throws:
IllegalArgumentException
- iftargGT.nMarkers() != map.genPos().size()
IllegalArgumentException
- iftargGT.nMarkers() != maf.size()
NullPointerException
- if(targGT == null || map == null || maf == null)
-
-
Method Details
-
nMarkers
public int nMarkers()Returns the number of markers.- Returns:
- the number of markers
-
markers
public int[] markers(int start, int end) Returns an increasing list of marker indices that are used to detect IBS2 segments in the specified interval- Parameters:
start
- the first marker in the interval (inclusive)end
- the last marker in the interval (exclusive)- Returns:
- an increasing list of marker indices that are used to detect IBS2 segments in the specified interval
- Throws:
IllegalArgumentException
- ifstart < 0 || end < start || end > this.nMarkers
-
stepStarts
Returns the first marker index in each step in increasing order.- Returns:
- the first marker index in each step
-