get_gene_from_snp: get the genes that matches a vector of SNPs

View source: R/get_gene_from_snp.R

get_gene_from_snpR Documentation

get the genes that matches a vector of SNPs

Description

Create gene list data.frame from input SNP lists

Usage

get_gene_from_snp(snp, invert = F)

Arguments

snp

a vector or character contain snp names (rsIDs)

invert

boolean. Inverts the output, so that a list of SNPs is outputted instead.

Details

Applies the SNP-to-gene mapping described in the paper. Please, see the paper for details about reference panel and ancestry.

Value

a list of genes (if invert is FALSE)

Examples

## Not run: 
get_gene_from_snp('rs12516') # BRCA1

## End(Not run)

lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.