powered by
bed.matrix
select.snps(x, condition)
x
x@snps
chr
id
dist
pos
A1
A2
set.stats
N0
N1
N2
NAs
callrate
maf
hz
set.hwe
hwe
If some condition evaluate to NA (e.g. maf > 0 when maf is undefined for some SNPs), a warning is issued and the corresponding SNPs are removed.
NA
maf > 0
select.snps
# Load data data(LCT) x <- as.bed.matrix(LCT.gen, LCT.fam, LCT.bim) # Select SNPs with a maf > 5% y <- select.snps(x, maf > 0.05) y
Run the code above in your browser using DataLab