Last data update: 2014.03.03

R: Make a table for mutation rate of each gene in the cohort
getMutationRateR Documentation

Make a table for mutation rate of each gene in the cohort

Description

Make a table for mutation rate of each gene in the cohort

Usage

getMutationRate(dataObject)

Arguments

dataObject

This must be FirehoseData object.

Value

Returns a data table

Examples

data(RTCGASample)
mutRate = getMutationRate(dataObject=RTCGASample)
mutRate <- mutRate[order(mutRate[,2],decreasing = TRUE),]
head(mutRate)
## Not run: 

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RTCGAToolbox)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/RTCGAToolbox/getMutationRate.Rd_%03d_medium.png", width=480, height=480)
> ### Name: getMutationRate
> ### Title: Make a table for mutation rate of each gene in the cohort
> ### Aliases: getMutationRate
> 
> ### ** Examples
> 
> data(RTCGASample)
RTCGASample dataset is artificially created for function test.
It isn't biologically meaninful and it has no relation with any cancer type.
For real datasets, please use client function to get data from data portal.
> mutRate = getMutationRate(dataObject=RTCGASample)
> mutRate <- mutRate[order(mutRate[,2],decreasing = TRUE),]
> head(mutRate)
      Genes MutationRatio
FCGBP FCGBP          0.46
NF1     NF1          0.31
ASTN1 ASTN1          0.24
ODZ4   ODZ4          0.22
BRWD1 BRWD1          0.22
SYNE2 SYNE2          0.22
> ## Not run: 
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>