MCMC( ## input data coordinates=NULL, # spatial coordinates geno.dip.codom=NULL, # diploid codominant markers # one line per indiv. # two column per marker geno.dip.dom=NULL, # diploid dominant markers # one line per indiv. # one column per marker geno.hap=NULL, # haploid # one line per indiv. # one column per marker qtc, # quantitative continuous variables qtd, # quantitative discrete variables ql, # qualitative variables ## path to output directory path.mcmc, ## hyper-prior parameters rate.max,delta.coord=0,shape1=2,shape2=20, npopmin=1,npopinit,npopmax, ## dimensions nb.nuclei.max, ## mcmc computations options nit, thinning=1, freq.model="Uncorrelated", varnpop=TRUE, spatial=TRUE, jcf=TRUE, filter.null.alleles=TRUE, prop.update.cell=0.1, ## writing mcmc output files options write.rate.Poisson.process=FALSE, write.number.nuclei=TRUE, write.number.pop=TRUE, write.coord.nuclei=TRUE, write.color.nuclei=TRUE, write.freq=TRUE, write.ancestral.freq=TRUE, write.drifts=TRUE, write.logposterior=TRUE, write.loglikelihood=TRUE, write.true.coord=TRUE, write.size.pop=FALSE, write.mean.quanti=TRUE, write.sd.quanti=TRUE, write.betaqtc=FALSE, miss.loc=NULL)
as.matrix
.as.matrix
.as.matrix
.as.matrix
. rate.max
equal to the number of individuals in the
dataset has proved to be efficient in many cases.delta.coord
=0 spatial coordinates are
considered as true coordinates, if delta.coord
>0 it is assumed that observed
coordinates are true coordinates blurred by an additive noise uniform
on a square of side delta.coord
centered on 0.npopmin
=< npopinit
=< npopmax
)npopinit
).
There is no obvious rule to select npopmax
,
it should be set to a value larger than any value that
you can reasonably expect for your data.3*rate.max
. Lower values
can also be used in order to speed up computations. The relevance of
the value set can be
checked by inspection of the MCMC run. The number of tiles should not
go too close to nb.nuclei.max
. If it does, you should re-run your
chain with a larger value for nb.nuclei.max
. In case of use
of the option SPATIAL=FALSE
, nb.nuclei.max
should be
set equal to the number of individuals.thinning
=1, all
states are saved whereas if e.g. thinning
=10 only each 10 iteration is saved)Geneland
help page.npopinit
.
varnpop = TRUE
*should not* be used in conjunction with
freq.model = "Correlated"
as in this case it seems that large numbers
of populations are not penalized enough and there is a serious risk
of inferring spurious sub-populations.PlotFreq
. This option is available only
with freq.model="Uncorrelated"
.nindiv
lines and nloc
columns of 0 or 1. For each individual, at each locus it says if the
locus is genuinely missing (no attempt to measure it). This info is
used under the option filterNA=TRUE
do decide how a double
missing value should be treated (genuine missing data
or double null allele).path.mcmc
and named after the type of parameters they contain.
MCMC
are
written in the directory specified by path.mcmc as follows:
nit
lines, one line per iteration of the MCMC
algorithm). nit
lines, one line per iteration of the MCMC algorithm). nb.nuclei.max
coding the class membership of each Voronoi tile.
Vectors of class membership for successive states of the chain are
concatenated in one column. Some entries of the vector containing
clas membership for a current state may have missing values as the
actual number of polygon may be smaller that the maximum number allowed
nb.nuclei.max
. This file has nb.nuclei.max*chain/thinning
lines. nb.nuclei.max*chain/thinning
lines
and two columns (hor. and vert. coordinates). nit
lines.
In each line, values of allele frequencies are stored by increasing
allele index and and locus index (allele index varying first). nallmax*nloc*nit/thinning
lines where nallmax
is the maximum number of alleles over all loci. delta.coord
to a non zero value).
simFmodel