Changes

From Genome Analysis Wiki
Jump to navigationJump to search
no edit summary
Line 66: Line 66:  
| Adds a tag to the record with the specified tag, vtype, and value.  Vtype can be SAM/BAM vtype.  Internal processing handles switching between SAM/BAM vtypes when read/written.
 
| Adds a tag to the record with the specified tag, vtype, and value.  Vtype can be SAM/BAM vtype.  Internal processing handles switching between SAM/BAM vtypes when read/written.
 
Returns true if successfully set, false if not.
 
Returns true if successfully set, false if not.
 +
|-
 +
| <code>SamStatus::Status SamRecord::setBufferFromFile(IFILE filePtr, SamFileHeader& header)</code>
 +
| Reads a BAM record from the specified BAM file.
 +
|-
 +
| <code>SamStatus::Status SamRecord::setBuffer(const char* fromBuffer, uint32_t fromBufferSize, SamFileHeader& header)</code>
 +
| Sets the SamRecord to contain the BAM record contents found in fromBuffer.
 
|}
 
|}
   Line 80: Line 86:  
|-
 
|-
 
| <code>bool SamRecord::isValid(SamFileHeader& header)</code>
 
| <code>bool SamRecord::isValid(SamFileHeader& header)</code>
| Returns true if the record is valid.  This performs validation steps.  TODO: the method exists, but it does not yet perform any checks, so just returns true.
+
| Returns true if the record is valid.  This performs validation steps.
 
|-
 
|-
 
| <code>const void* SamRecord::getRecordBuffer()</code>
 
| <code>const void* SamRecord::getRecordBuffer()</code>

Navigation menu