Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

snp_fake

Fake a "bigSNP"


Description

Fake a "bigSNP"

Usage

snp_fake(n, m)

Arguments

n

Number of individuals.

m

Number of SNPs.

Value

A new temporary bigSNP object representing n individuals and m SNPs. The genotype Filebacked Big Matrix is initialized with missing values.

Examples

(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[]

bigsnpr

Analysis of Massive SNP Arrays

v1.10.8
GPL-3
Authors
Florian Privé [aut, cre], Michael Blum [ths], Hugues Aschard [ths], Bjarni Jóhann Vilhjálmsson [ths]
Initial release
2022-07-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.