getNegativeBinomialMean: Get NB mean

View source: R/generateSyntheticData.R

getNegativeBinomialMeanR Documentation

Get NB mean

Description

Get the NB mean for one gene in one sample

Usage

getNegativeBinomialMean(
  i,
  j,
  S1,
  prob.S1,
  sum.S1,
  nfact_length.S1,
  S2,
  prob.S2,
  sum.S2,
  nfact_length.S2,
  seq.depths
)

Arguments

i

gene index.

j

sample index.

S1

Indices in condition 1.

prob.S1

Vector of means for condition 1.

sum.S1

Sum of means for condition 1.

nfact_length.S1

Matrix of length factors for condition 1.

S2

Indices in condition 2.

prob.S2

Vector of means for condition 2.

sum.S2

Sum of means for condition 2.

nfact_length.S2

Matrix of length factors for condition 2.

Value

The mean for gene i in sample j.


csoneson/compcodeR documentation built on Oct. 25, 2023, 1:28 a.m.