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 SamInputResource
of
(SeekableStream seekableStream) Creates aSamInputResource
reading from the provided resource, with no index.static SamInputResource
of
(SRAAccession acc) static SamInputResource
Creates aSamInputResource
reading from the provided resource, with no index.static SamInputResource
of
(InputStream inputStream) Creates aSamInputResource
reading from the provided resource, with no index.static SamInputResource
Creates aSamInputResource
from a string specifying *either* a url or a file pathstatic SamInputResource
Creates aSamInputResource
from a URI which may represent an htsget path, or some other resource such as a filesystem path or a URL, with no index.static SamInputResource
of
(URI uri, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Creates aSamInputResource
with 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 SamInputResource
Creates aSamInputResource
reading from the provided resource, with no index.static SamInputResource
Creates aSamInputResource
reading from the provided resource, with no index.static SamInputResource
of
(Path path, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Creates aSamInputResource
reading 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 aSamInputResource
reading from the provided resource, with no index. -
of
Creates aSamInputResource
reading from the provided resource, with no index. -
of
public static SamInputResource of(Path path, Function<SeekableByteChannel, SeekableByteChannel> wrapper) Creates aSamInputResource
reading from the provided resource, with no index, and with a wrapper to apply to the SeekableByteChannel for custom prefetching/buffering. -
of
Creates aSamInputResource
reading from the provided resource, with no index. -
of
Creates aSamInputResource
reading from the provided resource, with no index. -
of
Creates aSamInputResource
reading from the provided resource, with no index. -
of
-
of
Creates aSamInputResource
from 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 aSamInputResource
with 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 aSamInputResource
from 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.
-