Nothing
knitr::opts_chunk$set(echo = TRUE)
DEHOGT is designed to handle overdispersion in count data using a generalized linear model (GLM) framework. The package supports quasi-Poisson and negative binomial models, making it useful for differential expression analysis of RNA-seq and other count-based data types.
if (!require("BiocManager", quietly = TRUE)) { install.packages("BiocManager") } BiocManager::install("DEHOGT")
In this example, we simulate gene expression data and perform differential expression analysis using the quasi-Poisson model. We also show how to incorporate covariates and normalization factors.
## Simulate gene expression data (100 genes, 10 samples) data <- matrix(rpois(1000, 10), nrow = 100, ncol = 10) ## Randomly assign treatment groups treatment <- sample(0:1, 10, replace = TRUE) ## Load DEHOGT package library(DEHOGT) ## Run the function with 2 CPU cores result <- dehogt_func(data, treatment, num_cores = 2) ## Display results head(result$pvals) # Example: Adding covariates and normalization factors covariates <- matrix(rnorm(1000), nrow = 100, ncol = 10) norm_factors <- rep(1, 10) # Run with covariates and normalization factors result_cov <- dehogt_func(data, treatment, covariates = covariates, norm_factors = norm_factors, num_cores = 2)
sessionInfo()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.