Package htsjdk.samtools
Class SAMTestUtil
java.lang.Object
htsjdk.samtools.SAMTestUtil
Misc methods for SAM-related unit tests. These are in the src tree rather than the tests tree
so that they will be included in sam.jar, and therefore can be used by tests outside of htsjdk.samtools.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Indicates that a required sanity-check condition was not met. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertPairValid
(SAMRecord firstEnd, SAMRecord secondEnd) Basic sanity check for a pair of SAMRecords.static void
assertReadValid
(SAMRecord read) Basic sanity check for a SAMRecord.
-
Constructor Details
-
SAMTestUtil
public SAMTestUtil()
-
-
Method Details
-
assertPairValid
public void assertPairValid(SAMRecord firstEnd, SAMRecord secondEnd) throws SAMTestUtil.SanityCheckFailedException Basic sanity check for a pair of SAMRecords.- Throws:
SAMTestUtil.SanityCheckFailedException
- if the sanity check failed
-
assertReadValid
Basic sanity check for a SAMRecord. Print errors to screen.- Parameters:
read
- SAM record- Throws:
IllegalArgumentException
- if read is nullSAMTestUtil.SanityCheckFailedException
- if errors
-