Description Usage Arguments Value Author(s) See Also Examples
The geneGrep
function subsets an eQTL data set (data.frame
) from GTEx
with a vector of gene IDs as arguments. Genes without significant eSNPs are removed
from results.
1 | geneGrep(dat, genes)
|
dat |
Object of class |
genes |
Gene IDs stored in |
Object of class data.frame
.
Dan Evans
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(longevityTools)
## Download of eQTL data from GTEx: http://www.gtexportal.org/home/datasets
## Note, this downloads a 1.3GB file, which will take some time.
## Not run:
download.file("http://www.gtexportal.org/static/datasets/gtex_analysis_v6/single_tissue_eqtl_data/GTEx_Analysis_V6_eQTLs.tar.gz", "./GTEx_Analysis_V6_eQTLs.tar.gz")
untar("GTEx_Analysis_V6_eQTLs.tar.gz")
## End(Not run)
## The following sample file 'Whole_Blood_Analysis.snpgenes' was subsetted to the first 100 rows
samplepath <- system.file("extdata", "Whole_Blood_Analysis.snpgenes.head100", package="longevityTools")
dat <- read.delim(samplepath)
myGenes <- c("RP11-693J15.4", "RP11-809N8.4", "junkNoMatch")
result <- geneGrep(dat, myGenes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.