* Return the position of the first base of the query on the * target extrapolated from the start of the alignment. */
| 145 | * target extrapolated from the start of the alignment. |
| 146 | */ |
| 147 | int targetAtQueryStart() const |
| 148 | { |
| 149 | CigarCoord a(cigar); |
| 150 | assert(a.qstart + a.qspan <= a.qlen); |
| 151 | return isReverse() |
| 152 | ? pos + a.tspan + (a.qlen - a.qspan - a.qstart) |
| 153 | : pos - a.qstart; |
| 154 | } |
| 155 | |
| 156 | /** Parse the specified CIGAR string. |
| 157 | * @return an alignment setting the fields read_start_pos, |
no outgoing calls
no test coverage detected