Package htsjdk.samtools
Class SamStreams
java.lang.Object
htsjdk.samtools.SamStreams
Utilities related to processing of
InputStreams encoding SAM data-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBAMFile(InputStream stream) static booleanisCRAMFile(InputStream stream) static booleanisGzippedSAMFile(InputStream stream) Deprecated.static booleansourceLikeBam(SeekableStream strm) static booleansourceLikeCram(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