ddmodel_binary_simple: diffDriver model only for binary phenotype, assuming bmr the...

View source: R/ddmodel.R

ddmodel_binary_simpleR Documentation

diffDriver model only for binary phenotype, assuming bmr the same across samples.

Description

This function uses the model as cmodel.frac, but generalizes to take more than 1 functional categories. This model is applied on data of a single gene. This should give the same results as ddmodel_binary defined above.

Usage

ddmodel_binary_simple(mut, e, bmr, fe)

Arguments

mut

a matrix of mutation status 0 or 1

e

a vector,phenotype of each sample, should match the columns of mut and bmr

bmr

a matrix, background mutation rate of each sample at each mutation (log scale), as we assume bmr the same across samples, only the first column will be used.

fe

a vector, increased mutation rate at each mutation, due to functional effect (log scale), should match the rows of mut and bmr


szhaolab/diffdriver documentation built on June 1, 2025, 8:04 p.m.