Learn R Programming

PMAPscore (version 0.1.1)

get_mut_status: Converts MAF file into mutation matrix

Description

The function `get_mut_status` uses to convert MAF file into mutation matrix.

Usage

get_mut_status(maf_data, nonsynonymous = TRUE)

Arguments

maf_data

The patients' somatic mutation data, which in MAF format.

nonsynonymous

Logical, tell if extract the non-silent somatic mutations (nonsense mutation, missense mutation, frame-shif indels, splice site, nonstop mutation, translation start site, inframe indels).

Value

A binary mutations matrix, in which 1 represents that a particular gene has mutated in a particular sample, and 0 represents that gene has no mutation in a particular sample .

Examples

Run this code
# NOT RUN {
#load the data
data(maf_data)
#perform the function `get_mut_status`.
mutmatrix.example<-get_mut_status(maf_data,nonsynonymous = TRUE)
# }

Run the code above in your browser using DataLab