Omics analysis guide

From jaechang-hits/SciAgent-Skills · View interactive version

Omics analysis guide is an AI agent skill from the GitHub repository jaechang-hits/SciAgent-Skills. Three-tiered approach to omics data analysis (transcriptomics, proteomics) covering validated pipelines, standard workflows, and custom methods

How to use this skill

Skill file

Omics Data Analysis Guide: Three-Tiered Approach


Metadata

Short Description: Comprehensive guide for analyzing omics data (transcriptomics, proteomics) using validated pipelines, standard workflows, or custom analysis methods.

Authors: HITS

Version: 1.0

Last Updated: December 2025

License: CC BY 4.0

Commercial Use: Allowed

Citations and Acknowledgments

If you use validated pipelines or tools (Option 1):

If you use standard workflows (Option 2):


Overview

This guide provides a three-tiered approach to omics data analysis, prioritizing validated pipelines and standard workflows before moving to custom analysis. Always start with Option 1 and proceed to subsequent options only if needed.

The guide covers:

Note: This guide focuses on analysis of already-quantified data. For raw data processing (alignment, quantification), refer to specialized tools and pipelines.


Key Concepts

Validated Pipeline vs. Standard Workflow vs. Custom Analysis

A validated pipeline is a specific tool with peer-reviewed benchmarking data demonstrating performance on data like yours (e.g., DESeq2 for RNA-seq counts, MaxQuant for label-free proteomics). A standard workflow is the canonical sequence of QC → normalization → statistical test → multiple-testing correction assembled from accepted community practice but tuned to your specific dataset. Custom analysis is bespoke statistical or computational modeling required when neither prior tier covers the data type or research question. The progression Option 1 → Option 2 → Option 3 trades reproducibility for flexibility — always exhaust earlier tiers first.

Missing Value Mechanisms (MCAR / MAR / MNAR)

Missing data in omics arises from three distinct mechanisms with different correct treatments. MCAR (Missing Completely At Random) means missingness is independent of any value — safe to impute with mean, median, or KNN. MAR (Missing At Random) means missingness depends on observed variables but not the unobserved value — KNN or model-based imputation is appropriate. MNAR (Missing Not At Random) means missingness depends on the missing value itself, typical in proteomics where low-abundance proteins drop below detection — requires left-censored imputation (minprob/QRILC) below the detection limit. Choosing the wrong mechanism systematically biases downstream statistics.

Test Assumptions and Test Selection

Parametric tests (Student's t-test, Welch's t-test) assume approximate normality and (for Student's) equal variances; they have higher power than non-parametric tests when assumptions hold. Non-parametric tests (Mann-Whitney U, permutation) make weaker assumptions and are correct under skewed distributions or small n, at the cost of statistical power. The choice depends on sample size (n < 10 favors non-parametric), normality (Shapiro-Wilk / Anderson-Darling at the feature level), variance homogeneity (Levene's test), and outlier prevalence.

Multiple Testing Correction

Omics analyses test thousands of features simultaneously. Without correction, expected false positives at α=0.05 across 20,000 genes is 1,000. Family-wise error rate (FWER) corrections like Bonferroni control the probability of any false positive but are conservative. False discovery rate (FDR) corrections like Benjamini-Hochberg control the expected proportion of false positives among reported significant features and are the standard for omics. Always report adjusted p-values, never raw p-values, when calling significance.


Decision Framework

Use this tree to choose the right analysis tier for your data:

              Have you searched for a validated
              pipeline matching your data type?
                            │
              ┌─────────────┴─────────────┐
              │                           │
             NO                          YES
              │                           │
              ▼                           ▼
       Run Method 1            Did you find a validated
       (literature) AND        pipeline with benchmarks
       Method 2 (consortia     matching your data type
       workflows) FIRST        and biological question?
                                          │
                                  ┌───────┴───────┐
                                  │               │
                                 YES              NO
                                  │               │
                                  ▼               ▼
                          OPTION 1:        Is your data a
                          Use validated    common type
                          pipeline         (RNA-seq counts,
                          (e.g., DESeq2,   pre-quantified
                          edgeR, MaxQuant) proteomics)?
                                                  │
                                          ┌───────┴───────┐
                                          │               │
                                         YES              NO
                                          │               │
                                          ▼               ▼
                                  OPTION 2:        OPTION 3:
                                  Standard         Custom analysis
                                  workflow         (consult
                                  (QC → norm →     statistician;
                                   test → FDR)     document
                                                   thoroughly)

Decision Table

| Data type | Sample size | Has validated pipeline? | Recommended tier | Specific tool / approach |

|-----------|-------------|--------------------------|------------------|--------------------------|

| Bulk RNA-seq counts | n ≥ 3/group | Yes (DESeq2, edgeR) | Option 1 | DESeq2 (negative binomial, default FDR < 0.05) |

| Pre-quantified proteomics, normal-distributed | n ≥ 5/group | Sometimes | Option 1 if pipeline matches; else Option 2 | limma or t-test + BH-FDR |

| Pre-quantified proteomics, MNAR-heavy | n ≥ 5/group | No (mechanism-specific) | Option 2 | minprob imputation → t-test or Mann-Whitney → BH-FDR |

| Small-cohort omics (n < 5) | n < 5 | Rarely | Option 2 with caution | Permutation test, report effect sizes; flag results as preliminary |

| Multi-omics integration | Variable | Limited | Option 3 | MOFA, DIABLO, or custom Bayesian model |

| Novel data type (e.g., spatial multi-omics) | Variable | No | Option 3 | Build from first principles; cross-validate |

| Time-series omics | n per timepoint | Sometimes (maSigPro, ImpulseDE2) | Option 1 if available; else Option 3 | maSigPro for transcriptomics; custom for proteomics |


Option 1: Search for Validated Analysis Methods (Recommended First)

1.1 Search for Validated Analysis Pipelines

IMPORTANT: You MUST complete BOTH Method 1 AND Method 2 before proceeding to Option 2. Do not skip Method 2 even if Method 1 finds no results.

Method 1: Literature Search for Best Practices

Search for validated analysis methods using web search tools or literature databases (PubMed, Google Scholar).

Search queries to try (use multiple):

"[DATA_TYPE]" "[ANALYSIS_TYPE]" validated pipeline best practices
"[DATA_TYPE]" analysis workflow "[ORGANISM]" published
"[DATA_TYPE]" "[TOOL_NAME]" validation benchmark comparison

Example for bulk RNA-seq:

"RNA-seq" "differential expression" validated pipeline human
"DESeq2" "edgeR" comparison validation RNA-seq

Example for proteomics:

"proteomics" "differential abundance" analysis validated methods
"proteomics" normalization imputation best practices

What to search for in results:

IMPORTANT: Spend adequate time searching literature. Look through at least the first 10-15 search results and check supplementary materials of relevant papers.

Method 2: Review Standard Analysis Workflows

Review established workflows from major consortia and publications:

What to Do with Results:

If you find validated pipelines or methods:

  1. Record the pipeline/method name and version
  2. Note the reference: Record the publication DOI/PubMed ID
  3. Record validation details: Benchmark results, recommended parameters, any limitations
  4. Document the workflow: Step-by-step analysis procedure

Example result format:

Data Type: Bulk RNA-seq
Analysis Goal: Differential expression
Pipeline: DESeq2 (v1.40.0)
Reference: Love MI, et al. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol. 2014;15(12):550. PMID: 25516281
Validation: Validated in multiple benchmark studies, recommended for count data
Parameters: Default parameters, FDR < 0.05, log2FC > 1

If no validated pipelines found in BOTH Method 1 AND Method 2:

Only then proceed to Option 2: Use Standard Workflows


Option 2: Use Standard Analysis Workflows

When to Use This Option?

2.1 Overview of Standard Workflows

RNA-seq (Bulk):

  1. Quality control
  2. Normalization and filtering (if count data, use DESeq2/edgeR normalization)
  3. Statistical analysis (differential expression)
  4. Multiple testing correction
  5. Functional enrichment (optional)

Proteomics (Pre-quantified):

  1. Quality control
  2. Missing value assessment and imputation
  3. Normalization
  4. Batch correction (if needed)
  5. Statistical analysis (differential abundance)
  6. Multiple testing correction

2.2 Essential Quality Control Steps

CRITICAL: Quality control must be performed before any statistical analysis. Poor data quality will lead to unreliable results regardless of statistical methods used.

Sample-Level Quality Control

Check for outlier samples:

Check sample correlation:

Check for batch effects:

Feature-Level Quality Control

Assess missing value patterns:

Check feature detection consistency:

2.3 Preprocessing Steps

Missing Value Imputation

CRITICAL: Choose imputation method based on missing value mechanism:

Normalization

For RNA-seq count data: Normalization is typically handled by DESeq2/edgeR (size factors).

For proteomics/continuous data:

2.4 Statistical Analysis: Choosing the Right Test

CRITICAL: Always check statistical test assumptions before performing analysis. Using the wrong test can lead to incorrect conclusions.

Step 1: Check Test Assumptions

Key checks to perform:

  1. Normality test:
  1. Variance homogeneity test:
  1. Sample size check:
  1. Outlier check:

Test selection logic:

Step 2: Perform Statistical Test

Implementation steps:

  1. For each feature:
  1. Apply FDR correction:

Key libraries:

2.5 Visualization

For all figures, read skills/data-visualization/omics-plotting/SKILL.md and follow its recipes so every plot shares one publication-ready style. The two plots below map directly onto its recipes — the volcano onto "Volcano", the PCA onto "PCA / UMAP / t-SNE" — with results loaded from an exported CSV (keep computation and plotting in separate steps).

Volcano Plot:

PCA Plot (for quality control):

2.6 What to Do with Results

Once you have completed the standard workflow:

  1. Document all steps and parameters used
  2. Save intermediate results for reproducibility
  3. Validate results using independent methods when possible
  4. Report key findings with appropriate statistics

If standard workflows don't meet your needs:

Proceed to Option 3: Custom Analysis


Option 3: Custom Analysis Methods (Last Resort)

When to Use This Option?

3.1 General Principles

Essential Requirements:
  1. Data Quality: Ensure high-quality data before custom analysis
  1. Statistical Rigor:
  1. Reproducibility:
  1. Validation:
Best Practices:

Quick Start Examples

Example 1: Bulk RNA-seq Differential Expression Analysis

Step 1: Quality Control

Step 2: For RNA-seq count data, use DESeq2 (typically in R)

library(DESeq2)
dds <- DESeqDataSetFromMatrix(countData = count_matrix, colData = sample_metadata, design = ~ condition)
dds <- DESeq(dds)
res <- results(dds, contrast=c("condition", "treatment", "control"))

Step 3: Functional Enrichment (optional)

Example 2: Proteomics Differential Abundance Analysis

Step 1: Quality Control

Step 2: Impute Missing Values

Step 3: Normalization

Step 4: Check for Batch Effects

Step 5: Differential Abundance Analysis

Step 6: Visualization


Data Type-Specific Considerations

RNA-seq (Bulk)

Proteomics (Pre-quantified)


Best Practices

  1. Exhaust validated pipelines before building anything custom. Run both literature search and consortium-workflow review before falling back to bespoke analysis. Rationale: validated pipelines have peer-reviewed benchmarking; novel methods require their own validation effort and reduce reproducibility.
  1. Perform sample-level QC before any statistical analysis. Use PCA + Isolation Forest for outlier detection, sample correlation matrices, and PCA + silhouette score for batch effects. Rationale: a single outlier sample or unrecognized batch effect can dominate test statistics and produce uninterpretable results regardless of the test chosen.
  1. Diagnose the missing-value mechanism (MCAR / MAR / MNAR) before imputing. Check the correlation between mean intensity and missingness rate per feature. Rationale: imputing MNAR data with KNN biases low-abundance features upward; imputing MCAR data with minprob biases everything downward. Mechanism-aware imputation prevents systematic distortion.
  1. Always check test assumptions, then choose the test — never the reverse. Run Shapiro-Wilk / Anderson-Darling for normality and Levene's for variance homogeneity on a representative feature subset. Rationale: applying a t-test to non-normal small-n data inflates type I error; defaulting to Mann-Whitney on well-behaved data wastes power.
  1. Always apply FDR correction (Benjamini-Hochberg) for genome-wide tests. Report p_adj (or q-value), not raw p. Rationale: with 20,000 genes tested at α=0.05, ~1,000 false positives are expected without correction — the result set is meaningless.
  1. Document every parameter and version, save intermediate outputs, and pin random seeds. Record tool version, parameter values, normalization method, imputation method, test choice, FDR threshold, and the seed for any stochastic step. Rationale: omics pipelines have many tunable knobs; without exact provenance the analysis cannot be reproduced or audited.
  1. Validate findings on an independent dataset or with an orthogonal method whenever possible. Examples: confirm DE genes via qPCR, replicate in a public dataset (GEO, ArrayExpress), or compare across batches. Rationale: even FDR-controlled hits can be false positives driven by batch artifacts, contamination, or normalization choices.

Common Pitfalls

  1. Skipping QC and going directly to statistics.

Problem: Outlier samples and batch effects produce false signals that pass statistical tests, polluting the result list with artifacts.

How to avoid: Always run sample-level PCA, correlation matrices, and outlier detection before any differential test. Treat QC as mandatory, not optional.

  1. Imputing missing values with a one-size-fits-all method.

Problem: Using mean imputation on MNAR proteomics data biases low-abundance proteins; using minprob on MCAR data biases everything below the detection limit downward.

How to avoid: Diagnose the mechanism (correlation between intensity and missingness), then pick an appropriate imputer: minprob for MNAR, KNN for MCAR/MAR.

  1. Using t-tests on non-normal or small-n data.

Problem: Student's t-test assumes normality and (with pooled variance) equal variances; with n < 10 and skewed data, type I error inflates well above the nominal α.

How to avoid: Run normality and variance tests first; use Welch's t-test for unequal variance, Mann-Whitney for non-normal, and permutation tests for n < 5.

  1. Reporting raw p-values without multiple testing correction.

Problem: Across thousands of features, raw p-values produce massive false discovery rates; the resulting "significant" gene lists are dominated by noise.

How to avoid: Always apply Benjamini-Hochberg FDR (or BY for dependent tests) and report adjusted p-values. Set p_adj < 0.05 (or q < 0.05) as the significance threshold.

  1. Confusing fold change with statistical significance.

Problem: A high log2 fold change at high p_adj is unreliable noise; a low log2 fold change at very low p_adj may be real but biologically negligible.

How to avoid: Filter on both — typical thresholds are |log2FC| > 1 AND p_adj < 0.05. Report effect sizes alongside p-values.

  1. Failing to correct for batch effects when present.

Problem: Batch effects masquerade as biological signal, especially in proteomics and multi-cohort studies; PC1 ends up reflecting batch rather than condition.

How to avoid: Check batch separation with PCA + silhouette score; if silhouette > ~0.3, apply ComBat, limma's removeBatchEffect, or include batch as a covariate in the model.

  1. Treating Option 3 (custom analysis) as a shortcut.

Problem: Jumping straight to custom methods without first running standard workflows skips peer-reviewed validation and makes results harder to publish and reproduce.

How to avoid: Document a clear justification for why Options 1 and 2 are inadequate before moving to Option 3, and validate any custom method on simulated or held-out data.

Related Skills

Concrete SKILLs implementing the tiers above:

References

Pipelines and Tools

Consortium Best Practices

Statistical Methods

Data Repositories for Validation


Remember: Always start with validated pipelines (Option 1), then move to standard workflows (Option 2), and only use custom analysis (Option 3) when necessary. Document all steps and parameters for reproducibility. Quality control is essential at every stage of analysis. Always check statistical test assumptions before performing analysis.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.