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

MeRIP-seq Preprocessing - Usage Guide

Overview

End-to-end preprocessing of methylated-RNA-immunoprecipitation (MeRIP / m6A-seq) IP and matched input libraries. Covers adapter trimming with MeRIP-appropriate defaults, splice-aware genome alignment (STAR or HISAT2), the explicit do-NOT-deduplicate convention for non-UMI MeRIP, replicate-concordance QC via deepTools, IP enrichment QC via plotFingerprint, library-complexity saturation curves via PreSeq, antibody-lot metadata recording for cross-batch reconciliation, and IP-over-Input log2 bigWig generation for downstream visualisation. Produces the paired BAM files required by exomePeak2, MeTPeak, and MACS3.

Prerequisites

conda install -c bioconda star hisat2 samtools deeptools preseq fastp trim-galore picard multiqc

For HISAT2-only environments:

conda install -c bioconda hisat2 samtools deeptools preseq fastp multiqc

Reference inputs:

Quick Start

Example Prompts

Alignment

"Align paired-end MeRIP-seq IP and input libraries to GRCh38 with STAR using splice-aware defaults; retain multi-mappers up to 20 per read; produce coordinate-sorted indexed BAMs ready for exomePeak2."

"Use HISAT2 instead of STAR because the compute node has only 16 GB of memory; align IP and input libraries with --dta for downstream-compatibility; pipe through samtools sort."

Trimming

"Adapter-trim my MeRIP FASTQ pairs with fastp using --detect_adapter_for_pe; require minimum read length 25 nt; do NOT pass any UMI flags because the library is standard non-UMI MeRIP."

Replicate Concordance

"Compute Spearman correlation across all IP and input BAMs at 10 kb bins; render as a clustered heatmap so I can flag a divergent replicate before peak calling."

IP Enrichment QC

"Run deepTools plotFingerprint on all IP and input libraries; report JS distance and synthetic JS distance per sample; flag any IP whose Lorenz curve sits on the diagonal as a failed IP."

Library Complexity

"Run PreSeq lc_extrap on each sorted BAM; subsample all BAMs to the lowest common unique-read depth so peak counts are comparable across conditions."

Downstream Tracks

"Build per-replicate log2 (IP / Input) bigWig tracks at 25 bp bin resolution with pseudocount 1; CPM-normalise; output ready for downstream Guitar metagene and pyGenomeTracks browser plots."

Failed IP Triage

"Tell me which of my 6 IP replicates is most likely a failed IP given the fingerprint metrics and per-transcript IP/input ratio distributions."

Dedup Decision

"Confirm whether to deduplicate this MeRIP library; the protocol used standard non-UMI poly(A) selection followed by Synaptic Systems anti-m6A IP."

What the Agent Will Do

  1. Inspect FASTQ headers and metadata to confirm UMI status (almost always: no UMI for standard MeRIP)
  2. Adapter-trim with fastp or Trim Galore; minimum length 25 nt
  3. Build STAR or HISAT2 index against the matched genome and GTF (one-time)
  4. Loop IP and input libraries through alignment with identical parameters
  5. Sort coordinate, index, and run flagstat + idxstats per BAM
  6. Run deepTools multiBamSummary + plotCorrelation for replicate concordance
  7. Run deepTools plotFingerprint for IP enrichment QC; report JS distance per sample
  8. Run PreSeq c_curve and lc_extrap for library complexity / saturation
  9. Skip dedup (unless library is explicitly UMI-MeRIP, which is rare)
  10. Generate per-replicate log2 (IP/Input) bigWig tracks for downstream visualisation
  11. Aggregate all QC outputs into a MultiQC HTML report
  12. Record antibody clone + lot in sample metadata for downstream design matrix
  13. Recommend rarefaction depth for cross-condition peak-count comparison based on saturation curves

Tips