summarizeMolecularProfiles: Takes molecular data from a PharmacoSet, and summarises them...

Description Usage Arguments Value Examples

View source: R/summarizeMolecularProfiles.R

Description

Given a PharmacoSet with molecular data, this function will summarize the data into one profile per cell line, using the chosed summary.stat. Note that this does not really make sense with perturbation type data, and will combine experiments and controls when doing the summary if run on a perturbation dataset.

Usage

1
2
3
summarizeMolecularProfiles(rSet, mDataType, cell.lines, features,
  summary.stat = c("mean", "median", "first", "last", "and", "or"),
  fill.missing = TRUE, summarize = TRUE, verbose = TRUE)

Arguments

rSet

PharmacoSet The PharmacoSet to summarize

mDataType

character which one of the molecular data types to use in the analysis, out of all the molecular data types available for the pset for example: rna, rnaseq, snp

cell.lines

character The cell lines to be summarized. If any cell.line has no data, missing values will be created

features

caracter A vector of the feature names to include in the summary

summary.stat

character which summary method to use if there are repeated cell.lines? Choices are "mean", "median", "first", or "last" In case molecular data type is mutation or fusion "and" and "or" choices are available

fill.missing

boolean should the missing cell lines not in the molecular data object be filled in with missing values?

summarize

A flag which when set to FALSE (defaults to TRUE) disables summarizing and returns the data unchanged as a ExpressionSet

verbose

boolean should messages be printed

Value

matrix An updated PharmacoSet with the molecular data summarized per cell line.

Examples

1
2
3
4
5
data(Cleveland_small)
Cleveland_small <- summarizeMolecularProfiles(Cleveland_small,
                    mDataType = "rna", cell.lines=cellNames(Cleveland_small),
                    summary.stat = 'median', fill.missing = TRUE, verbose=TRUE)
Cleveland_small

RadioGx documentation built on Dec. 20, 2019, 1:06 a.m.