Assigns SNPs to pathways, using the pathway gene members and the SNPs assigned to each gene.
Usage
snps.to.pathways(pathways,gene.snps)
Arguments
pathways
A list of pathways with their gene members
gene.snps
A list of genes with the SNPs assigned to them according to their physical distance on the genome
Value
A list of the same size as the number of pathways in the pathway list. The names of the SNPs assigned to each pathway are returned. Empty pathways are also returned.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(PAGWAS)
Loading required package: lars
Loaded lars 1.2
Loading required package: foreach
Loading required package: mnormt
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/PAGWAS/snps.to.pathways.Rd_%03d_medium.png", width=480, height=480)
> ### Name: snps.to.pathways
> ### Title: Assigns SNPs to pathways
> ### Aliases: snps.to.pathways
>
> ### ** Examples
>
> data(SNPs)
> data(genes)
> data(pathways)
> snps.genes <- snps.to.genes(snp.info=SNPs,gene.info=genes, distance=50)
> pathway.snps <- snps.to.pathways(pathways,snps.genes)
>
>
>
>
>
> dev.off()
null device
1
>