Skip to content

Commit

Permalink
turn off deploid mcmc progress
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Aug 9, 2017
1 parent 2bfb9d3 commit c3d5d74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .DEploid
Submodule .DEploid updated 1 files
+6 −2 src/mcmc.cpp
8 changes: 6 additions & 2 deletions src/DEploid/mcmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,15 @@ void McmcMachinery::runMcmcChain( bool showProgress, bool useIBD, bool notInR ){
dout << endl;
dout << "MCMC iteration: " << this->currentMcmcIteration_ << endl;
if ( this->currentMcmcIteration_ > 0 && this->currentMcmcIteration_%100 == 0 && showProgress ){
clog << "\r" << " MCMC step" << setw(4) << int(currentMcmcIteration_ * 100 / this->maxIteration_) << "% completed."<<flush;
#ifndef RBUILD
clog << "\r" << " MCMC step" << setw(4) << int(currentMcmcIteration_ * 100 / this->maxIteration_) << "% completed."<<flush;
#endif
}
this->sampleMcmcEvent(useIBD);
}
clog << "\r" << " MCMC step" << setw(4) << 100 << "% completed."<<endl;
#ifndef RBUILD
clog << "\r" << " MCMC step" << setw(4) << 100 << "% completed."<<endl;
#endif
this->mcmcSample_->hap = this->currentHap_;

this->writeLastFwdProb(useIBD);
Expand Down

0 comments on commit c3d5d74

Please sign in to comment.