Commit a1f60d9f authored by sallet's avatar sallet
Browse files

Remove DAG prediction if needed

parent 56ee7d64
......@@ -335,6 +335,7 @@ std::vector<Prediction*> AllAltPredict (DNASeq* TheSeq, int fromPos, int toPos,
{
if ( (AltPred->vGene[0]->cdsStart == -1) || (AltPred->vGene[0]->cdsEnd == -1))
{
delete Dag->pred;
Dag->Clean();
continue;
}
......@@ -363,6 +364,10 @@ std::vector<Prediction*> AllAltPredict (DNASeq* TheSeq, int fromPos, int toPos,
}
vPred.push_back(AltPred);
}
else
{
delete Dag->pred;
}
}
Dag->Clean();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment