Changes

From Genome Analysis Wiki
Jump to navigationJump to search
no edit summary
Line 10: Line 10:  
| <code>void SamRecord::resetRecord()</code>
 
| <code>void SamRecord::resetRecord()</code>
 
| Resets the record to be an empty record.  This is not necessary when you are reading a Sam/Bam file, but if you are setting fields, it is a good idea to clean out a record before reusing it.  Clearing it allows you to not have to set any empty fields.
 
| Resets the record to be an empty record.  This is not necessary when you are reading a Sam/Bam file, but if you are setting fields, it is a good idea to clean out a record before reusing it.  Clearing it allows you to not have to set any empty fields.
|-
  −
| <code>void SamRecord::resetTagIter()</code>
  −
| Resets the iterator that loops through the tags to the beginning of the tags.  The iterator is automatically reset when a new record is read.  This method is only necessary if you want to iterate over a set of tags multiple times.
   
|-
 
|-
 
| <code>bool SamRecord::setReadName(const char* readName)</code>
 
| <code>bool SamRecord::setReadName(const char* readName)</code>
Line 174: Line 171:  
| <code>const char* SamRecord::getQuality()</code>
 
| <code>const char* SamRecord::getQuality()</code>
 
| Returns the SAM formatted Quality string.
 
| Returns the SAM formatted Quality string.
 +
|-
 +
| <code>uint32_t SamRecord::getTagLength()>/code>
 +
| Returns the length of the tags in BAM format.
 
|-
 
|-
 
| <code>bool SamRecord::getNextSamTag(char* tag, char& vtype, void** value)</code>
 
| <code>bool SamRecord::getNextSamTag(char* tag, char& vtype, void** value)</code>
 
| Returns true if a tag was read, false if there are no more tags.
 
| Returns true if a tag was read, false if there are no more tags.
 
For a true return value, tag is sent to the tag of the tag, vtype is set to the vtype of the tag, and value is a pointer to the value of the tag.  You will then need to use a switch to cast value to int, double, char, or String.
 
For a true return value, tag is sent to the tag of the tag, vtype is set to the vtype of the tag, and value is a pointer to the value of the tag.  You will then need to use a switch to cast value to int, double, char, or String.
 +
|-
 +
| <code>void SamRecord::resetTagIter()</code>
 +
| Resets the iterator that loops through the tags to the beginning of the tags.  The iterator is automatically reset when a new record is read.  This method is only necessary if you want to iterate over a set of tags multiple times.
 
|-
 
|-
 
| <code>bool SamRecord::isIntegerType(char vtype)</code>
 
| <code>bool SamRecord::isIntegerType(char vtype)</code>

Navigation menu