as.bed.matrix | R Documentation |
Creates a bed.matrix using a numeric matrix and two data frame for ped / snps slots
as.bed.matrix(x, fam, bim)
x |
A numeric matrix |
fam |
(Optionnal) A data frame (the contents of a .fam file) |
bim |
(Optionnal) A data frame (the contents of a .bim file) |
The data frame fam
should have columns named "famid", "id", "father", "mother", "sex" and "pheno".
The data frame bim
should have columns named "chr", "id", "dist", "pos", "A1" and "A2".
A bed.matrix condensing all three arguments.
Hervé Perdry and Claire Dandine-Roulland
bed.matrix-class
data(AGT)
x <- as.bed.matrix(AGT.gen, AGT.fam, AGT.bim)
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.