Package vcf
Class RefTargSlidingWindow
java.lang.Object
vcf.RefTargSlidingWindow
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SlidingWindow
Class RefTargSlidingWindow
represents a sliding window of
reference and target VCF records.
Instances of class RefTargSlidingWindow
are not thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Releases any I/O resources controlled by this object.int
Returns the number of distinct markers returned in precedingthis.nextWindow()
method calls.int
Returns the number of distinct target markers returned in precedingthis.nextWindow()
method calls.genMap()
Returns the genetic map.static RefTargSlidingWindow
Constructs and returns a newRefTargSlidingWindow
instance for the specified reference and target data.Returns the next sliding window of VCF records.ped()
Returns the target sample pedigree data.Returns the target samples.toString()
Returns a string representation ofthis
.
-
Method Details
-
instance
Constructs and returns a newRefTargSlidingWindow
instance 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
RefTargSlidingWindow
instance for the specified data - Throws:
IllegalArgumentException
- if a VCF record format error is detected or there is no data remaining after sample and marker filteringNullPointerException
- ifpar == null
-
targSamples
Description copied from interface:SlidingWindow
Returns the target samples.- Specified by:
targSamples
in interfaceSlidingWindow
- Returns:
- the target samples
-
ped
Description copied from interface:SlidingWindow
Returns the target sample pedigree data.- Specified by:
ped
in interfaceSlidingWindow
- Returns:
- the target sample pedigree data
-
genMap
Description copied from interface:SlidingWindow
Returns the genetic map.- Specified by:
genMap
in interfaceSlidingWindow
- Returns:
- the genetic map
-
cumTargMarkers
public int cumTargMarkers()Description copied from interface:SlidingWindow
Returns the number of distinct target markers returned in precedingthis.nextWindow()
method calls.- Specified by:
cumTargMarkers
in interfaceSlidingWindow
- Returns:
- the number of distinct target markers returned in
preceding
this.nextWindow()
method calls
-
cumMarkers
public int cumMarkers()Description copied from interface:SlidingWindow
Returns the number of distinct markers returned in precedingthis.nextWindow()
method calls.- Specified by:
cumMarkers
in interfaceSlidingWindow
- Returns:
- the number of distinct markers returned in
preceding
this.nextWindow()
method calls
-
nextWindow
Description copied from interface:SlidingWindow
Returns the next sliding window of VCF records.- Specified by:
nextWindow
in 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:SlidingWindow
Releases any I/O resources controlled by this object.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSlidingWindow
-
toString
Returns a string representation ofthis
. The exact details of the representation are unspecified and subject to change.
-