Package htsjdk.samtools
Class SamInputResource
java.lang.Object
htsjdk.samtools.SamInputResource
Describes a SAM-like resource, including its data (where the records are), and optionally an index.
A data or index source may originate from a
File, InputStream, URL, or
SeekableStream; look for the appropriate overload for
htsjdk.samtools.SamInputResource#of().-
Method Summary
Modifier and TypeMethodDescriptionindex(SeekableStream seekableStream) Updates the index to point at the provided resource, then returns itself.Updates the index to point at the provided resource, then returns itself.index(InputStream inputStream) Updates the index to point at the provided resource, then returns itself.Updates the index to point at the provided resource, then returns itself.Updates the index to point at the provided resource, then returns itself.index(Path path, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Updates the index to point at the provided resource, with the provided wrapper, then returns itself.static SamInputResourceof(SeekableStream seekableStream) Creates aSamInputResourcereading from the provided resource, with no index.static SamInputResourceof(SRAAccession acc) static SamInputResourceCreates aSamInputResourcereading from the provided resource, with no index.static SamInputResourceof(InputStream inputStream) Creates aSamInputResourcereading from the provided resource, with no index.static SamInputResourceCreates aSamInputResourcefrom a string specifying *either* a url or a file pathstatic SamInputResourceCreates aSamInputResourcefrom a URI which may represent an htsget path, or some other resource such as a filesystem path or a URL, with no index.static SamInputResourceof(URI uri, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Creates aSamInputResourcewith no index from a URI which may represent an htsget path, or some other resource such as a filesystem path or a URL, with no index, and with a wrapper to apply to the SeekableByteChannel for custom prefetching/buffering.static SamInputResourceCreates aSamInputResourcereading from the provided resource, with no index.static SamInputResourceCreates aSamInputResourcereading from the provided resource, with no index.static SamInputResourceof(Path path, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Creates aSamInputResourcereading from the provided resource, with no index, and with a wrapper to apply to the SeekableByteChannel for custom prefetching/buffering.toString()
-
Method Details
-
toString
-
of
Creates aSamInputResourcereading from the provided resource, with no index. -
of
Creates aSamInputResourcereading from the provided resource, with no index. -
of
public static SamInputResource of(Path path, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Creates aSamInputResourcereading from the provided resource, with no index, and with a wrapper to apply to the SeekableByteChannel for custom prefetching/buffering. -
of
Creates aSamInputResourcereading from the provided resource, with no index. -
of
Creates aSamInputResourcereading from the provided resource, with no index. -
of
Creates aSamInputResourcereading from the provided resource, with no index. -
of
-
of
Creates aSamInputResourcefrom a URI which may represent an htsget path, or some other resource such as a filesystem path or a URL, with no index. This method will first attempt to treat the resource as an htsget resource, then fall back to treating it as a file system path, then as a URL -
of
public static SamInputResource of(URI uri, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Creates aSamInputResourcewith no index from a URI which may represent an htsget path, or some other resource such as a filesystem path or a URL, with no index, and with a wrapper to apply to the SeekableByteChannel for custom prefetching/buffering. This method will first attempt to treat the resource as an htsget resource, then fall back to treating it as a file system path, then as a URL -
of
Creates aSamInputResourcefrom a string specifying *either* a url or a file path -
index
Updates the index to point at the provided resource, then returns itself. -
index
Updates the index to point at the provided resource, then returns itself. -
index
Updates the index to point at the provided resource, with the provided wrapper, then returns itself. -
index
Updates the index to point at the provided resource, then returns itself. -
index
Updates the index to point at the provided resource, then returns itself. -
index
Updates the index to point at the provided resource, then returns itself.
-