Definition at line 21 of file TestSamRecordHelper.h.
◆ testSamRecordHelper()
| void SamRecordHelperTest::testSamRecordHelper |
( |
const char * | fileName | ) |
|
|
static |
Definition at line 31 of file TestSamRecordHelper.cpp.
32{
33 SamFile inSam;
35 SamFileHeader samHeader;
37 validateHeader(samHeader);
38
39 SamRecord samRecord;
40 assert(inSam.
ReadRecord(samHeader, samRecord) ==
true);
41 validateRead1(samRecord);
42
43
45 TestValidate::READ1_POS,
46 TestValidate::READ1_SEQ.c_str()) == 0);
47
48
49
51
52
54
55
57
58
60
61
63
64}
bool ReadHeader(SamFileHeader &header)
Reads the header section from the file and stores it in the passed in header.
bool ReadRecord(SamFileHeader &header, SamRecord &record)
Reads the next record from the file & stores it in the passed in record.
bool OpenForRead(const char *filename, SamFileHeader *header=NULL)
Open a sam/bam file for reading with the specified filename, determing the type of file and SAM/BAM b...
static int checkSequence(SamRecord &record, int32_t pos0Based, const char *sequence)
Helper method that checks if the record's read sequence starting at the specified 0-based reference p...
The documentation for this class was generated from the following files: