Skip to content

Commit

Permalink
fixed small bug in trimming procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
mpertea committed Jan 29, 2020
1 parent 3419f20 commit 831e8ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ CGraphnode *longtrim(int s, int g, int refstart,int nodeend, int &nls, int &nle,
while(nls<lstart.Count() && lstart[nls].predno<(int)graphnode->start) nls++;
while(nle<lend.Count() && lend[nle].predno<(int)graphnode->start) nle++;
while((nls<lstart.Count() && lstart[nls].predno<nodeend) || (nle<lend.Count() && lend[nle].predno<nodeend)){
if(nle>=lend.Count() || (nls<lstart.Count() && lstart[nls].predno<lend[nle].predno)) { // start comes first
if(nle>=lend.Count() || (nls<lstart.Count() && lstart[nls].predno<=lend[nle].predno)) { // start comes first
if((startcov || lstart[nls].predno>(int)(graphnode->start+longintronanchor)) &&(endcov || lstart[nls].predno<nodeend+(int)longintronanchor)) {
int startpos=lstart[nls].predno-refstart;
float tmpcov=(get_cov(1,startpos,startpos+CHI_THR-1,bpcov)-get_cov(2-2*s,startpos,startpos+CHI_THR-1,bpcov)-
Expand Down
2 changes: 1 addition & 1 deletion stringtie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "proc_mem.h"
#endif

#define VERSION "2.1.0"
#define VERSION "2.1.1"

//#define DEBUGPRINT 1

Expand Down

0 comments on commit 831e8ba

Please sign in to comment.