DESeq2_small_size: This function calculated the goodness of fit of DESeq2 for...

View source: R/negative_binomial_check.R

DESeq2_small_sizeR Documentation

This function calculated the goodness of fit of DESeq2 for small sample sizes (intended for less than 20 samples).

Description

This function calculated the goodness of fit of DESeq2 for small sample sizes (intended for less than 20 samples).

Usage

DESeq2_small_size(
  count_matrix,
  condition,
  other_variables,
  conditions_df,
  formula_for_DESeq,
  num_samples
)

Arguments

count_matrix

matrix containing the data to be analyzed

condition

a vector containing a factor of the condition of interest (typically batch)

other_variables

a vector of strings of other variables of interest

conditions_df

data frame containing information for the other variables of interest (columns in order of the other_variables vector)

formula_for_DESeq

the stat formula to be used in the DESeq analysis

num_samples

total number of samples to analyze

Value

a list containing the string recommendation, the histogram and a reference for the original source of the test


compbiomed/BatchQC documentation built on Feb. 24, 2025, 10:52 a.m.