Skip to content

Instantly share code, notes, and snippets.

@anpefi
Created October 26, 2017 09:04
Show Gist options
  • Save anpefi/ecbcea3cd33973dfb75016ec9a940b84 to your computer and use it in GitHub Desktop.
Save anpefi/ecbcea3cd33973dfb75016ec9a940b84 to your computer and use it in GitHub Desktop.
Basic configuration file for metapop2 to sun only population analysis and skip all the management
#Configuration file for Metapop2
# This configuration file is an example of configuration file
# See full specification in https://github.com/anpefi/metapop2 or in the README.md file
# This file would run only the population analysis, skipping all the management
name = Test # Identification for this set of parameters. it will be included as part of results' filenames. Do not use withespaces
convert = none # Conversion of the input file to another format. It ignores the remaining configurations. [none/mtp2gp]
debug = false # Debug mode. Set true to print extra info. [true/false]
dec = 4 # Floating point precision
ovrwrt = true # Overwrite results' files: [true] to have new file every execution, [false] to append new replicates
################################################################################
# Configuration for analysis of population #
################################################################################
NeiChesser = false # Obtain F stats with Nei & Chesser's correction for sample size (For those cases analysing samples and not the whole populations) [true/false]
rarefaction = false # Apply rarefaction method in calculation of Allelic Diversity: [true/false]
rareN = 0 # Value for rarefaction sample size. It should be lower than the smallest population size. Set to 0 to get automatically the value of the lowest population size
synthetic = none # Obtain, by simulating annealing, the prop. contrib. of each population to a synthetic population with optimised [Gt/Gw/Gb/At/Aw/Ab/NA/He/none] total/within/between Genetic/allelic diversity
nPool = 1000 #Pool size (individuals) for synthetic population.
minimum = 0.0 #Minimal contribution (in %) for each subpopulation
poolFile = false #write population contributions to a synthetic pool in poolFile
################################################################################
# Configuration for management method #
################################################################################
manage = none # Manage optimizing [genetic] or [allelic] diversity. Also [Nalleles] for optimizing total expected number of alleles, [He] for optimizing total expected heterocigosity (as "genetic" with lambda=1 but faster) [random] for random mating(no management) Or no manage [none] for skip it
method = dynamic # management method used for GD management [dynamic/ompg/isolated]
##############restrictions##########
max_migrants = 5
lambda = 1
#max_delta_F = 0.01 # comment/uncomment to disable/enable
monogamy = true
weight_F_isol = 1 # weight for inbreeding optimisation (for ompg and isolated methods only)
############Simulated annealing########
SA_steps = 30
SA_temp = 0.1
SA_k = 0.9
####Configuration for Simulation mode######
simMode = false # Simulation mode [true/false]
simReps = 6 # Replicates for simulation
simGens = 4 # Generations for simulation
saveStats = false
saveFrequencies = false # Save frequencies for all alleles in simulation (up to 100 loci)
saveMigrants = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment