Description Usage Arguments Value
Fonction to simulate genotype data from a real data set
1 2 3 | simGenoDataR(data, listGenesData, GenesMainNb, GenesPairNb, GenesRemainNb,
sizeGenesMain, sizeGenesPair, sizeGenesRemain, SameMainPair,
AllMainPair = TRUE, sampling = "gene")
|
data |
a matrix of real data with SNP in columns and individuals in rows. |
sizeGenesMain |
a vector of integers specifying the sizes of the genes having main effects. |
sizeGenesPair |
a vector of integers specifying the sizes of the genes having interaction effects. The size of the vector has to be an even number, pairs being defined with the gene taken two by two along the vector. |
sizeGenesRemain |
a vector of integers specifying the sizes of the genes having none effects. |
SameMainPair |
logical. If TRUE, genes with interation effects will also have main effects |
AllMainPair |
logical. If FALSE, only the first gene of each interaction pair will have a main effect. SameMainPair has to be TRUE. |
sampling |
character. Can either be "gene" or "size". If "gene" is chosen, the genes are randomly selected in the initial data set whereas if it's "size", the genes are selected in the data set depending on their size, defined randomly. |
listGenes |
a list that indicate the names of the SNPs composing each gene. |
Returns a list including:
X |
a matrix where columns are SNPs and rows are individuals. |
listGenesSNP |
a list that indicate the names of the SNPs composing each gene. |
MainEff |
a vector containing the names of genes having main effects. |
GenePair |
a vector containing the names of genes having interaction effects. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.