Specimen | R Documentation |
Mean to mimic a in silico Specimens. It is the working instances of the simulator.
Object of R6 class that points to C++ objetcs.
Objects of R6 class with methods to mimic in silico Specimens.
.ptr
External pointer to the instance of the C++ class Specie.
new()
Create an instance of a Specimen.
.R_Specimen_ctor$new(ptr)
ptr
an Smart pointer to an instance of a Specimen C++ class.
A new 'Specimen' object.
print()
Print/Show an instance of the Specimen class.
.R_Specimen_ctor$print(...)
...
further arguments to be passed to print.
alpha()
Evaluates the breeding value.
.R_Specimen_ctor$alpha(trait)
trait
an instance of the class Trait.
the breeding value of the specimen for the given trait.
genotype()
Codify Specimen's Genotypes.
.R_Specimen_ctor$genotype(phase = FALSE)
phase
logical should the codes keep the phase.
A numeric or character vector with the codified Specimen's genotypes.
cross()
Performs the simple bi-parental cross.
.R_Specimen_ctor$cross(n = 1, gid)
n
a length-one integer vector with the size of the progeny.
gid
instance of the class specimen which will be used to mate.
a size n list with instances of the class Specimen that represent new individuals belonging to the progeny of the respective mating scheme.
selfcross()
Performs the selfcross.
.R_Specimen_ctor$selfcross(n = 1, replace = FALSE)
n
a length-one integer vector with the size of the progeny.
replace
logical scalar indicating if the outcome of the function will replace the current instance of the Specimen
a size n list with instances of the class Specimen that represent new individuals belonging to the progeny of the respective mating scheme.
dh()
Performs the double-haploid duplication
.R_Specimen_ctor$dh(n = 1, replace = FALSE)
n
a length-one integer vector with the size of the progeny.
replace
logical scalar indicating if the outcome of the function will replace the current instance of the Specimen
a size n list with instances of the class Specimen that represent new individuals belonging to the progeny of the respective mating scheme.
mirror()
Generates a 'mirrored' specimen.
.R_Specimen_ctor$mirror()
an instance of the Specimen class with all loci mirrored.
look()
Acess specific locus' value from specimen.
.R_Specimen_ctor$look(snp, phase = FALSE)
snp
an character string with the name of the locus to lookup.
phase
logical should the codes keep the phase.
the genotype of the given locus.
clone()
The objects of this class are cloneable with this method.
.R_Specimen_ctor$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.