public class HtsjdkReadsRddStorage extends Object
HtsjdkReadsRdd.| Modifier and Type | Method and Description |
|---|---|
static HtsjdkReadsRddStorage |
makeDefault(org.apache.spark.api.java.JavaSparkContext sparkContext)
Create a
HtsjdkReadsRddStorage from a Spark context object. |
HtsjdkReadsRdd |
read(String path)
Read reads from the given path.
|
<T extends htsjdk.samtools.util.Locatable> |
read(String path,
HtsjdkReadsTraversalParameters<T> traversalParameters)
Read reads from the given path, using the given traversal parameters to filter the reads.
|
HtsjdkReadsRddStorage |
referenceSourcePath(String referenceSourcePath) |
HtsjdkReadsRddStorage |
sbiIndexGranularity(long sbiIndexGranularity) |
HtsjdkReadsRddStorage |
splitSize(int splitSize) |
HtsjdkReadsRddStorage |
useNio(boolean useNio) |
HtsjdkReadsRddStorage |
validationStringency(htsjdk.samtools.ValidationStringency validationStringency) |
void |
write(HtsjdkReadsRdd htsjdkReadsRdd,
String path,
WriteOption... writeOptions)
Write reads to a file or files specified by the given path.
|
public static HtsjdkReadsRddStorage makeDefault(org.apache.spark.api.java.JavaSparkContext sparkContext)
HtsjdkReadsRddStorage from a Spark context object.sparkContext - the Spark context to useHtsjdkReadsRddStoragepublic HtsjdkReadsRddStorage splitSize(int splitSize)
splitSize - the requested size of file splits in bytes when readingHtsjdkReadsRddStoragepublic HtsjdkReadsRddStorage validationStringency(htsjdk.samtools.ValidationStringency validationStringency)
validationStringency - the validation stringency for readingHtsjdkReadsRddStoragepublic HtsjdkReadsRddStorage useNio(boolean useNio)
useNio - whether to use NIO or the Hadoop filesystem (default) for file operationsHtsjdkReadsRddStoragepublic HtsjdkReadsRddStorage referenceSourcePath(String referenceSourcePath)
referenceSourcePath - path to the reference; only required when reading CRAM.HtsjdkReadsRddStoragepublic HtsjdkReadsRddStorage sbiIndexGranularity(long sbiIndexGranularity)
sbiIndexGranularity - the granularity to use when writing SBI index files; only used when
writing single BAM files.HtsjdkReadsRddStoragepublic HtsjdkReadsRdd read(String path) throws IOException
path - the file or directory to read fromHtsjdkReadsRdd that allows access to the readsIOException - if an IO error occurs while determining the format of the files and reading
the headerpublic <T extends htsjdk.samtools.util.Locatable> HtsjdkReadsRdd read(String path, HtsjdkReadsTraversalParameters<T> traversalParameters) throws IOException
T - the type of Locatable for specifying intervalspath - the file or directory to read fromtraversalParameters - parameters that determine which reads should be returned, allows
filtering by intervalHtsjdkReadsRdd that allows access to the readsIOException - if an IO error occurs while determining the format of the filespublic void write(HtsjdkReadsRdd htsjdkReadsRdd, String path, WriteOption... writeOptions) throws IOException
htsjdkReadsRdd - a HtsjdkReadsRdd containing the header and the readspath - the file or directory to write towriteOptions - options to control aspects of how to write the reads (e.g. ReadsFormatWriteOption and FileCardinalityWriteOptionIOException - if an IO error occurs while writingCopyright © 2018–2020 Disq contributors. All rights reserved.