ADAM2.truePositiveRate: Profile of True Positive Rates

Description Usage Arguments Details Value Author(s) Examples

View source: R/ADAM.R

Description

This function calculates a profile of True Positive Rates for fitness genes in at least n cell lines, with positive cases from a reference set of essential genes.

Usage

1
2
ADAM2.truePositiveRate(depMat,
                      essentialGeneSet)

Arguments

depMat

Binary dependency matrix, rows are genes and columns are samples. 1 in position [i,j] indicates that inactivation of the i-th gene exerts a significant loss of fitness in the j-th sample, 0 otherwise.

essentialGeneSet

Reference set of predefined essential genes. This is used to define positive cases.

Details

This function calculates true positive rates for fitness genes in at least n cell lines (for each n). First, this function calculates the number of cell lines each gene is a fitness gene. Second, for a given number of cell lines, the set of genes that are fitness genes in at least that number of cell lines is determined. Finally, this set of genes is then compared to the reference set of essential genes to calculate a true positive rate.

Value

A list of the following vectors:

P

Vector of number of genes that are depleted for a number of cell lines.

TP

Vector of number of genes in sets of P are true positives, i.e. in the essentialGeneSet.

TPR

TP divided by number of genes in set essentialGeneSet to give the true positive rate.

Author(s)

C. Pacini, E. Karakoc & F. Iorio

Examples

1
2
3
4
5
6
data(exampleDepMat)
pprofile<-ADAM2.panessprofile(depMat=exampleDepMat)
nullmodel<-ADAM2.generateNullModel(depMat=exampleDepMat,ntrials = 1000)
data(curated_BAGEL_essential)
EO<-ADAM2.empiricalOdds(observedCumSum = pprofile$CUMsums,simulatedCumSum =nullmodel$nullCumSUM )
TPR<-ADAM2.truePositiveRate(exampleDepMat,curated_BAGEL_essential)

DepMap-Analytics/ADAM2 documentation built on Dec. 1, 2019, 12:27 a.m.