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
select.snps
# Load data data(LCT) x <- as.bed.matrix(LCT.gen, LCT.fam, LCT.bim) x <- set.stats(x) # Select SNPs with a maf > 5% y <- select.snps(x, maf > 0.05) y
Run the code above in your browser using DataLab