Learn R Programming

PAGWAS (version 2.0)

snps.to.pathways: Assigns SNPs to pathways

Description

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.

See Also

SNPs, genes, snps.to.genes

Examples

Run this code
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)

Run the code above in your browser using DataLab