Package org.disq_bio.disq
Class HtsjdkReadsRdd
- java.lang.Object
-
- org.disq_bio.disq.HtsjdkReadsRdd
-
public class HtsjdkReadsRdd extends Object
AHtsjdkReadsRddis the distributed equivalent of a htsjdkSamReader. It represents a SAM, BAM, or CRAM file stored in a distributed filesystem, and encapsulates a Spark RDD containing the reads in it.Use a
HtsjdkReadsRddStorageto read and writeHtsjdkReadsRdds.- See Also:
HtsjdkReadsRddStorage
-
-
Constructor Summary
Constructors Constructor Description HtsjdkReadsRdd(htsjdk.samtools.SAMFileHeader header, org.apache.spark.api.java.JavaRDD<htsjdk.samtools.SAMRecord> reads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description htsjdk.samtools.SAMFileHeadergetHeader()org.apache.spark.api.java.JavaRDD<htsjdk.samtools.SAMRecord>getReads()
-
-
-
Method Detail
-
getHeader
public htsjdk.samtools.SAMFileHeader getHeader()
- Returns:
- the header for the reads in this RDD. In the case that different reads have different headers, it is undefined which header this method returns.
-
getReads
public org.apache.spark.api.java.JavaRDD<htsjdk.samtools.SAMRecord> getReads()
- Returns:
- a RDD of
SAMRecordwith headers.
-
-