Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/add.to.population.R
Add additional data to an existing population object. When adding data already present in the population objects the function will issue a warning.
1 2 3 | add.to.population(population, dataObject, dataType=c("founders",
"offspring$phenotypes", "founders$group", "offspring$genotypes",
"maps$genetic","maps$physical","annotations"), verbose=FALSE,debugMode=0)
|
population |
An object of class |
dataObject |
A matrix of data to be put into the population objects, or a list of matrices. |
dataType |
Specifies what kind of data dataObject contains, if dataObject is a list of matrices to add, dataType should be a list of the same length:
|
verbose |
Be verbose. |
debugMode |
Either use 1 or 2, this will modify the amount of information returned to the user. 1) Print out checks, 2) Print additional time information. |
This function inputs data into existing population object. It can input single matrix or list of matrices.
An object of class population
. See create.population
for details.
Konrad Zych k.zych@rug.nl, Danny Arends Danny.Arends@gmail.com Maintainer: Konrad Zych k.zych@rug.nl
read.population
- Loads genotype, phenotype, genetic map data files into R environment into a population object.
create.population
- Create object of class population from data already in R environment.
fake.population
- Simulate basic population object for use in examples.
1 2 3 4 5 6 7 | population <- fake.population()
offspring <- population$offspring$phenotypes
founders <- population$founders$phenotypes
founders_groups <- population$founders$groups
maps_genetic <- population$maps$genetic
population <- create.population(offspring,founders,founders_groups)
population <- add.to.population(population,maps_genetic,"maps$genetic")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.