separate_genes: Explode table based on genes

Description Usage Arguments Value Author(s)

View source: R/separate_genes.R

Description

This function takes one column and split the the table into multiple rows based on the split character. It's specifically created for using the update_dist_genes function, after annotating with ANNOVAR.

Usage

1
separate_genes(data, gene_col = "GENE", keep_empty = FALSE, setdt = TRUE)

Arguments

data

A data.frame of data.table with the a column (default="GENE") submitted to update_dist_genes() function.

setdt

Logical. If TRUE (default), returns an object from the class "data.table".

GENE

Character vector. Target-column(s) name(s).

Value

Exploded table with unique genes by row (observation) and duplicated values on the other columns.

Author(s)

CainĂ£ Max Couto-Silva


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