generated from u-brite/team-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMaftools.Rmd
87 lines (66 loc) · 1.5 KB
/
Maftools.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
title: "Maftools"
output: html_document
date: "2022-08-06"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
library(maftools)
```
```{r}
endometrial_maf <- tcgaLoad(study= "UCEC")
```
```{r}
#Shows sample summry.
getSampleSummary(endometrial_maf)
```
```{r}
#Shows gene summary.
getGeneSummary(endometrial_maf)
```
```{r}
#shows clinical data associated with samples
getClinicalData(endometrial_maf)
```
```{r}
#Shows all fields in MAF
getFields(endometrial_maf)
```
```{r}
#Writes maf summary to an output file with basename laml.
write.mafSummary(maf = endometrial_maf, basename = 'endometrial_maf')
```
```{r}
plotmafSummary(maf = endometrial_maf, rmOutlier = TRUE, addStat = 'median', dashboard = TRUE, titvRaw = FALSE)
```
```{r}
oncoplot(maf = endometrial_maf, top = 10)
```
```{r}
laml.titv = titv(maf = endometrial_maf, plot = FALSE, useSyn = TRUE)
#plot titv summary
plotTiTv(res = laml.titv)
```
#I think this is a great thing to add a field in to make it interactive
```{r}
lollipopPlot(
maf = endometrial_maf,
gene = 'PTEN',
AACol = 'HGVSp_Short',
showMutationRate = TRUE
)
```
```{r}
rainfallPlot(maf = endometrial_maf, detectChangePoints = TRUE, pointSize = 0.4)
```
```{r}
somaticInteractions(maf = endometrial_maf, top = 25, pvalue = c(0.05, 0.1))
```
```{r}
laml.sig = oncodrive(maf = endometrial_maf, AACol = 'HGVSp_Short', minMut = 5, pvalMethod = 'zscore')
```
```{r}
plotOncodrive(res = laml.sig, fdrCutOff = 0.1, useFraction = TRUE, labelSize = 0.5)
```