annotate_fromtbl: Annotate genes from a reference table

Description Usage Arguments Value Author(s)

Description

Given a reference tidy table with the columns "SNP", "GENE", "DIST", and "FUNCTION", this function merges it with the dataset by SNP (so each SNP must be unique), and then concatenate the genes and their respective function by comma to set unique records.

Usage

1
annotate_fromtbl(snp, ref, thres = 10000, include_function = T)

Arguments

snp

vector. A vector with SNP names to match the ref[["SNP"]] column.

thres

Integer. A single integer to set the maximum allowed distance (bp) from the annotated gene. Default set to 10kb.

Value

vector of genes or list with two vectors (genes and functions)

Author(s)

CainĂ£ Max Couto-Silva


cmcouto-silva/gt documentation built on June 6, 2021, 7:14 p.m.