Skip to content

Commit

Permalink
Don't blank the skipped.gtf file when running in reference guided mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Smowton committed Nov 25, 2014
1 parent 5778051 commit 2badce0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cufflinks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,9 @@ bool assemble_hits(BundleFactory& bundle_factory, boost::shared_ptr<BiasLearner>
fprintf(fgene_abundances,"tracking_id\tclass_code\tnearest_ref_id\tgene_id\tgene_short_name\ttss_id\tlocus\tlength\tcoverage\tFPKM\tFPKM_conf_lo\tFPKM_conf_hi\tFPKM_status\n");

FILE* ftranscripts = fopen(string(output_dir + "/" + "transcripts.gtf").c_str(), "w");
FILE* fskipped = fopen(string(output_dir + "/" + "skipped.gtf").c_str(), "w");
FILE* fskipped = 0;
if(bundle_mode != REF_DRIVEN)
fskipped = fopen(string(output_dir + "/" + "skipped.gtf").c_str(), "w");

string process;
if (corr_bias && corr_multi && final_est_run)
Expand Down Expand Up @@ -1572,7 +1574,8 @@ bool assemble_hits(BundleFactory& bundle_factory, boost::shared_ptr<BiasLearner>
fclose(ftranscripts);
fclose(ftrans_abundances);
fclose(fgene_abundances);
fclose(fskipped);
if(fskipped)
fclose(fskipped);
return true;
}

Expand Down

0 comments on commit 2badce0

Please sign in to comment.