Changes

From Genome Analysis Wiki
Jump to navigationJump to search
no edit summary
Line 30: Line 30:  
| <code>void CigarRoller::Add(const char *cigarString)</code>
 
| <code>void CigarRoller::Add(const char *cigarString)</code>
 
| <code>void Cigar::add(const char *cigarString)</code>
 
| <code>void Cigar::add(const char *cigarString)</code>
 +
| What happens if an invalid character is found while parsing this???
 
|-
 
|-
 
|  
 
|  
Line 105: Line 106:  
When SamRecord needs to convert from SAM to BAM or BAM to SAM or needs alignment length or numOverlaps,e tc, it would use the appropriate Cigar::set.
 
When SamRecord needs to convert from SAM to BAM or BAM to SAM or needs alignment length or numOverlaps,e tc, it would use the appropriate Cigar::set.
 
The conversion logic and parsing logic SAM & BAM would only be located in this Cigar class.
 
The conversion logic and parsing logic SAM & BAM would only be located in this Cigar class.
 +
 +
The alignment length calculation would come from the cigar.
 +
 +
What about alignment end (pass in the start position)?
 +
 +
Unclipped Start/End would also be from Cigar - or would it just be offsets - or either depending on whether or not the start pos is passed in.

Navigation menu