← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-workflows-merip-pipeline / references / usage-guide.md

MeRIP-seq Pipeline - Usage Guide

Overview

Complete workflow from MeRIP-seq raw FASTQ to differential m6A peaks, DRACH motif sanity check, and Guitar transcript-feature metagene with stop-codon enrichment as the biological QC anchor. Chains fastp trimming, STAR splice-aware genome alignment (no deduplication for non-UMI MeRIP), deepTools replicate-concordance and IP-enrichment QC, PreSeq saturation curves, exomePeak2 peak calling (transcript-aware GC-corrected GLM), the four-BAM-vector differential interface (bam_ip + bam_input + bam_treated_ip + bam_treated_input), ChIPseeker feature annotation, and Guitar visualisation. Defers per-skill deep treatment to the four epitranscriptomics/ skills.

Prerequisites

conda install -c bioconda star samtools deeptools preseq fastp multiqc macs3 homer bedtools
# NOTE: exomePeak2 exists only in Bioconductor 3.18 (deprecated 3.19, removed 3.20). On current
# Bioconductor install it from the Bioc 3.18 archive (or substitute a successor m6A caller).
BiocManager::install(c('exomePeak2', 'GenomicFeatures', 'BSgenome.Hsapiens.UCSC.hg38',
                       'TxDb.Hsapiens.UCSC.hg38.knownGene', 'rtracklayer',
                       'ChIPseeker', 'Guitar'))

Quick Start

Example Prompts

Full Pipeline

"Run the complete MeRIP-seq pipeline on 3 control + 3 treatment paired IP/input libraries; trim with fastp, align with STAR to GRCh38, do NOT deduplicate; QC with deepTools plotFingerprint + replicate Spearman + PreSeq saturation; call peaks with exomePeak2; cross-check with MACS3 broad; confirm DRACH with HOMER; run exomePeak2 differential via the four-BAM-vector interface; annotate with ChIPseeker; render Guitar stop-codon metagene as biological QC anchor."

"Build a Snakemake workflow wrapping fastp -> STAR -> deepTools QC -> PreSeq -> exomePeak2 -> exomePeak2 differential -> ChIPseeker -> Guitar."

Specific Steps

"Just call exomePeak2 peaks from my aligned IP/Input BAMs."

"Run exomePeak2 differential between control and treatment using bam_ip + bam_treated_ip; export the differential peaks with FDR < 0.05 and |log2FC| > 0.5."

"Render the canonical Guitar metagene from my exomePeak2 peaks; confirm stop-codon enrichment."

What the Agent Will Do

  1. Adapter-trim IP and Input FASTQ with fastp (minimum read length 25; no UMI handling)
  2. Align IP and Input separately with STAR splice-aware to the GENOME (not transcriptome)
  3. Sort, index, and run flagstat / idxstats per BAM
  4. Skip deduplication (standard non-UMI MeRIP convention)
  5. Run deepTools multiBamSummary + plotCorrelation for replicate Spearman
  6. Run deepTools plotFingerprint for IP enrichment QC; flag failed IPs (JS distance < 0.5)
  7. Run PreSeq lc_extrap for library complexity; recommend rarefaction depth for cross-condition comparison
  8. Call peaks with exomePeak2 against the matched TxDb + BSgenome
  9. Cross-check with MACS3 --broad --keep-dup all (optional)
  10. Confirm DRACH motif enrichment via HOMER findMotifsGenome.pl -rna (sanity check on peak set, not a per-peak filter)
  11. Run exomePeak2 differential by populating bam_treated_ip + bam_treated_input (no mode= or experiment_design= argument; those don't exist)
  12. Apply effect-size filter (|log2FC| >= 0.5) AND FDR < 0.05 AND replicate-direction concordance
  13. Annotate peaks against transcript features with ChIPseeker
  14. Render canonical Guitar transcript-feature metagene; expect stop-codon enrichment as biological QC anchor
  15. Flag peaks within 50 nt of TSS as m6A-or-m6Am ambiguous
  16. Generate IP-over-Input log2 bigWig and per-locus pyGenomeTracks browser figures for figure assembly

Tips