Description Usage Arguments Details Examples
View source: R/genomeScreens.R
Overlaps myDNA genotypes with SNPs of interest
1 | myDNAScreenSNPS(myDNA, snpsData)
|
myDNA |
(data.frame) analyzed genotypes, an output of importDNA function |
snpsData |
(data.frame) with min 2 columns: rsID (SNPid) and risk allele In that order! |
This function identifies overlap between my genotypes (myDNA object) and data.frame which stores info SNPs (their unique ID -rsID, and risk allele -in that order. This function is useful when user already has a list of SNPs associated with a trait of interest.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
# example - creating example for myDNAScreenSNPS()
# IDEA is as follows: extract rs and snp risk alleles, and extract those for
coronary heart disease
# filter CHD SNPS
dd.heart <- filter(db,
MAPPED_TRAIT=="coronary heart disease")
snpsData <- dd.heart$STRONGEST.SNP.RISK.ALLELE
# greping risk allele
riskAlleles <- gsub("[^\\-]*-([ATCG?])", "\\1",
snpsData)
snpsData <- cbind(dd.heart$SNPS,riskAlleles)
# check my genome for given list of SNPs
myDNAScreenSNPS(myDNA, snpsData )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.