Package vcf
Class TargSlidingWindow
java.lang.Object
vcf.TargSlidingWindow
- All Implemented Interfaces:
Closeable,AutoCloseable,SlidingWindow
Class TargSlidingWindow represents a sliding window of
target VCF records.
Instances of class TargSlidingWindow are not thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Releases any I/O resources controlled by this object.intReturns the number of distinct markers returned in precedingthis.nextWindow()method calls.intReturns the number of distinct target markers returned in precedingthis.nextWindow()method calls.genMap()Returns the genetic map.static TargSlidingWindowConstructs and returns a newTargSlidingWindowinstance for the specified 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 newTargSlidingWindowinstance for the specified target data.- Parameters:
par- the command line parameters- Returns:
- a new
TargSlidingWindowinstance for the specified target data - Throws:
IllegalArgumentException- ifpar.ref() != nullIllegalArgumentException- if a VCF record format error is detected or if there is no data remaining after sample and marker filteringNullPointerException- ifpar == null
-
targSamples
Description copied from interface:SlidingWindowReturns the target samples.- Specified by:
targSamplesin interfaceSlidingWindow- Returns:
- the target samples
-
ped
Description copied from interface:SlidingWindowReturns the target sample pedigree data.- Specified by:
pedin interfaceSlidingWindow- Returns:
- the target sample pedigree data
-
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
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 interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSlidingWindow
-
toString
Returns a string representation ofthis. The exact details of the representation are unspecified and subject to change.
-