Skip to content

Commit

Permalink
expose randomseed
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Dec 22, 2024
1 parent c0cf33e commit 8c0dd34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/dEploidIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,6 @@ void DEploidIO::readPanel() {
DEploidIO::DEploidIO(const DEploidIO &cpFrom) {
this->setIsCopied(true);
this->setDoExportRecombProb(cpFrom.doExportRecombProb());
//this->setrandomSeedWasGiven(cpFrom.randomSeedWasGiven());
this->setCompressVcf(cpFrom.compressVcf());
this->setInitialPropWasGiven(cpFrom.initialPropWasGiven());
this->setInitialHapWasGiven(cpFrom.initialHapWasGiven());
Expand Down
5 changes: 4 additions & 1 deletion src/dEploidIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ class DEploidIO{
void workflow_ibd();
void workflow_best();

// Make this public so it is also accessible from
Parameter <size_t> randomSeed_;
bool randomSeedWasSet() const {return this->randomSeed_.useUserDefined(); }

private:
void setBestPracticeParameters();
void core();
Expand Down Expand Up @@ -233,7 +237,6 @@ class DEploidIO{
Parameter <size_t> kStrain_;
Parameter <size_t> precision_;
Parameter <size_t> nMcmcSample_;
Parameter <size_t> randomSeed_;
Parameter <size_t> mcmcMachineryRate_;
Parameter <double> mcmcBurn_;

Expand Down

0 comments on commit 8c0dd34

Please sign in to comment.