ADAM2.CalculateBayesianfactor: Calculate the Log transformed Bayesian Factor given a bimodal...

Description Usage Arguments Details Value Author(s) Examples

View source: R/ADAM.R

Description

This function calculates the log transformed bayesian factor between essential and non-essential genes, by fitting two normal distributins to the bimodal distribution of the ranks of genes in their N-th percentile least dependent cell lines ordered wrt gene effect score/estimated slopes from linear fitting of the ordered ranks of genes in cell lines. The function fits a two normal distributions on the bimodal distribution and estimates the mean the standard deviation of these distributions. Based on the estimations the bayesian factor is calculated for each gene using the probabilities of genes coming from essential or non-essential distributions.

Usage

1
2
3
ADAM2.CalculateBayesianfactor(RankDistribution,
                display=TRUE,
                prefix='BayesianFactor')

Arguments

RankDistribution

Quantative knockout screen dependency matrix where rows are genes and columns are samples. A real number in position [i,j] represents the strength of dependency which indicates the amaount of loss of fitness in the j-th sample in case of the inactivation of the i-th gene. Higher strength of dependency indicates higher probability of beign a core fitness gene. These values are used for ranking the genes in terms of their dependecy strength.

display

Boolean, default is TRUE. Should plots of the bimodal normal distribution fitting

prefix

if the display is false the plots are generated in the working directory using the prefix.

Details

This function is using the mixdist R library to fit the given data into a distribution that can be represented as a mixture of two normal distributions. The mean and the standard deviations for each normal distribution is estimated Each normal distribution corresponds to the essential and non-essential genes. For each gene a bayesian factor is calculated which can be defined as the Prob(gene|essential)/Prob(gene|non-essential). The log transformed bayesian factors are reported by this function.

Value

A data frame with the following columns:

Gene

Gene name

logBF

Log of the Bayesian Factor

Author(s)

C. Pacini, E. Karakoc & F. Iorio

Examples

1
2
3
data(exampleSBFData)
results <- ADAM2.SlopeCF(depMat=exampleSBFData,display=TRUE)
bfresults <- ADAM2.CalculateBayesianfactor(RankDistribution=results$LeastDependent)

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