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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exception to distance constraints in dprog.c #108

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
8 changes: 4 additions & 4 deletions dprog.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ int dprog(struct _node *nod, int nn, struct _training *tinf, int flag) {
/* Set up distance constraints for making connections, */
/* but make exceptions for giant ORFS. */
if(i < MAX_NODE_DIST) min = 0; else min = i-MAX_NODE_DIST;
if(nod[i].strand == -1 && nod[i].type != STOP && nod[min].ndx >=
if(nod[i].strand == -1 && nod[i].type != STOP && nod[min].ndx >
nod[i].stop_val)
while(min >= 0 && nod[i].ndx != nod[i].stop_val) min--;
if(nod[i].strand == 1 && nod[i].type == STOP && nod[min].ndx >=
while(min >= 0 && nod[min].ndx != nod[i].stop_val) min--;
if(nod[i].strand == 1 && nod[i].type == STOP && nod[min].ndx >
nod[i].stop_val)
while(min >= 0 && nod[i].ndx != nod[i].stop_val) min--;
while(min >= 0 && nod[min].ndx != nod[i].stop_val) min--;
if(min < MAX_NODE_DIST) min = 0;
else min = min-MAX_NODE_DIST;
for(j = min; j < i; j++) {
Expand Down