update_dist_genes: Remove annotation for SNPs distant grom genes

Description Usage Arguments Value Author(s) Examples

Description

This function updates a vector of genes annotated with ANNOVAR, and keep only the ones inside or near the respective annotated gene. Also, it removes the parentheses with distance and other information.

Usage

1
update_dist_genes(genes, thres = 10000, rm_gene_info = TRUE)

Arguments

genes

Character vector. A vector of genes annotated with ANNOVAR.

thres

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

rm_gene_info

Logical. If TRUE (default), gene info within parantheses will be removed.

Value

Vector of genes within or near the annotated gene.

Author(s)

CainĂ£ Max Couto-Silva

Examples

1
2
3
4
5
## Not run: 
update_dist_genes(genes)
dt[, GENE := update_dist_genes(GENE)]

## End(Not run)

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