Package htsjdk.samtools
Class SamStreams
java.lang.Object
htsjdk.samtools.SamStreams
Utilities related to processing of
InputStream
s encoding SAM data-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isBAMFile
(InputStream stream) static boolean
isCRAMFile
(InputStream stream) static boolean
isGzippedSAMFile
(InputStream stream) Deprecated.static boolean
sourceLikeBam
(SeekableStream strm) static boolean
sourceLikeCram
(SeekableStream strm)
-
Constructor Details
-
SamStreams
public SamStreams()
-
-
Method Details
-
isCRAMFile
- Throws:
IOException
-
isBAMFile
- Parameters:
stream
- stream.markSupported() must be true- Returns:
- true if this looks like a BAM file.
- Throws:
IOException
-
isGzippedSAMFile
Deprecated.useIOUtil.isGZIPInputStream(InputStream)
insteadChecks whether the file is a gzipped sam file. Returns true if it is and false otherwise. -
sourceLikeBam
-
sourceLikeCram
-
IOUtil.isGZIPInputStream(InputStream)
instead