LCT.matrix | R Documentation |
These data contain the genotype matrix corresponding to haplotypes present in LCT.haplotypes
from the 1000 Genomes data for a ~300kb segment containing the Lactase gene.
Information about individuals is present in LCT.matrix.fam
, and information about population (population and super population) is present in LCT.matrix.pop1000G
, in a format needed to generate a bedmatrix.
LCT.snps
from LCT.haplotypes
can be used as the corresponding bim file of this genotypes matrix.
data(LCT.matrix)
Three data objects are present in LCT.haplotypes
:
LCT.matrix.bed
The matrix of genotypes
LCT.matrix.fam
The corresponding fam file
LCT.matrix.pop1000G
A data frame with population information for individuals (population, superpopulation)
Data were obtained from the 1000 Genomes Project.
McVean et al, 2012, An integrated map of genetic variation from 1,092 human genomes, Nature 491, 56-65 doi:10.1038/nature11632
LCT.haplotypes
#Import data in a bed matrix
x <- as.bed.matrix(x=LCT.matrix.bed, fam=LCT.matrix.fam, bim=LCT.snps)
#Add population
x@ped[,c("pop", "superpop")] <- LCT.matrix.pop1000G[,c("population", "super.population")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.