Package vcf
Class RefTargSlidingWindow
- java.lang.Object
-
- vcf.RefTargSlidingWindow
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,SlidingWindow
public class RefTargSlidingWindow extends java.lang.Object implements SlidingWindow
Class
RefTargSlidingWindowrepresents a sliding window of reference and target VCF records.Instances of class
RefTargSlidingWindoware not thread-safe.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Releases any I/O resources controlled by this object.intcumMarkers()Returns the number of distinct markers returned in precedingthis.nextWindow()method calls.intcumTargMarkers()Returns the number of distinct target markers returned in precedingthis.nextWindow()method calls.GeneticMapgenMap()Returns the genetic map.static RefTargSlidingWindowinstance(Par par)Constructs and returns a newRefTargSlidingWindowinstance for the specified reference and target data.java.util.Optional<Window>nextWindow()Returns the next sliding window of VCF records.Pedigreeped()Returns the target sample pedigree data.SamplestargSamples()Returns the target samples.java.lang.StringtoString()Returns a string representation ofthis.
-
-
-
Method Detail
-
instance
public static RefTargSlidingWindow instance(Par par)
Constructs and returns a newRefTargSlidingWindowinstance for the specified reference and target data. An exception will be thrown if the command line parameters are incorrectly specified.- Parameters:
par- the command line parameters- Returns:
- a new
RefTargSlidingWindowinstance for the specified data - Throws:
java.lang.IllegalArgumentException- if a VCF record format error is detected or there is no data remaining after sample and marker filteringjava.lang.NullPointerException- ifpar == null
-
targSamples
public Samples targSamples()
Description copied from interface:SlidingWindowReturns the target samples.- Specified by:
targSamplesin interfaceSlidingWindow- Returns:
- the target samples
-
ped
public Pedigree ped()
Description copied from interface:SlidingWindowReturns the target sample pedigree data.- Specified by:
pedin interfaceSlidingWindow- Returns:
- the target sample pedigree data
-
genMap
public GeneticMap genMap()
Description copied from interface:SlidingWindowReturns the genetic map.- Specified by:
genMapin interfaceSlidingWindow- Returns:
- the genetic map
-
cumTargMarkers
public int cumTargMarkers()
Description copied from interface:SlidingWindowReturns the number of distinct target markers returned in precedingthis.nextWindow()method calls.- Specified by:
cumTargMarkersin interfaceSlidingWindow- Returns:
- the number of distinct target markers returned in
preceding
this.nextWindow()method calls
-
cumMarkers
public int cumMarkers()
Description copied from interface:SlidingWindowReturns the number of distinct markers returned in precedingthis.nextWindow()method calls.- Specified by:
cumMarkersin interfaceSlidingWindow- Returns:
- the number of distinct markers returned in
preceding
this.nextWindow()method calls
-
nextWindow
public java.util.Optional<Window> nextWindow()
Description copied from interface:SlidingWindowReturns the next sliding window of VCF records.- Specified by:
nextWindowin interfaceSlidingWindow- Returns:
- the next sliding window of VCF records or
Optional.empty()if there are no additional windows.
-
close
public void close()
Description copied from interface:SlidingWindowReleases any I/O resources controlled by this object.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceSlidingWindow
-
toString
public java.lang.String toString()
Returns a string representation ofthis. The exact details of the representation are unspecified and subject to change.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of
this.
-
-