Description Usage Arguments Details Value See Also Examples
View source: R/simulate_data_fnxs.R
Generate genotype matrix for given number of mutations.
1 |
n |
Number of mutations. |
Used when simulating data for a complete network. Generally called internally during simulations to create matrix for which fitness values will then be simulated.
Minimum value of n
is 2.
Matrix with all genotypes made of n
mutations. Each column is a mutation (0=absent, 1=present), rows are genotypes.
1 |
mut.1 mut.2 mut.3 mut.4 mut.5
[1,] 0 0 0 0 0
[2,] 1 0 0 0 0
[3,] 0 1 0 0 0
[4,] 1 1 0 0 0
[5,] 0 0 1 0 0
[6,] 1 0 1 0 0
[7,] 0 1 1 0 0
[8,] 1 1 1 0 0
[9,] 0 0 0 1 0
[10,] 1 0 0 1 0
[11,] 0 1 0 1 0
[12,] 1 1 0 1 0
[13,] 0 0 1 1 0
[14,] 1 0 1 1 0
[15,] 0 1 1 1 0
[16,] 1 1 1 1 0
[17,] 0 0 0 0 1
[18,] 1 0 0 0 1
[19,] 0 1 0 0 1
[20,] 1 1 0 0 1
[21,] 0 0 1 0 1
[22,] 1 0 1 0 1
[23,] 0 1 1 0 1
[24,] 1 1 1 0 1
[25,] 0 0 0 1 1
[26,] 1 0 0 1 1
[27,] 0 1 0 1 1
[28,] 1 1 0 1 1
[29,] 0 0 1 1 1
[30,] 1 0 1 1 1
[31,] 0 1 1 1 1
[32,] 1 1 1 1 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.