add_protein_change_column: Add protein change column.

Description Usage Arguments Author(s) Examples

View source: R/add_protein_change_column.R

Description

Extract the protein change from the ANNOVAR string and put the value into it's own column.

Usage

1

Arguments

data

dataframe containing the ANNOVAR output (required)

Author(s)

Richard J. de Borja <richard.deborja@uhnresearch.ca>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (data = NULL)
{
    if (is.null(data))
        stop("Mandatory argument data is missing")
    data$aa_change <- apply(X = as.matrix(data$AAChange.refGene),
        MARGIN = 1, FUN = get_protein_change)
    data$aa_gene <- apply(X = as.matrix(data$AAChange.refGene),
        MARGIN = 1, FUN = get_gene_name)
    return(data)
  }

Bio-Core/BioCore.Annotation documentation built on Feb. 3, 2020, 6:01 p.m.