Skip to content

Commit

Permalink
fix the ultra stupid bug for - strand in cdna
Browse files Browse the repository at this point in the history
  • Loading branch information
hasindu2008 committed Feb 28, 2024
1 parent 4eaf31d commit e741017
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/genread.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ static char *gen_read_rna(core_t *core, char **ref_id, int32_t *ref_len, int32_t

}

if(cdna){
if(*c == '-'){
char *r = reverse_complement(seq);
r[*rlen] = '\0';
free(seq);
seq = r;
}

}

return seq;

}
Expand Down

0 comments on commit e741017

Please sign in to comment.