deepPCA: Generate a PCA plot from DepMap data

Description Usage Arguments Value Examples

View source: R/depmap.R

Description

Generate a PCA plot from DepMap data

Usage

1
deepPCA(deepResult, groupBy = NA, size = 5, deepFilter = NA, labels = F)

Arguments

deepResult

Any data.table with DepMap_IDs for cell lines (ACH-000002 etc.) in its 1st column and cell line names in its 2nd column. Ideally generated by dmFilter().

groupBy

vector of groupBy names to be extracted

size

dot size

deepFilter

table with metadata about cell lines. Can be generated with deepFilter(), or leave as NA to use a default

Value

ggplot2 object. Legend title can be set with ggplot2::labs(color=...). Axis labels can be set with ggplot2::xlab(...) and ylab(...)

Examples

1
2
3
df1 <- deepFilter(disease="Leukemia")
df2 <- deepResult(df1)
pca1 <- deepPCA(df2, "lineage_subtype")

Solatar/setR documentation built on Dec. 5, 2020, 10:50 p.m.