Mean to mimic a in silico Specimens. It is the working instances of the simulator.
Objects of R6 class with methods to mimic in silico Specimens.
.ptrExternal pointer to the instance of the C++ class Specie.
new()Create an instance of a Specimen.
.R_Specimen_ctor$new(ptr)ptran Smart pointer to an instance of a Specimen C++ class.
A new `Specimen` object.
...further arguments to be passed to print.
alpha()Evaluates the breeding value.
.R_Specimen_ctor$alpha(trait)traitan 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)phaselogical 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)na length-one integer vector with the size of the progeny.
gidinstance 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)na length-one integer vector with the size of the progeny.
replacelogical 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)na length-one integer vector with the size of the progeny.
replacelogical 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)snpan character string with the name of the locus to lookup.
phaselogical 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)deepWhether to make a deep clone.
Object of R6 class that points to C++ objetcs.