write_colony | R Documentation |
COLONY
input fileWrite a COLONY
input file.
write_colony(
data,
strata = NULL,
sample.markers = NULL,
pop.select = NULL,
allele.freq = NULL,
inbreeding = 0,
mating.sys.males = 0,
mating.sys.females = 0,
clone = 0,
run.length = 2,
analysis = 1,
allelic.dropout = 0,
error.rate = 0.02,
print.all.colony.opt = FALSE,
random.seed = NULL,
verbose = FALSE,
parallel.core = parallel::detectCores() - 1,
filename = NULL,
...
)
data |
(4 options) A file or object generated by radiator:
How to get GDS and tidy data ?
Look into |
strata |
(path or object) The strata file or object.
Additional documentation is available in |
sample.markers |
(number) |
pop.select |
(optional, string) Selected list of populations for
the analysis. e.g. |
allele.freq |
(optional, string) Allele frequency can be computed from
a select group.
e.g. |
inbreeding |
(boolean) 0/1 no inbreeding/inbreeding.
Default: |
mating.sys.males |
(boolean) Mating system in males.
0/1 polygyny/monogyny.
Default: |
mating.sys.females |
(boolean) Mating system in females.
0/1 polygyny/monogyny.
Default: |
clone |
(boolean) Should clones and duplicated individuals be inferred.
0/1, yes/no. Default: |
run.length |
(integer) Length of run. 1 (short), 2 (medium), 3 (long),
4 (very long). Start with short or medium run and consider longer run if your
estimates probability are not stable or really good.
Default: |
analysis |
(integer) Analysis method.
0 (Pairwise-Likelihood Score), 1 (Full Likelihood),
2 (combined Pairwise-Likelihood Score and Full Likelihood).
Default: |
allelic.dropout |
Locus allelic dropout rate.
Default : |
error.rate |
Locus error rate.
Default: |
print.all.colony.opt |
(logical) Should all This require manual curation, for the file to work directly with |
random.seed |
(integer, optional) For reproducibility, set an integer
that will be used inside the function that requires randomness. With default,
a random number is generated and printed in the appropriate output.
Default: |
verbose |
(optional, logical) When |
parallel.core |
(optional) The number of core used for parallel
execution during import.
Default: |
filename |
Name of the acronym for filenaming in the working directory. |
... |
(optional) Advance mode that allows to pass further arguments for fine-tuning the function. Also used for legacy arguments (see details or special section) |
It is highly recommended to read (twice!) the user guide distributed with
COLONY
to find out the details for input and output of the software.
Not all options are provided here.
But to ease the process, all the required options to properly run COLONY
will be printed in the file written in your working directory.
Change the values accordingly and wisely.
A COLONY
file in your working directory (2 if you selected imputations arguments...)
Thierry Gosselin thierrygosselin@icloud.com
Jones OR, Wang J (2010) COLONY: a program for parentage and sibship inference from multilocus genotype data. Molecular Ecology Resources, 10, 551–555.
Wang J (2012) Computationally Efficient Sibship and Parentage Assignment from Multilocus Marker Data. Genetics, 191, 183–194.
COLONY
is available on Jinliang Wang web site
https://www.zsl.org/science/software/colony
colony installation instructions
## Not run:
# Simplest way to run the function with a tidy dataset:
colony.file <- radiator::write_colony(data = "turtle.data.rad")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.