Skip to content

Commit

Permalink
bugfix to how BAM feature end coords are calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Oct 23, 2012
1 parent dca9c98 commit 15c181d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JBrowse/Store/SeqFeature/BAM/Feature.js
Expand Up @@ -34,7 +34,7 @@ var Feature = Util.fastDeclare(

// figure out start and end
data.start = data.start || data.pos;
data.end = data.end || ( data.lref ? data.pos + data.lref : data.seq ? data.pos + data.seq.length : undefined );
data.end = data.end || ( data.length_on_ref ? data.pos + data.length_on_ref : data.seq ? data.pos + data.seq.length : undefined );

// trying to determine orientation from 'XS' optional field,
// or from the seq_reverse_complemented flag
Expand Down

0 comments on commit 15c181d

Please sign in to comment.