[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECWE76VRN4Q0SJZE2N0ZQJ":3,"skill-same:01M7ECWE76VRN4Q0SJZE2N0ZQJ":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7ECWE76VRN4Q0SJZE2N0ZQJ","bio-differential-expression-timeseries-de",null,"Analyzes time-series and longitudinal RNA-seq for differential expression and trajectory structure. Covers DESeq2 LRT with reduced models, time as factor vs continuous vs natural splines, maSigPro (Nueda 2014 for RNA-seq), ImpulseDE2 with explicit impulse-model failure modes, DREAM for repeated measures via linear mixed models, pseudoreplication avoidance, conditional vs marginal modeling, and trajectory clustering with DPGP, Mfuzz (with Schwämmle 2010 fuzzifier estimation), and splines+k-means. Use when modeling time-course or longitudinal expression, choosing factor vs spline, handling repeated measures from the same subject, avoiding pseudoreplication, clustering temporal trajectories, or selecting between dedicated time-course tools and pairwise+LRT.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-differential-expression-timeseries-de\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-differential-expression-timeseries-de\ndescription: Analyzes time-series and longitudinal RNA-seq for differential expression and trajectory structure. Covers DESeq2 LRT with reduced models, time as factor vs continuous vs natural splines, maSigPro (Nueda 2014 for RNA-seq), ImpulseDE2 with explicit impulse-model failure modes, DREAM for repeated measures via linear mixed models, pseudoreplication avoidance, conditional vs marginal modeling, and trajectory clustering with DPGP, Mfuzz (with Schwämmle 2010 fuzzifier estimation), and splines+k-means. Use when modeling time-course or longitudinal expression, choosing factor vs spline, handling repeated measures from the same subject, avoiding pseudoreplication, clustering temporal trajectories, or selecting between dedicated time-course tools and pairwise+LRT.\ntool_type: r\nprimary_tool: DESeq2\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"differential-expression\u002Ftimeseries-de\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: DESeq2 1.42+, edgeR 4.0+, limma 3.58+, splines (base R), maSigPro 1.74+, ImpulseDE2 1.10+ (Bioconductor archive; verify availability), variancePartition \u002F dream 1.32+, Mfuzz 2.62+, TCseq 1.26+, ggplot2 3.5+, pheatmap 1.0+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Time-Series Differential Expression\n\n**\"Find genes that change over time\"** -> Define what \"change\" means -- any non-zero time effect (LRT), a smooth nonlinear trend (splines), a transient impulse (ImpulseDE2), or differing trajectories between groups (interaction LRT) -- and choose the model that asks that specific question while handling repeated-measures correctly.\n\n## The Single Most Important Modern Insight -- Most dedicated time-course tools UNDERPERFORM pairwise + LRT on short series\n\nSpies, Renz, Beyer, Ciaudo 2019 *Brief Bioinform* 20:288 benchmarked dedicated time-course tools (ImpulseDE2, splineTC, maSigPro, EBSeqHMM, TimeReg) against naive DESeq2\u002FedgeR pairwise comparisons + LRT for omnibus, on simulated and real time-courses. Finding: **on short series (\u003C8 time points), naive pairwise pattern-of-significance OUTPERFORMS dedicated TC tools** because of high false-positive rates in the latter. The exception is ImpulseDE2, which holds up better than the others -- IF its impulse assumption (rise-then-plateau or fall-then-plateau) actually fits the biology.\n\nFor most experimental time courses (3-6 time points, common in pharmacology and developmental biology), the right tool is DESeq2 with `test='LRT'` and a sensible reduced model. Reserve splines for >5 evenly-spaced time points; reserve ImpulseDE2 for monotonic-then-saturating dynamics; reserve DREAM for repeated measures.\n\nA second insight that is constantly violated: pseudoreplication. If 3 subjects each contribute 4 time points (12 samples), the effective sample size for testing TIME effects is closer to 3, not 12 -- the within-subject observations are not independent. Treating them as independent inflates type-I error dramatically. Either include subject as a fixed effect, use DREAM (mixed model), or collapse to per-subject means (loses time info).\n\n## Algorithmic Taxonomy\n\n| Method | What it tests | Best for | Failure mode |\n|--------|---------------|----------|--------------|\n| DESeq2 LRT (`test='LRT'`, `reduced=`) | Joint hypothesis: dropped terms are jointly zero | Default for \"any time effect\"; multi-group time interaction | Reports LFC of last coefficient, not omnibus -- use padj only |\n| DESeq2 + splines (`ns(time, df=3)`) | Smooth nonlinear time effect | 5+ time points, smooth dynamics, multi-group interaction | Spline df > unique time points \u002F 2 overfits |\n| maSigPro (Nueda 2014 RNA-seq update) | Polynomial regression on time per group | Multi-group time-course, regression-style hypotheses | Polynomial assumption can be wrong; less popular than DESeq2 LRT |\n| ImpulseDE2 (Fischer, Theis, Yosef 2018) | Constant vs monotonic vs impulse trajectories | Monotonic-then-saturating or impulse-like responses | Fails on oscillatory, multi-phase, monotonic-non-asymptotic; sensitive to noise on short series |\n| DREAM (Hoffman, Roussos 2021) | Per-gene linear mixed model with random subject | Repeated measures with >2 time points per subject | Slower; requires variancePartition stack; `ddf='adaptive'` default (Kenward-Roger for n\u003C=20, Satterthwaite otherwise) |\n| voom + duplicateCorrelation | Single average within-subject correlation | Technical reps within bio reps, paired pre\u002Fpost | Single correlation across all genes is approximation |\n| edgeR LRT with subject as factor | Subject as fixed effect | Small subject count, simple design | Wastes df; can't handle continuous time well |\n| TCseq | Spline-based DE + fuzzy clustering | Combined pipeline for DE + cluster discovery | Single-tool dependency; verify maintenance |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended approach | Why |\n|----------|---------------------|-----|\n| 2-3 discrete time points, independent samples per time | DESeq2 LRT, time as factor, `reduced = ~1` | Too few points for splines |\n| 5+ time points, single group, smooth dynamics | DESeq2 LRT with `ns(time, df=3)`, `reduced = ~1` | Splines capture nonlinearity efficiently |\n| 5+ time points, two groups, \"do trajectories differ?\" | LRT with `~ treatment * ns(time, df=3)` vs `reduced = ~ treatment + ns(time, df=3)` | Tests the interaction (treatment-specific time response) |\n| Same subject sampled over time (longitudinal) | DREAM (random subject) OR DESeq2 with subject fixed effect | Mandatory: pseudoreplication otherwise |\n| Monotonic-then-saturating biology expected | ImpulseDE2 | Built for the assumption |\n| Circadian or cell-cycle (cyclical) | Fourier basis (`fda::create.fourier.basis`) or dedicated tools (JTK_CYCLE, MetaCycle) | Splines can't represent periodicity |\n| Short series (\u003C8 time points) | DESeq2 pairwise + LRT (Spies 2019 finding) | Dedicated TC tools have high FPR on short series |\n| Want to cluster trajectories after DE | DPGP (nonparametric), Mfuzz (with Schwämmle 2010 m estimation), splines + k-means | Standardize per gene first |\n| Multi-batch time course | Add batch to design; test the interaction term | Standard DESeq2 \u002F edgeR pattern |\n\n## DESeq2 LRT for Time -- The Canonical Pattern\n\n**Goal:** Test whether time has ANY effect (omnibus), or whether time trajectories differ between groups (interaction).\n\n**Approach:** Specify a full design including the time terms; specify a reduced design dropping those terms; LRT compares.\n\n```r\nlibrary(DESeq2)\n\ndds \u003C- DESeqDataSetFromMatrix(counts, colData, design = ~ time)\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ 1)\nres \u003C- results(dds)\n```\n\nThe LRT p-value tests \"any difference among time points\". The `log2FoldChange` column reports the LAST coefficient in `resultsNames(dds)` -- NOT the omnibus effect. Use padj only from LRT results; extract individual Wald per time point for effect sizes.\n\nInteraction (treatment-specific time response):\n\n```r\ndds \u003C- DESeqDataSetFromMatrix(counts, colData,\n    design = ~ treatment + time + treatment:time)\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ treatment + time)\nres_interaction \u003C- results(dds)\n```\n\nThis tests \"does the time trajectory differ between treatment groups?\" -- a different question than \"is there a time effect\" or \"is there a treatment effect\".\n\n## Time as Factor vs Continuous vs Spline\n\n| Encoding | Assumption | df spent | When |\n|----------|------------|----------|------|\n| Factor (`time` as factor) | No structure; each level independent | (n_levels - 1) | Few discrete time points, irregular spacing, interest in specific pairwise comparisons |\n| Continuous (`as.numeric(time)`) | Linear effect on log expression | 1 | Linear biology, well-spaced time points -- often wrong |\n| Natural spline (`ns(time, df=k)`) | Smooth nonlinear; k basis functions | k | Dense time courses (5+ points), smooth biology |\n\nRule of thumb: `df \u003C= unique_time_points \u002F 2`.\n\n```r\nlibrary(splines)\n\ndds \u003C- DESeqDataSetFromMatrix(counts, colData,\n    design = ~ treatment * ns(time, df = 3))\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ treatment + ns(time, df = 3))\n```\n\n## limma-voom + Splines (Modern Alternative)\n\n```r\nlibrary(limma)\nlibrary(edgeR)\nlibrary(splines)\n\ny \u003C- DGEList(counts = counts)\ny \u003C- normLibSizes(y)\nkeep \u003C- filterByExpr(y, group = metadata$treatment)\ny \u003C- y[keep, , keep.lib.sizes = FALSE]\n\ndesign \u003C- model.matrix(~ treatment * ns(time, df = 3), data = metadata)\nv \u003C- voom(y, design, plot = TRUE)\nfit \u003C- lmFit(v, design)\nfit \u003C- eBayes(fit, robust = TRUE)\n\ninteraction_cols \u003C- grep(':ns\\\\(time', colnames(design))\ntt \u003C- topTable(fit, coef = interaction_cols, number = Inf)\n```\n\nTests the joint significance of all interaction spline coefficients.\n\n## DREAM for Repeated Measures\n\n**Goal:** Properly model longitudinal data where the same subject is sampled multiple times.\n\n**Approach:** Linear mixed model per gene with subject as a random intercept (or slope), via `variancePartition::dream`. Uses voom-weighted linear regression internally. Default `ddf='adaptive'` uses Kenward-Roger for n \u003C= 20 samples (the typical longitudinal-DE regime) and Satterthwaite otherwise; force either explicitly with `ddf='Kenward-Roger'` or `ddf='Satterthwaite'`.\n\n```r\nlibrary(variancePartition)\nlibrary(edgeR)\nlibrary(BiocParallel)\n\ny \u003C- DGEList(counts = counts)\ny \u003C- normLibSizes(y)\nkeep \u003C- filterByExpr(y, group = metadata$treatment)\ny \u003C- y[keep, , keep.lib.sizes = FALSE]\n\nformula \u003C- ~ treatment + time + treatment:time + (1 | subject)\n\nvobj \u003C- voomWithDreamWeights(y, formula, metadata)\nfitmm \u003C- dream(vobj, formula, metadata)\nfitmm \u003C- eBayes(fitmm)\ntt \u003C- topTable(fitmm, coef = grep(':time', colnames(coefficients(fitmm))),\n               number = Inf)\n```\n\nWhen to use DREAM over `~ subject + treatment + time` (subject as fixed effect):\n- More than 2 time points per subject (more random-effect signal to estimate)\n- Many subjects (random effects more parsimonious than fixed)\n- Random slopes needed (e.g., `(1 + time | subject)`)\n- Multiple random effects (e.g., `(1 | donor) + (1 | batch)`)\n\n`duplicateCorrelation` (`limma`) is the older approximate alternative -- assumes a SINGLE within-subject correlation across all genes. Adequate for technical replicates within biological replicates; less so for proper longitudinal data with multiple time points.\n\n## maSigPro (Nueda 2014 for RNA-seq)\n\n```r\nlibrary(maSigPro)\n\nedesign \u003C- data.frame(\n    Time      = metadata$time,\n    Replicate = metadata$replicate,\n    Control   = as.numeric(metadata$treatment == 'Control'),\n    Treatment = as.numeric(metadata$treatment == 'Treatment')\n)\nrownames(edesign) \u003C- metadata$sample\n\ndesign \u003C- make.design.matrix(edesign, degree = 3)\n\nfit \u003C- p.vector(norm_counts, design, Q = 0.05, MT.adjust = 'BH')\ntstep \u003C- T.fit(fit, step.method = 'backward', alfa = 0.05)\nsigs \u003C- get.siggenes(tstep, rsq = 0.6, vars = 'groups')\nsee.genes(sigs$sig.genes, show.fit = TRUE, dis = design$dis,\n          cluster.method = 'hclust', k = 9)\n```\n\nCITATION: Nueda MJ, Tarazona S, Conesa A (2014) \"Next maSigPro: updating maSigPro bioconductor package for RNA-seq time series.\" *Bioinformatics* 30(18):2598-2602. The earlier Conesa et al. 2006 *Bioinformatics* 22:1096 is the microarray-era original. Cite 2014 for RNA-seq use; many secondary refs miscite 2006.\n\n## ImpulseDE2\n\n**Goal:** Detect transient impulse-like expression patterns (rise then decay, or constant-then-monotonic).\n\n**Approach:** Fits constant, monotonic, and impulse (6-parameter sigmoid: baseline, peak, post-peak baseline, rise rate, decay rate) models per gene; selects the best-fitting and tests for differential dynamics.\n\n```r\nlibrary(ImpulseDE2)\n\ndfAnnotation \u003C- data.frame(\n    Sample    = colnames(counts),\n    Time      = metadata$time,\n    Condition = metadata$condition,\n    Batch     = metadata$batch\n)\n\nimp \u003C- runImpulseDE2(\n    matCountData    = as.matrix(counts),\n    dfAnnotation    = dfAnnotation,\n    boolCaseCtrl    = TRUE,\n    vecConfounders  = c('Batch'),\n    scaNProc        = 4\n)\n\nsig \u003C- imp$dfImpulseDE2Results[imp$dfImpulseDE2Results$padj \u003C 0.05, ]\n```\n\nThe impulse model FAILS on:\n- Oscillatory expression (circadian, cell cycle) -- model can't represent periodicity\n- Monotonic-but-non-asymptotic responses (linear increases that don't plateau)\n- Multi-phase responses (rise-fall-rise)\n\nFor oscillatory biology, use Fourier basis or dedicated tools (JTK_CYCLE, MetaCycle). For non-asymptotic monotonic, splines fit better.\n\nNOTE: ImpulseDE2 was removed from Bioconductor at the 3.13 release (May 2021); last hosted version was 3.10 -- install from the BiocArchive (pin to Bioc 3.10) or the YosefLab GitHub mirror. The Spies 2019 benchmark showed ImpulseDE2 holds up on longer time courses (~8+ time points) but is sensitive to noise on short series; below ~8 time points, DESeq2 pairwise + LRT typically outperforms.\n\n## Trajectory Clustering of DE Genes\n\n**Goal:** After identifying DE-over-time genes, group them by trajectory shape.\n\n**Approach:** Standardize per gene (subtract mean, divide by SD per gene) -- otherwise clusters reflect mean level, not shape. Then apply DPGP (nonparametric), Mfuzz (fuzzy c-means), or splines + k-means.\n\n```r\nlibrary(Mfuzz)\n\neset \u003C- ExpressionSet(assayData = as.matrix(norm_counts[sig_genes, ]))\neset_std \u003C- standardise(eset)\n\nm \u003C- mestimate(eset_std)\ncl \u003C- mfuzz(eset_std, c = 9, m = m)\n\nmfuzz.plot(eset_std, cl, mfrow = c(3, 3))\n```\n\nThe Mfuzz fuzzifier `m` is critical -- too low gives crisp clusters (loses fuzzy advantage); too high collapses everything. `mestimate()` implements Schwämmle & Jensen 2010 *Bioinformatics* 26:2841 to estimate `m` from the data.\n\nCITATION CARE: the Mfuzz PACKAGE paper is Kumar L, Futschik ME (2007) *Bioinformation* 2(1):5-7 (the journal is *Bioinformation*, NOT *Bioinformatics*). The Schwämmle 2010 paper is the fuzzifier-estimation methodology paper, *Bioinformatics*. Many references confuse the two.\n\nFor DPGP (Dirichlet Process Gaussian Process; nonparametric in cluster number AND trajectory shape):\n\nCITATION: McDowell IC, Manandhar D, Vockley CM, Schmid AK, Reddy TE, Engelhardt BE (2018) \"Clustering gene expression time series data using an infinite Gaussian process mixture model.\" *PLoS Comput Biol* 14(1):e1005896. CITATION CARE: this is *PLoS Comp Biol*, NOT *Genome Research* (a common miscitation).\n\nSplines + k-means (fast alternative):\n\n```r\nlibrary(splines)\nspline_coefs \u003C- t(apply(norm_counts[sig_genes, ], 1, function(x) {\n    fit \u003C- lm(x ~ ns(metadata$time, df = 4))\n    coef(fit)\n}))\nkm \u003C- kmeans(scale(spline_coefs), centers = 6)\n```\n\n## Time as the Only Variable (Developmental Series)\n\nWhen time is the sole variable (e.g., embryonic development series), the DE question becomes \"which genes change across the trajectory\":\n\n```r\ndds \u003C- DESeqDataSetFromMatrix(counts, colData, design = ~ time)\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ 1)\nres \u003C- results(dds)\n```\n\nCaveats:\n- Reference time point biases the reported LFC (it's the LFC at the LAST time point vs reference)\n- For cyclical biology (circadian, cell cycle), use periodic basis functions\n\n## Per-Method Failure Modes\n\n### Pseudoreplication -- treated 12 samples from 3 subjects as 12 independent\n\n**Trigger:** 3 subjects x 4 time points = 12 samples; vanilla DESeq2 with `~ time`; many DE genes.\n\n**Mechanism:** Within-subject observations are correlated; treating them as independent inflates effective sample size from 3 to 12 in the inference, deflating standard errors.\n\n**Symptom:** p-value histogram anti-conservative; many false-positive DE genes; replication fails.\n\n**Fix:** Include subject in design (`~ subject + time`) OR use DREAM with random subject. Collapsing to per-subject means is OK but loses time info.\n\n### LRT reports the wrong LFC\n\n**Trigger:** `DESeq(dds, test='LRT', reduced=~1)` on a 5-time-point study; user reports the `log2FoldChange` column as \"the time effect\".\n\n**Mechanism:** LRT padj is the omnibus joint test. The LFC reported is for the LAST coefficient in `resultsNames(dds)`, one specific level-vs-reference comparison.\n\n**Symptom:** A 5-time-point factor produces one LFC per gene; reviewer asks \"the effect of which time?\"\n\n**Fix:** Treat LRT padj as a screen for \"any change\". For effect sizes, extract Wald coefficients per time point via `results(dds, name='time_T2_vs_T0')` etc.\n\n### ImpulseDE2 reports noise as \"impulse\"\n\n**Trigger:** Short series (4-5 time points), oscillatory or non-monotonic biology; ImpulseDE2 flags many \"impulse\" genes that look like noise on inspection.\n\n**Mechanism:** Impulse model has 6 parameters; on short series, easy to fit by chance. For oscillatory data, model is wrong.\n\n**Symptom:** Validation orthogonal data shows the \"impulse\" genes are not actually transient; replication low.\n\n**Fix:** Use DESeq2 LRT + spline interaction for short or non-impulse data. Reserve ImpulseDE2 for cases where biology is known to be monotonic-then-asymptotic (immune response, cytokine release).\n\n### Wrong spline df\n\n**Trigger:** 4 time points; user sets `ns(time, df = 5)`; bizarre fits per gene.\n\n**Mechanism:** df > number of unique time points produces overfitting; spline basis is rank-deficient.\n\n**Symptom:** Errors about singular fits; or apparently-clean fits that don't generalize.\n\n**Fix:** `df \u003C= unique_time_points \u002F 2`. For 4 time points, df = 2 (or use factor encoding instead).\n\n### Trajectory clusters dominated by expression level\n\n**Trigger:** Mfuzz \u002F k-means clustering of trajectories; clusters separate high- vs low-expressed genes rather than shape patterns.\n\n**Mechanism:** Forgot to standardize per gene; absolute levels dominate distance computations.\n\n**Symptom:** Clusters labeled by mean expression, not trajectory shape.\n\n**Fix:** `standardise()` in Mfuzz, or `scale()` per gene before k-means. The point of trajectory clustering is shape, not magnitude.\n\n### maSigPro miscited as 2006\n\n**Trigger:** Methods section cites \"Conesa 2006 maSigPro\" for an RNA-seq analysis.\n\n**Mechanism:** The 2006 Conesa paper is the original microarray maSigPro. The 2014 Nueda paper is the RNA-seq update with NB GLM.\n\n**Symptom:** Reviewer asks for the RNA-seq citation specifically.\n\n**Fix:** Cite Nueda MJ, Tarazona S, Conesa A (2014) *Bioinformatics* 30(18):2598-2602 for RNA-seq use.\n\n## Common errors\n\n| Error \u002F symptom | Cause | Fix |\n|-----------------|-------|-----|\n| `singular fit` from spline model | df > unique time points | Reduce df or use factor encoding |\n| LRT p-values numerically identical across genes | Reduced model matches full model (no effect tested) | Verify `reduced` actually drops the term of interest |\n| ImpulseDE2 not installable from Bioconductor | Removed at Bioconductor 3.13 (May 2021); last hosted version 3.10 | Install from BiocArchive (pin Bioc 3.10) or YosefLab GitHub mirror |\n| Mfuzz clusters dominated by mean level | Forgot standardisation | Use `standardise()` before `mfuzz()` |\n| Trajectory plot shows flat lines | Counts not log-transformed before clustering | Use `cpm(y, log=TRUE)` or `vst()` then standardize |\n| DREAM very slow | Large gene set with mixed model per gene | Filter to DE-over-time first (LRT screen), then DREAM on the subset |\n\n## References\n\n- Love MI, Huber W, Anders S. 2014. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. *Genome Biol* 15(12):550. doi:10.1186\u002Fs13059-014-0550-8\n- Nueda MJ, Tarazona S, Conesa A. 2014. Next maSigPro: updating maSigPro bioconductor package for RNA-seq time series. *Bioinformatics* 30(18):2598-2602. doi:10.1093\u002Fbioinformatics\u002Fbtu333\n- Conesa A, Nueda MJ, Ferrer A, Talón M. 2006. maSigPro: a method to identify significantly differential expression profiles in time-course microarray experiments. *Bioinformatics* 22(9):1096-1102. doi:10.1093\u002Fbioinformatics\u002Fbtl056\n- Fischer DS, Theis FJ, Yosef N. 2018. Impulse model-based differential expression analysis of time course sequencing data. *Nucleic Acids Res* 46(20):e119. doi:10.1093\u002Fnar\u002Fgky675\n- Hoffman GE, Roussos P. 2021. dream: powerful differential expression analysis for repeated measures designs. *Bioinformatics* 37(2):192-201. doi:10.1093\u002Fbioinformatics\u002Fbtaa687\n- Hoffman GE, Schadt EE. 2016. variancePartition: interpreting drivers of variation in complex gene expression studies. *BMC Bioinformatics* 17:483. doi:10.1186\u002Fs12859-016-1323-z\n- Spies D, Renz PF, Beyer TA, Ciaudo C. 2019. Comparative analysis of differential gene expression tools for RNA sequencing time course data. *Brief Bioinform* 20(1):288-298. doi:10.1093\u002Fbib\u002Fbbx115\n- Kumar L, Futschik ME. 2007. Mfuzz: a software package for soft clustering of microarray data. *Bioinformation* 2(1):5-7.\n- Schwämmle V, Jensen ON. 2010. A simple and fast method to determine the parameters for fuzzy c-means cluster analysis. *Bioinformatics* 26(22):2841-2848. doi:10.1093\u002Fbioinformatics\u002Fbtq534\n- McDowell IC, Manandhar D, Vockley CM, Schmid AK, Reddy TE, Engelhardt BE. 2018. Clustering gene expression time series data using an infinite Gaussian process mixture model. *PLoS Comput Biol* 14(1):e1005896. doi:10.1371\u002Fjournal.pcbi.1005896\n- Law CW, Chen Y, Shi W, Smyth GK. 2014. voom: precision weights unlock linear model analysis tools for RNA-seq read counts. *Genome Biol* 15(2):R29. doi:10.1186\u002Fgb-2014-15-2-r29\n\n## Related Skills\n\n- deseq2-basics - LRT mechanics; design formulas\n- edger-basics - voom + splines pattern\n- de-results - LRT padj interpretation; pseudoreplication detection\n- de-visualization - Per-gene trajectories; heatmap with time order\n- batch-correction - Time-batch confounding; multi-batch time courses\n- expression-matrix\u002Fmetadata-joins - Subject as covariate; repeated measures designs\n- pathway-analysis\u002Fgo-enrichment - Functional analysis of trajectory clusters\n- temporal-genomics\u002Fcircadian-rhythms - Circadian-specific detection (JTK_CYCLE, MetaCycle)\n- temporal-genomics\u002Ftemporal-clustering - Standalone trajectory clustering methods\n- temporal-genomics\u002Ftrajectory-modeling - GAM trajectory fitting\n- temporal-genomics\u002Ftemporal-grn - Dynamic gene regulatory network inference\n","## Version Compatibility\n\nReference examples tested with: DESeq2 1.42+, edgeR 4.0+, limma 3.58+, splines (base R), maSigPro 1.74+, ImpulseDE2 1.10+ (Bioconductor archive; verify availability), variancePartition \u002F dream 1.32+, Mfuzz 2.62+, TCseq 1.26+, ggplot2 3.5+, pheatmap 1.0+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Time-Series Differential Expression\n\n**\"Find genes that change over time\"** -> Define what \"change\" means -- any non-zero time effect (LRT), a smooth nonlinear trend (splines), a transient impulse (ImpulseDE2), or differing trajectories between groups (interaction LRT) -- and choose the model that asks that specific question while handling repeated-measures correctly.\n\n## The Single Most Important Modern Insight -- Most dedicated time-course tools UNDERPERFORM pairwise + LRT on short series\n\nSpies, Renz, Beyer, Ciaudo 2019 *Brief Bioinform* 20:288 benchmarked dedicated time-course tools (ImpulseDE2, splineTC, maSigPro, EBSeqHMM, TimeReg) against naive DESeq2\u002FedgeR pairwise comparisons + LRT for omnibus, on simulated and real time-courses. Finding: **on short series (\u003C8 time points), naive pairwise pattern-of-significance OUTPERFORMS dedicated TC tools** because of high false-positive rates in the latter. The exception is ImpulseDE2, which holds up better than the others -- IF its impulse assumption (rise-then-plateau or fall-then-plateau) actually fits the biology.\n\nFor most experimental time courses (3-6 time points, common in pharmacology and developmental biology), the right tool is DESeq2 with `test='LRT'` and a sensible reduced model. Reserve splines for >5 evenly-spaced time points; reserve ImpulseDE2 for monotonic-then-saturating dynamics; reserve DREAM for repeated measures.\n\nA second insight that is constantly violated: pseudoreplication. If 3 subjects each contribute 4 time points (12 samples), the effective sample size for testing TIME effects is closer to 3, not 12 -- the within-subject observations are not independent. Treating them as independent inflates type-I error dramatically. Either include subject as a fixed effect, use DREAM (mixed model), or collapse to per-subject means (loses time info).\n\n## Algorithmic Taxonomy\n\n| Method | What it tests | Best for | Failure mode |\n|--------|---------------|----------|--------------|\n| DESeq2 LRT (`test='LRT'`, `reduced=`) | Joint hypothesis: dropped terms are jointly zero | Default for \"any time effect\"; multi-group time interaction | Reports LFC of last coefficient, not omnibus -- use padj only |\n| DESeq2 + splines (`ns(time, df=3)`) | Smooth nonlinear time effect | 5+ time points, smooth dynamics, multi-group interaction | Spline df > unique time points \u002F 2 overfits |\n| maSigPro (Nueda 2014 RNA-seq update) | Polynomial regression on time per group | Multi-group time-course, regression-style hypotheses | Polynomial assumption can be wrong; less popular than DESeq2 LRT |\n| ImpulseDE2 (Fischer, Theis, Yosef 2018) | Constant vs monotonic vs impulse trajectories | Monotonic-then-saturating or impulse-like responses | Fails on oscillatory, multi-phase, monotonic-non-asymptotic; sensitive to noise on short series |\n| DREAM (Hoffman, Roussos 2021) | Per-gene linear mixed model with random subject | Repeated measures with >2 time points per subject | Slower; requires variancePartition stack; `ddf='adaptive'` default (Kenward-Roger for n\u003C=20, Satterthwaite otherwise) |\n| voom + duplicateCorrelation | Single average within-subject correlation | Technical reps within bio reps, paired pre\u002Fpost | Single correlation across all genes is approximation |\n| edgeR LRT with subject as factor | Subject as fixed effect | Small subject count, simple design | Wastes df; can't handle continuous time well |\n| TCseq | Spline-based DE + fuzzy clustering | Combined pipeline for DE + cluster discovery | Single-tool dependency; verify maintenance |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended approach | Why |\n|----------|---------------------|-----|\n| 2-3 discrete time points, independent samples per time | DESeq2 LRT, time as factor, `reduced = ~1` | Too few points for splines |\n| 5+ time points, single group, smooth dynamics | DESeq2 LRT with `ns(time, df=3)`, `reduced = ~1` | Splines capture nonlinearity efficiently |\n| 5+ time points, two groups, \"do trajectories differ?\" | LRT with `~ treatment * ns(time, df=3)` vs `reduced = ~ treatment + ns(time, df=3)` | Tests the interaction (treatment-specific time response) |\n| Same subject sampled over time (longitudinal) | DREAM (random subject) OR DESeq2 with subject fixed effect | Mandatory: pseudoreplication otherwise |\n| Monotonic-then-saturating biology expected | ImpulseDE2 | Built for the assumption |\n| Circadian or cell-cycle (cyclical) | Fourier basis (`fda::create.fourier.basis`) or dedicated tools (JTK_CYCLE, MetaCycle) | Splines can't represent periodicity |\n| Short series (\u003C8 time points) | DESeq2 pairwise + LRT (Spies 2019 finding) | Dedicated TC tools have high FPR on short series |\n| Want to cluster trajectories after DE | DPGP (nonparametric), Mfuzz (with Schwämmle 2010 m estimation), splines + k-means | Standardize per gene first |\n| Multi-batch time course | Add batch to design; test the interaction term | Standard DESeq2 \u002F edgeR pattern |\n\n## DESeq2 LRT for Time -- The Canonical Pattern\n\n**Goal:** Test whether time has ANY effect (omnibus), or whether time trajectories differ between groups (interaction).\n\n**Approach:** Specify a full design including the time terms; specify a reduced design dropping those terms; LRT compares.\n\n```r\nlibrary(DESeq2)\n\ndds \u003C- DESeqDataSetFromMatrix(counts, colData, design = ~ time)\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ 1)\nres \u003C- results(dds)\n```\n\nThe LRT p-value tests \"any difference among time points\". The `log2FoldChange` column reports the LAST coefficient in `resultsNames(dds)` -- NOT the omnibus effect. Use padj only from LRT results; extract individual Wald per time point for effect sizes.\n\nInteraction (treatment-specific time response):\n\n```r\ndds \u003C- DESeqDataSetFromMatrix(counts, colData,\n    design = ~ treatment + time + treatment:time)\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ treatment + time)\nres_interaction \u003C- results(dds)\n```\n\nThis tests \"does the time trajectory differ between treatment groups?\" -- a different question than \"is there a time effect\" or \"is there a treatment effect\".\n\n## Time as Factor vs Continuous vs Spline\n\n| Encoding | Assumption | df spent | When |\n|----------|------------|----------|------|\n| Factor (`time` as factor) | No structure; each level independent | (n_levels - 1) | Few discrete time points, irregular spacing, interest in specific pairwise comparisons |\n| Continuous (`as.numeric(time)`) | Linear effect on log expression | 1 | Linear biology, well-spaced time points -- often wrong |\n| Natural spline (`ns(time, df=k)`) | Smooth nonlinear; k basis functions | k | Dense time courses (5+ points), smooth biology |\n\nRule of thumb: `df \u003C= unique_time_points \u002F 2`.\n\n```r\nlibrary(splines)\n\ndds \u003C- DESeqDataSetFromMatrix(counts, colData,\n    design = ~ treatment * ns(time, df = 3))\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ treatment + ns(time, df = 3))\n```\n\n## limma-voom + Splines (Modern Alternative)\n\n```r\nlibrary(limma)\nlibrary(edgeR)\nlibrary(splines)\n\ny \u003C- DGEList(counts = counts)\ny \u003C- normLibSizes(y)\nkeep \u003C- filterByExpr(y, group = metadata$treatment)\ny \u003C- y[keep, , keep.lib.sizes = FALSE]\n\ndesign \u003C- model.matrix(~ treatment * ns(time, df = 3), data = metadata)\nv \u003C- voom(y, design, plot = TRUE)\nfit \u003C- lmFit(v, design)\nfit \u003C- eBayes(fit, robust = TRUE)\n\ninteraction_cols \u003C- grep(':ns\\\\(time', colnames(design))\ntt \u003C- topTable(fit, coef = interaction_cols, number = Inf)\n```\n\nTests the joint significance of all interaction spline coefficients.\n\n## DREAM for Repeated Measures\n\n**Goal:** Properly model longitudinal data where the same subject is sampled multiple times.\n\n**Approach:** Linear mixed model per gene with subject as a random intercept (or slope), via `variancePartition::dream`. Uses voom-weighted linear regression internally. Default `ddf='adaptive'` uses Kenward-Roger for n \u003C= 20 samples (the typical longitudinal-DE regime) and Satterthwaite otherwise; force either explicitly with `ddf='Kenward-Roger'` or `ddf='Satterthwaite'`.\n\n```r\nlibrary(variancePartition)\nlibrary(edgeR)\nlibrary(BiocParallel)\n\ny \u003C- DGEList(counts = counts)\ny \u003C- normLibSizes(y)\nkeep \u003C- filterByExpr(y, group = metadata$treatment)\ny \u003C- y[keep, , keep.lib.sizes = FALSE]\n\nformula \u003C- ~ treatment + time + treatment:time + (1 | subject)\n\nvobj \u003C- voomWithDreamWeights(y, formula, metadata)\nfitmm \u003C- dream(vobj, formula, metadata)\nfitmm \u003C- eBayes(fitmm)\ntt \u003C- topTable(fitmm, coef = grep(':time', colnames(coefficients(fitmm))),\n               number = Inf)\n```\n\nWhen to use DREAM over `~ subject + treatment + time` (subject as fixed effect):\n- More than 2 time points per subject (more random-effect signal to estimate)\n- Many subjects (random effects more parsimonious than fixed)\n- Random slopes needed (e.g., `(1 + time | subject)`)\n- Multiple random effects (e.g., `(1 | donor) + (1 | batch)`)\n\n`duplicateCorrelation` (`limma`) is the older approximate alternative -- assumes a SINGLE within-subject correlation across all genes. Adequate for technical replicates within biological replicates; less so for proper longitudinal data with multiple time points.\n\n## maSigPro (Nueda 2014 for RNA-seq)\n\n```r\nlibrary(maSigPro)\n\nedesign \u003C- data.frame(\n    Time      = metadata$time,\n    Replicate = metadata$replicate,\n    Control   = as.numeric(metadata$treatment == 'Control'),\n    Treatment = as.numeric(metadata$treatment == 'Treatment')\n)\nrownames(edesign) \u003C- metadata$sample\n\ndesign \u003C- make.design.matrix(edesign, degree = 3)\n\nfit \u003C- p.vector(norm_counts, design, Q = 0.05, MT.adjust = 'BH')\ntstep \u003C- T.fit(fit, step.method = 'backward', alfa = 0.05)\nsigs \u003C- get.siggenes(tstep, rsq = 0.6, vars = 'groups')\nsee.genes(sigs$sig.genes, show.fit = TRUE, dis = design$dis,\n          cluster.method = 'hclust', k = 9)\n```\n\nCITATION: Nueda MJ, Tarazona S, Conesa A (2014) \"Next maSigPro: updating maSigPro bioconductor package for RNA-seq time series.\" *Bioinformatics* 30(18):2598-2602. The earlier Conesa et al. 2006 *Bioinformatics* 22:1096 is the microarray-era original. Cite 2014 for RNA-seq use; many secondary refs miscite 2006.\n\n## ImpulseDE2\n\n**Goal:** Detect transient impulse-like expression patterns (rise then decay, or constant-then-monotonic).\n\n**Approach:** Fits constant, monotonic, and impulse (6-parameter sigmoid: baseline, peak, post-peak baseline, rise rate, decay rate) models per gene; selects the best-fitting and tests for differential dynamics.\n\n```r\nlibrary(ImpulseDE2)\n\ndfAnnotation \u003C- data.frame(\n    Sample    = colnames(counts),\n    Time      = metadata$time,\n    Condition = metadata$condition,\n    Batch     = metadata$batch\n)\n\nimp \u003C- runImpulseDE2(\n    matCountData    = as.matrix(counts),\n    dfAnnotation    = dfAnnotation,\n    boolCaseCtrl    = TRUE,\n    vecConfounders  = c('Batch'),\n    scaNProc        = 4\n)\n\nsig \u003C- imp$dfImpulseDE2Results[imp$dfImpulseDE2Results$padj \u003C 0.05, ]\n```\n\nThe impulse model FAILS on:\n- Oscillatory expression (circadian, cell cycle) -- model can't represent periodicity\n- Monotonic-but-non-asymptotic responses (linear increases that don't plateau)\n- Multi-phase responses (rise-fall-rise)\n\nFor oscillatory biology, use Fourier basis or dedicated tools (JTK_CYCLE, MetaCycle). For non-asymptotic monotonic, splines fit better.\n\nNOTE: ImpulseDE2 was removed from Bioconductor at the 3.13 release (May 2021); last hosted version was 3.10 -- install from the BiocArchive (pin to Bioc 3.10) or the YosefLab GitHub mirror. The Spies 2019 benchmark showed ImpulseDE2 holds up on longer time courses (~8+ time points) but is sensitive to noise on short series; below ~8 time points, DESeq2 pairwise + LRT typically outperforms.\n\n## Trajectory Clustering of DE Genes\n\n**Goal:** After identifying DE-over-time genes, group them by trajectory shape.\n\n**Approach:** Standardize per gene (subtract mean, divide by SD per gene) -- otherwise clusters reflect mean level, not shape. Then apply DPGP (nonparametric), Mfuzz (fuzzy c-means), or splines + k-means.\n\n```r\nlibrary(Mfuzz)\n\neset \u003C- ExpressionSet(assayData = as.matrix(norm_counts[sig_genes, ]))\neset_std \u003C- standardise(eset)\n\nm \u003C- mestimate(eset_std)\ncl \u003C- mfuzz(eset_std, c = 9, m = m)\n\nmfuzz.plot(eset_std, cl, mfrow = c(3, 3))\n```\n\nThe Mfuzz fuzzifier `m` is critical -- too low gives crisp clusters (loses fuzzy advantage); too high collapses everything. `mestimate()` implements Schwämmle & Jensen 2010 *Bioinformatics* 26:2841 to estimate `m` from the data.\n\nCITATION CARE: the Mfuzz PACKAGE paper is Kumar L, Futschik ME (2007) *Bioinformation* 2(1):5-7 (the journal is *Bioinformation*, NOT *Bioinformatics*). The Schwämmle 2010 paper is the fuzzifier-estimation methodology paper, *Bioinformatics*. Many references confuse the two.\n\nFor DPGP (Dirichlet Process Gaussian Process; nonparametric in cluster number AND trajectory shape):\n\nCITATION: McDowell IC, Manandhar D, Vockley CM, Schmid AK, Reddy TE, Engelhardt BE (2018) \"Clustering gene expression time series data using an infinite Gaussian process mixture model.\" *PLoS Comput Biol* 14(1):e1005896. CITATION CARE: this is *PLoS Comp Biol*, NOT *Genome Research* (a common miscitation).\n\nSplines + k-means (fast alternative):\n\n```r\nlibrary(splines)\nspline_coefs \u003C- t(apply(norm_counts[sig_genes, ], 1, function(x) {\n    fit \u003C- lm(x ~ ns(metadata$time, df = 4))\n    coef(fit)\n}))\nkm \u003C- kmeans(scale(spline_coefs), centers = 6)\n```\n\n## Time as the Only Variable (Developmental Series)\n\nWhen time is the sole variable (e.g., embryonic development series), the DE question becomes \"which genes change across the trajectory\":\n\n```r\ndds \u003C- DESeqDataSetFromMatrix(counts, colData, design = ~ time)\ndds \u003C- DESeq(dds, test = 'LRT', reduced = ~ 1)\nres \u003C- results(dds)\n```\n\nCaveats:\n- Reference time point biases the reported LFC (it's the LFC at the LAST time point vs reference)\n- For cyclical biology (circadian, cell cycle), use periodic basis functions\n\n## Per-Method Failure Modes\n\n### Pseudoreplication -- treated 12 samples from 3 subjects as 12 independent\n\n**Trigger:** 3 subjects x 4 time points = 12 samples; vanilla DESeq2 with `~ time`; many DE genes.\n\n**Mechanism:** Within-subject observations are correlated; treating them as independent inflates effective sample size from 3 to 12 in the inference, deflating standard errors.\n\n**Symptom:** p-value histogram anti-conservative; many false-positive DE genes; replication fails.\n\n**Fix:** Include subject in design (`~ subject + time`) OR use DREAM with random subject. Collapsing to per-subject means is OK but loses time info.\n\n### LRT reports the wrong LFC\n\n**Trigger:** `DESeq(dds, test='LRT', reduced=~1)` on a 5-time-point study; user reports the `log2FoldChange` column as \"the time effect\".\n\n**Mechanism:** LRT padj is the omnibus joint test. The LFC reported is for the LAST coefficient in `resultsNames(dds)`, one specific level-vs-reference comparison.\n\n**Symptom:** A 5-time-point factor produces one LFC per gene; reviewer asks \"the effect of which time?\"\n\n**Fix:** Treat LRT padj as a screen for \"any change\". For effect sizes, extract Wald coefficients per time point via `results(dds, name='time_T2_vs_T0')` etc.\n\n### ImpulseDE2 reports noise as \"impulse\"\n\n**Trigger:** Short series (4-5 time points), oscillatory or non-monotonic biology; ImpulseDE2 flags many \"impulse\" genes that look like noise on inspection.\n\n**Mechanism:** Impulse model has 6 parameters; on short series, easy to fit by chance. For oscillatory data, model is wrong.\n\n**Symptom:** Validation orthogonal data shows the \"impulse\" genes are not actually transient; replication low.\n\n**Fix:** Use DESeq2 LRT + spline interaction for short or non-impulse data. Reserve ImpulseDE2 for cases where biology is known to be monotonic-then-asymptotic (immune response, cytokine release).\n\n### Wrong spline df\n\n**Trigger:** 4 time points; user sets `ns(time, df = 5)`; bizarre fits per gene.\n\n**Mechanism:** df > number of unique time points produces overfitting; spline basis is rank-deficient.\n\n**Symptom:** Errors about singular fits; or apparently-clean fits that don't generalize.\n\n**Fix:** `df \u003C= unique_time_points \u002F 2`. For 4 time points, df = 2 (or use factor encoding instead).\n\n### Trajectory clusters dominated by expression level\n\n**Trigger:** Mfuzz \u002F k-means clustering of trajectories; clusters separate high- vs low-expressed genes rather than shape patterns.\n\n**Mechanism:** Forgot to standardize per gene; absolute levels dominate distance computations.\n\n**Symptom:** Clusters labeled by mean expression, not trajectory shape.\n\n**Fix:** `standardise()` in Mfuzz, or `scale()` per gene before k-means. The point of trajectory clustering is shape, not magnitude.\n\n### maSigPro miscited as 2006\n\n**Trigger:** Methods section cites \"Conesa 2006 maSigPro\" for an RNA-seq analysis.\n\n**Mechanism:** The 2006 Conesa paper is the original microarray maSigPro. The 2014 Nueda paper is the RNA-seq update with NB GLM.\n\n**Symptom:** Reviewer asks for the RNA-seq citation specifically.\n\n**Fix:** Cite Nueda MJ, Tarazona S, Conesa A (2014) *Bioinformatics* 30(18):2598-2602 for RNA-seq use.\n\n## Common errors\n\n| Error \u002F symptom | Cause | Fix |\n|-----------------|-------|-----|\n| `singular fit` from spline model | df > unique time points | Reduce df or use factor encoding |\n| LRT p-values numerically identical across genes | Reduced model matches full model (no effect tested) | Verify `reduced` actually drops the term of interest |\n| ImpulseDE2 not installable from Bioconductor | Removed at Bioconductor 3.13 (May 2021); last hosted version 3.10 | Install from BiocArchive (pin Bioc 3.10) or YosefLab GitHub mirror |\n| Mfuzz clusters dominated by mean level | Forgot standardisation | Use `standardise()` before `mfuzz()` |\n| Trajectory plot shows flat lines | Counts not log-transformed before clustering | Use `cpm(y, log=TRUE)` or `vst()` then standardize |\n| DREAM very slow | Large gene set with mixed model per gene | Filter to DE-over-time first (LRT screen), then DREAM on the subset |\n\n## References\n\n- Love MI, Huber W, Anders S. 2014. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. *Genome Biol* 15(12):550. doi:10.1186\u002Fs13059-014-0550-8\n- Nueda MJ, Tarazona S, Conesa A. 2014. Next maSigPro: updating maSigPro bioconductor package for RNA-seq time series. *Bioinformatics* 30(18):2598-2602. doi:10.1093\u002Fbioinformatics\u002Fbtu333\n- Conesa A, Nueda MJ, Ferrer A, Talón M. 2006. maSigPro: a method to identify significantly differential expression profiles in time-course microarray experiments. *Bioinformatics* 22(9):1096-1102. doi:10.1093\u002Fbioinformatics\u002Fbtl056\n- Fischer DS, Theis FJ, Yosef N. 2018. Impulse model-based differential expression analysis of time course sequencing data. *Nucleic Acids Res* 46(20):e119. doi:10.1093\u002Fnar\u002Fgky675\n- Hoffman GE, Roussos P. 2021. dream: powerful differential expression analysis for repeated measures designs. *Bioinformatics* 37(2):192-201. doi:10.1093\u002Fbioinformatics\u002Fbtaa687\n- Hoffman GE, Schadt EE. 2016. variancePartition: interpreting drivers of variation in complex gene expression studies. *BMC Bioinformatics* 17:483. doi:10.1186\u002Fs12859-016-1323-z\n- Spies D, Renz PF, Beyer TA, Ciaudo C. 2019. Comparative analysis of differential gene expression tools for RNA sequencing time course data. *Brief Bioinform* 20(1):288-298. doi:10.1093\u002Fbib\u002Fbbx115\n- Kumar L, Futschik ME. 2007. Mfuzz: a software package for soft clustering of microarray data. *Bioinformation* 2(1):5-7.\n- Schwämmle V, Jensen ON. 2010. A simple and fast method to determine the parameters for fuzzy c-means cluster analysis. *Bioinformatics* 26(22):2841-2848. doi:10.1093\u002Fbioinformatics\u002Fbtq534\n- McDowell IC, Manandhar D, Vockley CM, Schmid AK, Reddy TE, Engelhardt BE. 2018. Clustering gene expression time series data using an infinite Gaussian process mixture model. *PLoS Comput Biol* 14(1):e1005896. doi:10.1371\u002Fjournal.pcbi.1005896\n- Law CW, Chen Y, Shi W, Smyth GK. 2014. voom: precision weights unlock linear model analysis tools for RNA-seq read counts. *Genome Biol* 15(2):R29. doi:10.1186\u002Fgb-2014-15-2-r29\n\n## Related Skills\n\n- deseq2-basics - LRT mechanics; design formulas\n- edger-basics - voom + splines pattern\n- de-results - LRT padj interpretation; pseudoreplication detection\n- de-visualization - Per-gene trajectories; heatmap with time order\n- batch-correction - Time-batch confounding; multi-batch time courses\n- expression-matrix\u002Fmetadata-joins - Subject as covariate; repeated measures designs\n- pathway-analysis\u002Fgo-enrichment - Functional analysis of trajectory clusters\n- temporal-genomics\u002Fcircadian-rhythms - Circadian-specific detection (JTK_CYCLE, MetaCycle)\n- temporal-genomics\u002Ftemporal-clustering - Standalone trajectory clustering methods\n- temporal-genomics\u002Ftrajectory-modeling - GAM trajectory fitting\n- temporal-genomics\u002Ftemporal-grn - Dynamic gene regulatory network inference\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","r","2026-09-20","differential-expression\u002Ftimeseries-de\u002FSKILL.md","DESeq2","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-differential-expression-timeseries-de","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-differential-expression-timeseries-de",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-differential-expression-timeseries-de",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-differential-expression-timeseries-de","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-differential-expression-timeseries-de\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Ftimeseries_limma.R","OTHER","其他",2860,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-differential-expression-timeseries-de\u002Fexamples\u002Ftimeseries_limma.R",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",3502,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-differential-expression-timeseries-de\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]