plot_oncoPrint: plot_oncoPrint

Description Usage Arguments Value Examples

View source: R/plot-oncoprint.R

Description

Creates the OncoPrint corresponding to the inputted genetic data

Usage

1
plot_oncoPrint(gen.dat, clin.dat = NULL, ordered = NULL)

Arguments

gen.dat

A binary matrix or dataframe, with patients as rows and features as columns. Note that the names of the columns must end in ".Del" or ".Amp" to recognize copy number alterations. (see create.bin.matrix for more details on this format).

clin.dat

An optional clinical file, including only the features the user wishes to add to the plot. Default is NULL.

ordered

An optional vector of length equal to the number of patients under consideration. Indicates the new order (from left to right) to be plotted.

Value

p : an oncoprint object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(gnomeR)
mut.only <- create.bin.matrix(maf = mut)
all.platforms <- create.bin.matrix(patients = unique(mut$Tumor_Sample_Barcode)[1:500],maf = mut,fusion = fusion,cna = cna)
plot_oncoPrint(gen.dat = all.platforms$mut[,c(grep("TP53",colnames(all.platforms$mut)),
grep("EGFR",colnames(all.platforms$mut)),
grep("KRAS",colnames(all.platforms$mut)),
grep("STK11",colnames(all.platforms$mut)),
grep("KEAP1",colnames(all.platforms$mut)),
grep("ALK",colnames(all.platforms$mut)),
grep("CDKN2A",colnames(all.platforms$mut)))])

margarethannum/gnomeR documentation built on Feb. 26, 2020, 8:16 p.m.