MCPcopy Create free account
hub / github.com/BirolLab/abyss / targetAtQueryStart

Method targetAtQueryStart

Common/SAM.h:147–154  ·  view source on GitHub ↗

* Return the position of the first base of the query on the * target extrapolated from the start of the alignment. */

Source from the content-addressed store, hash-verified

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,

Callers 3

SAMRecordMethod · 0.45
fixMateMethod · 0.45
estimateDistanceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected