Perform differential expression analysis on RNA-seq count data using edgeR.
EdgerDEG(
gr,
WD_samples,
WD_DEGs,
colIDgene,
colCounts,
skip_preN,
grContrast,
filter,
model,
normMethod,
min_count,
min_total_count,
large_n,
min_prop,
adjustPvalue,
Th_logFC,
Th_Pvalue
)
A list invisibly returned containing any captured plots and log messages; primary results are written to CSV files in "WD_DEGs".
Data frame. Sample metadata with columns Samples and Groups.
Character. Directory containing raw count .tab files.
Character. Directory in which to write results and logs.
Integer. Column index in each count file for gene IDs.
Integer. Column index in each count file for raw counts.
Integer. Number of header lines to skip when reading count files.
Data frame. Two-column table with Test and Baseline group names for contrasts.
Character. Filtering method: "filterByExpr" or "HTSFilter".
Character. Statistical test: "exactTest", "glmQLFTest", or "glmLRT".
Character. Normalization method for edgeR (e.g., "TMM", "RLE").
Numeric. Minimum count per gene for "filterByExpr".
Numeric. Minimum total count per gene for "filterByExpr".
Integer. Sample size threshold for "filterByExpr".
Numeric. Proportion threshold for "filterByExpr".
Character. P-value adjustment method (e.g., "fdr", "holm", "none").
Numeric. Absolute log-fold-change threshold to call differential expression.
Numeric. Adjusted p-value threshold to call differential expression.
This function reads raw count tables, applies expression filtering (via "filterByExpr" or "HTSFilter"), normalizes library sizes, estimates dispersion, fits statistical models ("exactTest", "glmQLFTest", or "glmLRT"), and writes per-contrast results and diagnostic plots.
Reads in per-sample count files and generate a DGEList.
Builds the design matrix and contrast definitions from "grContrast".
Filters lowly expressed genes, normalizes library sizes, and logs filtering summary.
Estimates dispersion (standard or quasi-likelihood).
Runs chosen differential test per contrast, annotates each gene as "UP", "DOWN", or "NO", and writes CSV output files named by filter, model, and contrast.
Captures and saves BCV and QL dispersion plots as SVGs in WD_DEGs.