View source: R/extract-genotypes.r
meffil.extract.genotypes | R Documentation |
Extract genotype data from PLINK .raw files for Illumina 450K SNPs
meffil.extract.genotypes(filenames, verbose = F)
filenames |
A vector of filenames of PLINK .raw files from which to extract genotype data. |
Matrix with rows corresponding to SNPs, columns to samples and values equal to 0, 1 or 2 corresponding to genotypes.
R> writeLines(meffil.snp.names("450k"), con="snp-names.txt")
shell> plink --bfile dataset --extract snp-names.txt --recodeA --out genotypes.raw --noweb
R> filenames <- "genotypes.raw"
R> genotypes <- meffil.extract.genotypes(filenames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.