snp_fake | R Documentation |
Fake a "bigSNP"
snp_fake(n, m)
n |
Number of individuals. |
m |
Number of SNPs. |
A new temporary bigSNP
object representing n
individuals
and m
SNPs. The genotype Filebacked Big Matrix is initialized
with missing values.
(test <- snp_fake(5, 12))
# The genotype Filebackeg Big Matrix is initialized with missing values
G <- test$genotypes
G[]
# Modify the genotype `big.matrix`
G[] <- sample(as.raw(0:3), size = length(G), replace = TRUE)
G[]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.