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: rank results based on both individual cell lines and mean scores across cell lines (`TRUE`) or based on mean scores alone (`FALSE`)? 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.8.0 Index]