Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indexing error for reverse strand in calc_orf_gc #101

Open
wants to merge 1 commit into
base: GoogleImport
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion node.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ void calc_orf_gc(unsigned char *seq, unsigned char *rseq, int slen, struct
is_gc(seq, nod[i].ndx-2);
}
else if(nod[i].strand == -1) {
for(j = last[fr]+3; j <= nod[i].ndx; j+=3)
for(j = last[fr]+1; j <= nod[i].ndx; j+=3)
gc[fr] += is_gc(seq, j) + is_gc(seq, j+1) + is_gc(seq, j+2);
gsize = (float)(abs(nod[i].stop_val-nod[i].ndx)+3.0);
nod[i].gc_cont = gc[fr]/gsize;
Expand Down