genoDoses2bimbam | R Documentation |
Convert SNP genotypes to the file formats used by BimBam, as specified in its manual.
genoDoses2bimbam(X = NULL, tX = NULL, alleles, file = NULL, format = "mean")
X |
matrix of bi-allelic SNP genotypes encoded in allele doses in 0,1,2, with genotypes in rows and SNPs in columns; for each SNP, the allele which copy number is counted, should correspond to the second column of |
tX |
matrix with SNPs in rows and genotypes in columns |
alleles |
data.frame with SNPs in rows (names as row names) and alleles in columns; the second column should correspond to the allele which number of copies is counted at each SNP in |
file |
write the genotype data to this file if not NULL (for instance 'genotypes_bimbam.txt' or 'genotypes_bimbam.txt.gz', but don't use |
format |
BimBam's format in which the data should be saved (mean/basic) |
invisible data.frame
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.