Skip to content

Commit

Permalink
Output theta and model even when no alignable reads
Browse files Browse the repository at this point in the history
  • Loading branch information
bli25 committed Apr 6, 2019
1 parent aa8bbc3 commit e6e14db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions EM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,13 @@ int main(int argc, char* argv[]) {
if (N1 == 0) {
printf("Warning: There are no alignable reads!\n");
theta.resize(M + 1, 0.0);
FILE *fo = NULL;
sprintf(thetaF, "%s.theta", statName);
fo = fopen(thetaF, "w");
fclose(fo);
sprintf(modelF, "%s.model", statName);
fo = fopen(modelF, "w");
fclose(fo);
eel.resize(M + 1, 0.0);
for (int i = 1; i <= M; ++i) eel[i] = transcripts.getTranscriptAt(i).getLength();
double *countv = new double[M + 1];
Expand Down

0 comments on commit e6e14db

Please sign in to comment.