|
| BamIndex * | getBamIndex () |
| |
| | SamFile () |
| | Default Constructor, initializes the variables, but does not open any files. More...
|
| |
| | SamFile (ErrorHandler::HandlingType errorHandlingType) |
| | Constructor that sets the error handling type. More...
|
| |
| | SamFile (const char *filename, OpenType mode) |
| | Constructor that opens the specified file based on the specified mode (READ/WRITE), aborts if the file could not be opened. More...
|
| |
| | SamFile (const char *filename, OpenType mode, ErrorHandler::HandlingType errorHandlingType) |
| | Constructor that opens the specified file based on the specified mode (READ/WRITE) and handles errors per the specified handleType. More...
|
| |
| | SamFile (const char *filename, OpenType mode, SamFileHeader *header) |
| | Constructor that opens the specified file based on the specified mode (READ/WRITE) and reads the header, aborts if the file could not be opened or the header not read. More...
|
| |
| | SamFile (const char *filename, OpenType mode, ErrorHandler::HandlingType errorHandlingType, SamFileHeader *header) |
| | Constructor that opens the specified file based on the specified mode (READ/WRITE) and reads the header, handling errors per the specified handleType. More...
|
| |
| virtual | ~SamFile () |
| | Destructor. More...
|
| |
| 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 by reading the file (if not stdin). More...
|
| |
| bool | OpenForWrite (const char *filename, SamFileHeader *header=NULL) |
| | Open a sam/bam file for writing with the specified filename, determining SAM/BAM from the extension (.bam = BAM). More...
|
| |
| bool | ReadBamIndex (const char *filename) |
| | Read the specified bam index file. More...
|
| |
| bool | ReadBamIndex () |
| | Read the bam index file using the BAM filename as a base. More...
|
| |
| void | SetReference (GenomeSequence *reference) |
| | Sets the reference to the specified genome sequence object. More...
|
| |
| void | SetReadSequenceTranslation (SamRecord::SequenceTranslation translation) |
| | Set the type of sequence translation to use when reading the sequence. More...
|
| |
| void | SetWriteSequenceTranslation (SamRecord::SequenceTranslation translation) |
| | Set the type of sequence translation to use when writing the sequence. More...
|
| |
| void | Close () |
| | Close the file if there is one open. More...
|
| |
| bool | IsOpen () |
| | Returns whether or not the file has been opened successfully. More...
|
| |
| bool | IsEOF () |
| | Returns whether or not the end of the file has been reached. More...
|
| |
| bool | IsStream () |
| | Returns whether or not the file has been opened for streaming input/output. More...
|
| |
| bool | ReadHeader (SamFileHeader &header) |
| | Reads the header section from the file and stores it in the passed in header. More...
|
| |
| bool | WriteHeader (SamFileHeader &header) |
| | Writes the specified header into the file. More...
|
| |
| bool | ReadRecord (SamFileHeader &header, SamRecord &record) |
| | Reads the next record from the file & stores it in the passed in record. More...
|
| |
| bool | WriteRecord (SamFileHeader &header, SamRecord &record) |
| | Writes the specified record into the file. More...
|
| |
| void | setSortedValidation (SortedType sortType) |
| | Set the flag to validate that the file is sorted as it is read/written. More...
|
| |
| uint32_t | GetCurrentRecordCount () |
| | Return the number of records that have been read/written so far. More...
|
| |
| SamStatus::Status | GetFailure () |
| | Deprecated, get the Status of the last call that sets status. More...
|
| |
| SamStatus::Status | GetStatus () |
| | Get the Status of the last call that sets status. More...
|
| |
| const char * | GetStatusMessage () |
| | Get the Status Message of the last call that sets status. More...
|
| |
| bool | SetReadSection (int32_t refID) |
| | Sets which reference id (index into the BAM list of reference information) of the BAM file should be read. More...
|
| |
| bool | SetReadSection (const char *refName) |
| | Sets which reference name of the BAM file should be read. More...
|
| |
| bool | SetReadSection (int32_t refID, int32_t start, int32_t end, bool overlap=true) |
| | Sets which reference id (index into the BAM list of reference information) & start/end positions of the BAM file should be read. More...
|
| |
| bool | SetReadSection (const char *refName, int32_t start, int32_t end, bool overlap=true) |
| | Sets which reference name & start/end positions of the BAM file should be read. More...
|
| |
| void | SetReadFlags (uint16_t requiredFlags, uint16_t excludedFlags) |
| | Specify which reads should be returned by ReadRecord. More...
|
| |
| int32_t | getNumMappedReadsFromIndex (int32_t refID) |
| | Get the number of mapped reads in the specified reference id. More...
|
| |
| int32_t | getNumUnMappedReadsFromIndex (int32_t refID) |
| | Get the number of unmapped reads in the specified reference id. More...
|
| |
| int32_t | getNumMappedReadsFromIndex (const char *refName, SamFileHeader &header) |
| | Get the number of mapped reads in the specified reference name. More...
|
| |
| int32_t | getNumUnMappedReadsFromIndex (const char *refName, SamFileHeader &header) |
| | Get the number of unmapped reads in the specified reference name. More...
|
| |
| uint32_t | GetNumOverlaps (SamRecord &samRecord) |
| | Returns the number of bases in the passed in read that overlap the region that is currently set. More...
|
| |
| void | GenerateStatistics (bool genStats) |
| | Whether or not statistics should be generated for this file. More...
|
| |
| const BamIndex * | GetBamIndex () |
| | Return the bam index if one has been opened. More...
|
| |
| int64_t | GetCurrentPosition () |
| | Get the current file position. More...
|
| |
| void | DisableBuffering () |
| | Turn off file read buffering. More...
|
| |
| void | PrintStatistics () |
| | Print the statistics that have been recorded due to a call to GenerateStatistics. More...
|
| |
| bool | attemptRecoverySync (bool(*checkSignature)(void *data), int length) |
| |
| void | setAttemptRecovery (bool flag=false) |
| |
Definition at line 19 of file BamIndexTest.h.