calculateCellLineMean {cTRAP} | R Documentation

## Calculate cell line mean

### Description

Calculate cell line mean

### Usage

    calculateCellLineMean(data, cellLine, metadata, rankPerCellLine)

### Arguments

`data` | Data table: comparison against CMap data
`cellLine` | Character: perturbation identifiers as names and respective cell lines as values
`metadata` | Data table: `data` metadata
`rankPerCellLine` | Boolean: when ranking results, also rank them based on individual cell lines instead of only focusing on the mean score across cell lines; if `cellLineMean = FALSE`, individual cell line conditions are always ranked

### Value

A list with two items:

`data`

  input `data` with extra rows containing cell line average scores (if calculated)

`rankingInfo`

  data table with ranking information

`metadata`

  metadata associated with output `data`, including for identifiers regarding mean cell line scores

[Package cTRAP version 1.5.0 Index]