snps.to.genes: Assigns SNPs to genes

Description Usage Arguments Value See Also Examples

View source: R/snps.to.genes.R

Description

Assigns SNPs to genes based on their physical distance.

Usage

1
snps.to.genes(snp.info, gene.info, distance)

Arguments

snp.info

A data frame with 3 columns with names: Name, Position and Chr that correspond to the SNP name, its position on the genome and its chromosome, respectively

gene.info

A data frame with 4 columns with names: Name, Start, End and Chr that correspond to the gene name, start and end positions on the genome and its chromosome, respectively

distance

A number that corresponds to the distance below and above the Start and End positions of the gene that all SNPs in that region should be assigned to the gene

Value

A list of the same size as the number of genes of the gene.info data frame. The names of the SNPs assigned to each gene are returned

See Also

SNPs, genes, snps.to.pathways

Examples

1
2
3
data(SNPs)
data(genes)
snps.to.genes(snp.info=SNPs,gene.info=genes,distance=50)

PAGWAS documentation built on May 30, 2017, 6:40 a.m.