snp2gene: Map SNPs to genes.

Description Usage Arguments Value

View source: R/networks.R

Description

Maps SNPs from a GWAS experiment to genes.

Usage

1
snp2gene(gwas, organism = 9606, flank = 0)

Arguments

gwas

A SnpMatrix object with the GWAS information.

organism

Organism: hsapiens represents human, athaliana for Arabidopsis thaliana, etc.

flank

A number with the flanking regions around genes to be considered part of the gene i.e. SNPs mapped to them will be considered mapped to the gene.

Value

A data.frame with two columns: one for the SNP and another for the gene it has been mapped to.


martini documentation built on Nov. 8, 2020, 5:39 p.m.