public class HtsjdkVariantsRddStorage extends Object
HtsjdkVariantsRdd.| Modifier and Type | Method and Description |
|---|---|
static HtsjdkVariantsRddStorage |
makeDefault(org.apache.spark.api.java.JavaSparkContext sparkContext)
Create a
HtsjdkVariantsRddStorage from a Spark context object. |
HtsjdkVariantsRdd |
read(String path)
Read variants from the given path.
|
<T extends htsjdk.samtools.util.Locatable> |
read(String path,
List<T> intervals)
Read variants from the given path, using the given intervals to filter the variants.
|
HtsjdkVariantsRddStorage |
splitSize(int splitSize) |
void |
write(HtsjdkVariantsRdd htsjdkVariantsRdd,
String path,
WriteOption... writeOptions)
Write variants to a file or files specified by the given path.
|
public static HtsjdkVariantsRddStorage makeDefault(org.apache.spark.api.java.JavaSparkContext sparkContext)
HtsjdkVariantsRddStorage from a Spark context object.sparkContext - the Spark context to useHtsjdkVariantsRddStoragepublic HtsjdkVariantsRddStorage splitSize(int splitSize)
splitSize - the requested size of file splits in bytes when readingHtsjdkVariantsRddStoragepublic HtsjdkVariantsRdd read(String path) throws IOException
path - the file or directory to read fromHtsjdkVariantsRdd that allows access to the variantsIOException - if an IO error occurs while reading the headerpublic <T extends htsjdk.samtools.util.Locatable> HtsjdkVariantsRdd read(String path, List<T> intervals) throws IOException
T - the type of Locatable for specifying intervalspath - the file or directory to read fromintervals - intervals to filter variants byHtsjdkVariantsRdd that allows access to the variantsIOException - if an IO error occurs while reading the headerpublic void write(HtsjdkVariantsRdd htsjdkVariantsRdd, String path, WriteOption... writeOptions) throws IOException
htsjdkVariantsRdd - a HtsjdkVariantsRdd containing the header and the variantspath - the file or directory to write towriteOptions - options to control aspects of how to write the variants (e.g. VariantsFormatWriteOption and FileCardinalityWriteOptionIOException - if an IO error occurs while writingCopyright © 2018–2020 Disq contributors. All rights reserved.