Skip to content

Commit

Permalink
Merge branch 'master' of github.com:halasadi/MAPS
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarbo committed Jan 11, 2018
2 parents 25d71b6 + fb89026 commit 7b65361
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
4 changes: 0 additions & 4 deletions README.md
Expand Up @@ -86,7 +86,3 @@ Please see the `examples` folder for examples data-input, how to run MAPS, and h
## confused?

The MAPS software is still being tested. I will appreciate any bugs/comments with the code/documentation. Please post an issue and I will get to it.

## credits

The MAPS software was developed by Hussein Al-Asadi with Desislava Petkova at the University of Chicago.
2 changes: 0 additions & 2 deletions src/Makefile
Expand Up @@ -8,8 +8,6 @@ EIGEN_INC = /usr/local/include/eigen3
BOOST_LIB = /usr/local/opt/boost@1.57/lib
BOOST_INC = /usr/local/opt/boost@1.57/include



EXE = runeems2
OBJ = runeems2.o eems2.o util.o mcmc.o draw.o habitat.o graph.o

Expand Down
3 changes: 1 addition & 2 deletions src/eems2.cpp
Expand Up @@ -168,8 +168,7 @@ void EEMS2::initialize_state(const MCMC &mcmc) {
nowmSeeds = MatrixXd::Zero(nowmtiles,2); randpoint_in_habitat(nowmSeeds);


//nowmrateS = params.min_omegam + draw.runif() * (params.max_omegam - params.min_omegam);
nowmrateS = 1;
nowmrateS = params.min_omegam + draw.runif() * (params.max_omegam - params.min_omegam);
nowqrateS = params.min_omegaq + draw.runif() * (params.max_omegaq - params.min_omegaq);

int niters = mcmc.num_iters_to_save();
Expand Down
2 changes: 1 addition & 1 deletion src/params-test.ini
@@ -1,7 +1,7 @@
datapath = ../data/overall/popressard_2_Inf/popressard_2_Inf
mcmcpath = ../data/overall/popressard_2_Inf/popressard_2_Inf-test-sim
nIndiv = 2800
nDemes = 90
nDemes = 70
genomeSize = 2600
dfProposalS2 = 0.1
numMCMCIter = 2000000
Expand Down
3 changes: 1 addition & 2 deletions src/util.cpp
Expand Up @@ -64,8 +64,7 @@ Params::Params(const string &params_file, const long seed_from_command_line) {

// prevent ei to be too large and might cause overflow error
mEffctHalfInterval = 4;
// want rates 2sigma away from the mean
qEffctHalfInterval = 2;
qEffctHalfInterval = 4;

min_omegaq = -10;
min_omegam = -10;
Expand Down

0 comments on commit 7b65361

Please sign in to comment.