[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EGNP8Z019DGSWJCK6RVWHN":3,"skill-same:01M7EGNP8Z019DGSWJCK6RVWHN":78},{"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":47,"commitSha":48,"skillDirectory":49,"forksCount":14,"repositoryHtmlUrl":50,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":65},"01M7EGNP8Z019DGSWJCK6RVWHN","bio-workflows-merip-pipeline",null,"Orchestrates an end-to-end MeRIP-seq \u002F m6A-seq analysis from raw FASTQ to differential m6A peak calls and metagene plots, chaining fastp adapter trimming, STAR splice-aware alignment (NO deduplication for non-UMI MeRIP), deepTools replicate-concordance + IP-enrichment QC, PreSeq saturation curves, exomePeak2 (transcript-aware, GC-bias-aware negative-binomial GLM) peak calling, optional MACS3 broad-peak cross-check, DRACH motif confirmation as a sanity check (NOT a per-peak filter), exomePeak2 differential calling via the four-BAM-vector interface (bam_ip + bam_input control; bam_treated_ip + bam_treated_input treatment), ChIPseeker annotation, and the canonical Guitar metagene with stop-codon enrichment as the biological QC anchor. Use when running a complete MeRIP analysis from raw reads, when chaining the constituent epitranscriptomics skills (merip-preprocessing -> m6a-peak-calling -> m6a-differential -> modification-visualization), or when wrapping the pipeline in Snakemake \u002F Nextflow.","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-workflows-merip-pipeline\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-workflows-merip-pipeline\ndescription: Orchestrates an end-to-end MeRIP-seq \u002F m6A-seq analysis from raw FASTQ to differential m6A peak calls and metagene plots, chaining fastp adapter trimming, STAR splice-aware alignment (NO deduplication for non-UMI MeRIP), deepTools replicate-concordance + IP-enrichment QC, PreSeq saturation curves, exomePeak2 (transcript-aware, GC-bias-aware negative-binomial GLM) peak calling, optional MACS3 broad-peak cross-check, DRACH motif confirmation as a sanity check (NOT a per-peak filter), exomePeak2 differential calling via the four-BAM-vector interface (bam_ip + bam_input control; bam_treated_ip + bam_treated_input treatment), ChIPseeker annotation, and the canonical Guitar metagene with stop-codon enrichment as the biological QC anchor. Use when running a complete MeRIP analysis from raw reads, when chaining the constituent epitranscriptomics skills (merip-preprocessing -> m6a-peak-calling -> m6a-differential -> modification-visualization), or when wrapping the pipeline in Snakemake \u002F Nextflow.\ntool_type: mixed\nprimary_tool: exomePeak2\nworkflow: true\ndepends_on:\n  - read-qc\u002Ffastp-workflow\n  - read-alignment\u002Fstar-alignment\n  - epitranscriptomics\u002Fmerip-preprocessing\n  - epitranscriptomics\u002Fm6a-peak-calling\n  - epitranscriptomics\u002Fm6a-differential\n  - epitranscriptomics\u002Fmodification-visualization\nqc_checkpoints:\n  - after_align: \"Properly-paired >=85%; NO deduplication for non-UMI MeRIP\"\n  - after_qc: \"Replicate Spearman >=0.85 IP-IP (10kb bins); plotFingerprint IP-vs-input JS >=0.5\"\n  - after_peaks: \"DRACH enrichment P-value \u003C1e-50 on the peak SET (sanity check, never a per-peak filter)\"\n  - after_metagene: \"Guitar metagene shows the stop-codon\u002F3'UTR-proximal peak; else STOP (IP failure)\"\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"workflows\u002Fmerip-pipeline\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: STAR 2.7.11+, samtools 1.19+, fastp 0.23+, deepTools 3.5+, PreSeq 3.2+, exomePeak2 1.14.x (Bioconductor 3.18 ONLY -- deprecated in Bioc 3.19, removed in 3.20; on current Bioc install from the Bioc 3.18 archive or use a successor), MACS3 3.0+, ChIPseeker 1.38+, Guitar 2.18+, BSgenome.Hsapiens.UCSC.hg38 1.4+, TxDb.Hsapiens.UCSC.hg38.knownGene 3.18+, HOMER 4.11+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\nexomePeak2 has NO `mode=` or `experiment_design=` argument; differential is triggered by populating `bam_treated_ip` + `bam_treated_input`. MeTPeak defaults are `WINDOW_WIDTH=50, SLIDING_STEP=50, FRAGMENT_LENGTH=100`. MACS3 default `--keep-dup` is 1 and MUST be overridden to `all` for non-UMI MeRIP. Guitar `txTxdb=` is the modern argument name (older releases used `txdb=`).\n\n# MeRIP-seq End-to-End Pipeline\n\n**\"Analyze my MeRIP-seq data from FASTQ to differential m6A peaks\"** -> Orchestrate read alignment (STAR splice-aware to GENOME), IP-enrichment QC (deepTools plotFingerprint, replicate Spearman, PreSeq saturation), m6A peak calling (exomePeak2 transcript-aware default, MACS3 broad as cross-check), DRACH motif sanity check (HOMER), exomePeak2 differential via the four-BAM-vector interface, ChIPseeker feature annotation, and Guitar transcript-feature metagene confirming canonical stop-codon enrichment. Defer per-skill deep treatment to `epitranscriptomics\u002Fmerip-preprocessing`, `epitranscriptomics\u002Fm6a-peak-calling`, `epitranscriptomics\u002Fm6a-differential`, and `epitranscriptomics\u002Fmodification-visualization`.\n\nThis is a workflow skill: it owns the chaining decisions and hand-offs, not the internals of any one step.\n\n## The governing principle\n\nMeRIP-seq inverts several DNA-pipeline reflexes; the trustworthy callset is decided at these seams.\n\n1. **Do NOT deduplicate non-UMI MeRIP — duplicates are signal, not artifact.** A highly methylated, highly expressed transcript legitimately produces many identical fragments; removing them (or MACS3 default `--keep-dup 1`) erases the strongest m6A peaks. Keep all reads (`--keep-dup all`); only dedup when a UMI is present.\n2. **Enrichment is IP-vs-Input, and differential is a FOUR-BAM comparison.** Every condition needs its own IP AND Input. exomePeak2 has no `mode=`\u002F`experiment_design=` argument; differential is triggered simply by populating `bam_treated_ip` + `bam_treated_input` alongside the control `bam_ip` + `bam_input`.\n3. **DRACH is a peak-SET sanity check, never a per-peak filter.** Confirm the motif is enriched across the whole peak set (P-value \u003C 1e-50); post-hoc dropping individual peaks that lack a DRACH match discards real non-canonical sites and biases the callset.\n4. **The Guitar stop-codon metagene is the biological go\u002Fno-go.** m6A concentrates near the stop codon \u002F 3'UTR-proximal CDS end; if that enrichment is absent, the IP failed or the antibody is wrong — STOP, do not interpret downstream. And before comparing peak COUNTS across conditions, rarefy BAMs to a common unique-read depth (peak number scales with depth).\n\n## Pipeline Overview\n\n```\nFASTQ -> fastp trim -> STAR genome align -> samtools sort\u002Findex -> deepTools QC + PreSeq saturation\n       -> exomePeak2 peak calling (+ MeTPeak \u002F MACS3 cross-check)\n       -> HOMER DRACH sanity check\n       -> exomePeak2 differential (bam_ip + bam_treated_ip)\n       -> ChIPseeker feature annotation\n       -> Guitar metagene (stop-codon QC anchor) + pyGenomeTracks browser figures\n```\n\n## Step 1: Adapter Trimming\n\n```bash\nfastp \\\n    --in1 raw\u002FIP_R1.fastq.gz --in2 raw\u002FIP_R2.fastq.gz \\\n    --out1 trimmed\u002FIP_R1.fq.gz --out2 trimmed\u002FIP_R2.fq.gz \\\n    --json qc\u002FIP_fastp.json --html qc\u002FIP_fastp.html \\\n    --length_required 25 --detect_adapter_for_pe --thread 8\n\nfastp \\\n    --in1 raw\u002FInput_R1.fastq.gz --in2 raw\u002FInput_R2.fastq.gz \\\n    --out1 trimmed\u002FInput_R1.fq.gz --out2 trimmed\u002FInput_R2.fq.gz \\\n    --json qc\u002FInput_fastp.json --html qc\u002FInput_fastp.html \\\n    --length_required 25 --detect_adapter_for_pe --thread 8\n```\n\nStandard non-UMI MeRIP: do NOT pass `--umi`. See `epitranscriptomics\u002Fmerip-preprocessing` for the do-NOT-dedup rationale.\n\n## Step 2: STAR Splice-Aware Genome Alignment\n\n```bash\nSTAR --runMode alignReads \\\n    --genomeDir refs\u002Fstar_index \\\n    --readFilesIn trimmed\u002FIP_R1.fq.gz trimmed\u002FIP_R2.fq.gz \\\n    --readFilesCommand zcat \\\n    --outSAMtype BAM SortedByCoordinate \\\n    --outFilterMultimapNmax 20 \\\n    --outSAMattributes NH HI AS nM NM MD \\\n    --outFileNamePrefix aligned\u002FIP_rep1_ \\\n    --runThreadN 12\n\nsamtools index aligned\u002FIP_rep1_Aligned.sortedByCoord.out.bam\nln -sf IP_rep1_Aligned.sortedByCoord.out.bam aligned\u002FIP_rep1.bam     # downstream QC\u002Fpeak steps consume the short ${sample}_rep${n}.bam name\nln -sf IP_rep1_Aligned.sortedByCoord.out.bam.bai aligned\u002FIP_rep1.bam.bai\n```\n\nRepeat for each IP and Input replicate. Align to GENOME (not transcriptome) for downstream MeRIP peak calling. Do NOT deduplicate (no UMI in standard MeRIP).\n\n## Step 3: IP-Enrichment + Replicate-Concordance QC\n\n```bash\nmultiBamSummary bins \\\n    --bamfiles aligned\u002FIP_rep[0-9].bam aligned\u002FInput_rep[0-9].bam \\\n    --binSize 10000 --numberOfProcessors 8 \\\n    -o qc\u002Fcov.npz\n\nplotCorrelation --corData qc\u002Fcov.npz --corMethod spearman --skipZeros \\\n    --whatToPlot heatmap --colorMap RdYlBu_r --plotNumbers \\\n    -o qc\u002Freplicate_correlation.pdf\n\nplotFingerprint \\\n    --bamfiles aligned\u002FIP_rep[0-9].bam aligned\u002FInput_rep[0-9].bam \\\n    --skipZeros --numberOfProcessors 8 \\\n    --JSDsample aligned\u002FInput_rep1.bam \\\n    --outQualityMetrics qc\u002Ffingerprint_metrics.tab \\\n    -o qc\u002Ffingerprint.pdf\n\npreseq lc_extrap -B -o qc\u002FIP_rep1_lc_extrap.txt aligned\u002FIP_rep1.bam\n```\n\nFor peak-count comparison across conditions, rarefy BAMs to a common unique-read depth informed by the saturation curve before calling peaks.\n\n## Step 4: exomePeak2 Peak Calling (Per-Condition)\n\n**Goal:** Produce a transcript-aware set of m6A peaks with FDR and IP\u002Finput fold-change from paired IP\u002FInput genome BAM files, suitable as input to differential analysis, motif scanning, or downstream visualisation.\n\n**Approach:** Build a TxDb from the matched GTF; pass paired IP\u002FInput BAM vectors to `exomePeak2()` with `txdb` and `genome` (BSgenome) for GC correction; export BED12 + RDS to `save_dir\u002F`.\n\n```r\nlibrary(exomePeak2)\nlibrary(GenomicFeatures)\nlibrary(BSgenome.Hsapiens.UCSC.hg38)\n\ntxdb \u003C- makeTxDbFromGFF('refs\u002Fannotation.gtf', format='gtf')\n\nresult \u003C- exomePeak2(\n    bam_ip       = c('aligned\u002FIP_rep1.bam', 'aligned\u002FIP_rep2.bam', 'aligned\u002FIP_rep3.bam'),\n    bam_input    = c('aligned\u002FInput_rep1.bam', 'aligned\u002FInput_rep2.bam', 'aligned\u002FInput_rep3.bam'),\n    txdb         = txdb,\n    bsgenome     = BSgenome.Hsapiens.UCSC.hg38,   # bsgenome= (a BSgenome object) for GC correction; genome= would be the UCSC string 'hg38'\n    paired_end   = TRUE,\n    library_type = 'unstranded',\n    save_dir     = 'exomePeak2_output'            # no experiment_name arg; output goes straight under save_dir\u002F\n)\n\npeaks \u003C- result\nnrow(peaks)   # SummarizedExomePeak has no length method (would return 1); nrow = peak count\n```\n\n`exomePeak2()` writes fixed filenames under `save_dir\u002F`: `Mod.bed` (BED12 peaks), `Mod.csv` (per-peak fold-change \u002F FDR), `Mod.rds`.\n\n## Step 5: MACS3 Broad-Peak Cross-Check (Optional)\n\n```bash\nmacs3 callpeak \\\n    --treatment aligned\u002FIP_rep[0-9].bam \\\n    --control aligned\u002FInput_rep[0-9].bam \\\n    --format BAMPE --gsize hs \\\n    --nomodel --extsize 150 \\\n    --keep-dup all \\\n    --broad --broad-cutoff 0.1 --qvalue 0.05 \\\n    --outdir macs3_output --name m6a_run1\n```\n\n`--keep-dup all` is non-negotiable for non-UMI MeRIP (default `--keep-dup 1` destroys signal at high-coverage transcripts).\n\n## Step 6: DRACH Motif Sanity Check\n\n```bash\nfindMotifsGenome.pl \\\n    exomePeak2_output\u002FMod.bed \\\n    hg38 motif_output \\\n    -rna -size 100 -len 5,6 -p 8\n```\n\nReport DRACH enrichment on the peak set as a sanity check (P-value \u003C 1e-50 expected). NEVER post-hoc filter individual peaks by DRACH.\n\n## Step 7: exomePeak2 Differential (Control vs Treatment)\n\n**Goal:** Identify m6A peaks that change between control and treatment conditions, with per-peak log2FC + FDR, using exomePeak2's integrated peak-calling + differential interface.\n\n**Approach:** Populate `bam_ip` + `bam_input` with the control arm and `bam_treated_ip` + `bam_treated_input` with the treatment arm; populating the treated arms triggers differential mode (there is NO `mode=` argument). Apply effect-size + FDR filters downstream.\n\n```r\nlibrary(exomePeak2)\nlibrary(GenomicFeatures)\nlibrary(BSgenome.Hsapiens.UCSC.hg38)\n\ntxdb \u003C- makeTxDbFromGFF('refs\u002Fannotation.gtf', format='gtf')\n\nctrl_ip     \u003C- c('aligned\u002Fctrl_IP1.bam', 'aligned\u002Fctrl_IP2.bam', 'aligned\u002Fctrl_IP3.bam')\nctrl_input  \u003C- c('aligned\u002Fctrl_Input1.bam', 'aligned\u002Fctrl_Input2.bam', 'aligned\u002Fctrl_Input3.bam')\ntreat_ip    \u003C- c('aligned\u002Ftreat_IP1.bam', 'aligned\u002Ftreat_IP2.bam', 'aligned\u002Ftreat_IP3.bam')\ntreat_input \u003C- c('aligned\u002Ftreat_Input1.bam', 'aligned\u002Ftreat_Input2.bam', 'aligned\u002Ftreat_Input3.bam')\n\ndiff_result \u003C- exomePeak2(\n    bam_ip            = ctrl_ip,\n    bam_input         = ctrl_input,\n    bam_treated_ip    = treat_ip,\n    bam_treated_input = treat_input,\n    txdb              = txdb,\n    bsgenome          = BSgenome.Hsapiens.UCSC.hg38,   # bsgenome=, not genome=\n    paired_end        = TRUE,\n    library_type      = 'unstranded',\n    peak_calling_mode = 'exon',\n    save_dir          = 'exomePeak2_diff_output'       # writes DiffMod.bed \u002F DiffMod.csv; no experiment_name arg\n)\n\ndiff_table \u003C- Results(diff_result)   # SummarizedExomePeak has no as.data.frame method; Results() returns the data.frame\n# differential effect-size column is DiffModLog2FC (not log2FC)\nsig \u003C- diff_table[diff_table$padj \u003C 0.05 & abs(diff_table$DiffModLog2FC) > 0.5, ]\nnrow(sig)\n```\n\nexomePeak2 has NO `mode=` or `experiment_design=` argument. Populating `bam_treated_ip` + `bam_treated_input` triggers differential output. For batch \u002F antibody-lot covariate adjustment, fall through to featureCounts-on-peaks -> DESeq2 (see `epitranscriptomics\u002Fm6a-differential`).\n\n## Step 8: Peak Annotation to Transcript Features\n\n```r\nlibrary(ChIPseeker)\nlibrary(TxDb.Hsapiens.UCSC.hg38.knownGene)\nlibrary(rtracklayer)\n\npeaks \u003C- import('exomePeak2_output\u002FMod.bed')\nanno \u003C- annotatePeak(peaks, TxDb=TxDb.Hsapiens.UCSC.hg38.knownGene, level='transcript')\nplotAnnoBar(anno)\nplotDistToTSS(anno)\n```\n\nFlag peaks within ~50 nt of TSS as m6A-or-m6Am ambiguous (antibody cross-reactivity with PCIF1-deposited cap m6Am).\n\n## Step 9: Guitar Metagene (Biological QC Anchor)\n\n```r\nlibrary(Guitar)\nlibrary(TxDb.Hsapiens.UCSC.hg38.knownGene)\n\nGuitarPlot(\n    txTxdb          = TxDb.Hsapiens.UCSC.hg38.knownGene,\n    stBedFiles      = list('exomePeak2_output\u002FMod.bed'),\n    miscOutFilePrefix = 'figures\u002Fm6a_metagene'\n)\n```\n\nExpected pattern: peak density rises toward and peaks near the stop codon (3'UTR-proximal end of CDS). If absent, suspect IP failure or wrong antibody; do NOT proceed to downstream interpretation.\n\n## Complete Bash Driver\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nSTAR_INDEX=$1\nGTF=$2\nIP_R1=$3\nIP_R2=$4\nINPUT_R1=$5\nINPUT_R2=$6\nOUTPUT_DIR=$7\n\nmkdir -p \"${OUTPUT_DIR}\"\u002F{qc,trimmed,aligned,peaks,figures}\n\nfastp --in1 \"${IP_R1}\" --in2 \"${IP_R2}\" \\\n    --out1 \"${OUTPUT_DIR}\u002Ftrimmed\u002FIP_R1.fq.gz\" --out2 \"${OUTPUT_DIR}\u002Ftrimmed\u002FIP_R2.fq.gz\" \\\n    --json \"${OUTPUT_DIR}\u002Fqc\u002FIP_fastp.json\" --length_required 25 --detect_adapter_for_pe --thread 8\n\nfastp --in1 \"${INPUT_R1}\" --in2 \"${INPUT_R2}\" \\\n    --out1 \"${OUTPUT_DIR}\u002Ftrimmed\u002FInput_R1.fq.gz\" --out2 \"${OUTPUT_DIR}\u002Ftrimmed\u002FInput_R2.fq.gz\" \\\n    --json \"${OUTPUT_DIR}\u002Fqc\u002FInput_fastp.json\" --length_required 25 --detect_adapter_for_pe --thread 8\n\nfor sample in IP Input; do\n    STAR --runMode alignReads --genomeDir \"${STAR_INDEX}\" \\\n        --readFilesIn \"${OUTPUT_DIR}\u002Ftrimmed\u002F${sample}_R1.fq.gz\" \"${OUTPUT_DIR}\u002Ftrimmed\u002F${sample}_R2.fq.gz\" \\\n        --readFilesCommand zcat --outSAMtype BAM SortedByCoordinate \\\n        --outFilterMultimapNmax 20 \\\n        --outFileNamePrefix \"${OUTPUT_DIR}\u002Faligned\u002F${sample}_\" --runThreadN 12\n    samtools index \"${OUTPUT_DIR}\u002Faligned\u002F${sample}_Aligned.sortedByCoord.out.bam\"\ndone\n\nmacs3 callpeak \\\n    --treatment \"${OUTPUT_DIR}\u002Faligned\u002FIP_Aligned.sortedByCoord.out.bam\" \\\n    --control \"${OUTPUT_DIR}\u002Faligned\u002FInput_Aligned.sortedByCoord.out.bam\" \\\n    --format BAMPE --gsize hs --nomodel --extsize 150 --keep-dup all \\\n    --broad --broad-cutoff 0.1 --qvalue 0.05 \\\n    --outdir \"${OUTPUT_DIR}\u002Fpeaks\" --name m6a\n```\n\nThe full pipeline (incl. exomePeak2 peak calling, DRACH check, ChIPseeker annotation, Guitar metagene) is best orchestrated in Snakemake or Nextflow with the per-skill recipes from the four `epitranscriptomics\u002F` skills.\n\n## QC Checkpoints\n\n| Checkpoint | Expected | Action if Failed |\n|------------|----------|------------------|\n| Properly-paired rate (samtools flagstat) | >=85% | Check trimming and adapter contamination |\n| Replicate Spearman within condition (10 kb bins) | >=0.85 IP-IP | Inspect divergent replicate; consider exclusion |\n| plotFingerprint IP-vs-input JS distance | >=0.5 | Suspect failed IP if lower |\n| Saturation plateau depth | ~30-60M unique reads | Sequence deeper if not plateaued |\n| DRACH motif enrichment (HOMER, peak set) | P-value \u003C 1e-50 | Suspect IP failure or wrong antibody |\n| Stop-codon enrichment in Guitar metagene | Clear 3'UTR-proximal peak | Suspect IP failure, wrong antibody, or non-m6A modification |\n| 5'UTR peaks fraction | Note ambiguity zone (~50 nt of TSS) | Flag as m6A-or-m6Am ambiguous; PCIF1 cross-reactivity |\n\n## Output Files\n\n| File | Description |\n|------|-------------|\n| `exomePeak2_output\u002FMod.bed` | exomePeak2 peak BED12 |\n| `exomePeak2_diff_output\u002FDiffMod.bed` | Differential peaks with log2FC + FDR |\n| `motif_output\u002F` | HOMER DRACH motif enrichment report |\n| `figures\u002Fm6a_metagene.pdf` | Guitar transcript-feature metagene (stop-codon QC anchor) |\n| `qc\u002Freplicate_correlation.pdf` | deepTools Spearman heatmap |\n| `qc\u002Ffingerprint.pdf` | deepTools Lorenz IP-enrichment plot |\n| `qc\u002FIP_rep*_lc_extrap.txt` | PreSeq saturation curves |\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Strongest m6A peaks (high-expression transcripts) vanish | Deduplicated non-UMI MeRIP, or MACS3 default `--keep-dup 1` | Keep all reads (`--keep-dup all`); never dedup non-UMI MeRIP |\n| exomePeak2 runs but gives no differential output | Expected a `mode=`\u002F`experiment_design=` argument | Populate `bam_treated_ip` + `bam_treated_input` to trigger differential |\n| Real non-canonical m6A sites lost | Filtered individual peaks by DRACH presence | DRACH is a peak-SET sanity check (E\u003C1e-50), never a per-peak filter |\n| Peak counts \"differ\" between conditions but it's depth | Compared raw peak numbers at unequal depth | Rarefy BAMs to a common unique-read depth before cross-condition counts |\n| No stop-codon enrichment in the metagene | IP failure, wrong antibody, or non-m6A signal | STOP; do not interpret downstream (Guitar go\u002Fno-go) |\n| 5'UTR peaks over-interpreted as m6A | Antibody cross-reacts with cap-adjacent m6Am (PCIF1) | Flag peaks within ~50 nt of TSS as m6A-or-m6Am ambiguous |\n\n## References\n\n- Dominissini D, Moshitch-Moshkovitz S, Schwartz S, et al (2012) Topology of the human and mouse m6A RNA methylomes revealed by m6A-seq. *Nature* 485:201-206. DOI 10.1038\u002Fnature11112. (MeRIP\u002Fm6A-seq; stop-codon enrichment.)\n- Meyer KD, Saletore Y, Zumbo P, et al (2012) Comprehensive analysis of mRNA methylation reveals enrichment in 3' UTRs and near stop codons. *Cell* 149:1635-1646. DOI 10.1016\u002Fj.cell.2012.05.003.\n- Meng J, Lu Z, Liu H, et al (2014) A protocol for RNA methylation differential analysis with MeRIP-Seq data and the exomePeak R\u002FBioconductor package. *Methods* 69:274-281. DOI 10.1016\u002Fj.ymeth.2014.06.008. (exome-based peak calling.)\n- Cui X, Wei Z, Zhang L, et al (2016) Guitar: an R\u002FBioconductor package for gene annotation guided transcriptomic analysis of RNA-related genomic features. *BioMed Research International* 2016:8367534. DOI 10.1155\u002F2016\u002F8367534. (transcript-feature metagene.)\n\n## Related Skills\n\n- epitranscriptomics\u002Fmerip-preprocessing - Per-step preprocessing (trim, align, QC, saturation, IP-over-Input bigWig)\n- epitranscriptomics\u002Fm6a-peak-calling - exomePeak2 \u002F MeTPeak \u002F MACS3 deep treatment, DRACH sanity check, m6A-vs-m6Am 5'UTR flag\n- epitranscriptomics\u002Fm6a-differential - Differential methods (exomePeak2, QNB, RADAR), batch \u002F lot covariate handling, stoichiometry-vs-expression confound\n- epitranscriptomics\u002Fmodification-visualization - Guitar metagene, peak-centred heatmaps, pyGenomeTracks browser figures\n- epitranscriptomics\u002Fm6anet-analysis - ONT direct-RNA alternative for orthogonal stoichiometry validation\n- chip-seq\u002Fpeak-calling - Sibling IP-vs-input peak-calling framework\n- chip-seq\u002Fchipseq-qc - IP enrichment QC concepts that transfer to MeRIP\n- read-alignment\u002Fstar-alignment - General STAR splice-aware alignment\n- workflow-management\u002Fsnakemake-workflows - Snakemake orchestration patterns\n- workflow-management\u002Fnextflow-pipelines - Nextflow orchestration patterns\n- workflows\u002Frnaseq-to-de - General RNA-seq -> DE pipeline patterns\n","## Version Compatibility\n\nReference examples tested with: STAR 2.7.11+, samtools 1.19+, fastp 0.23+, deepTools 3.5+, PreSeq 3.2+, exomePeak2 1.14.x (Bioconductor 3.18 ONLY -- deprecated in Bioc 3.19, removed in 3.20; on current Bioc install from the Bioc 3.18 archive or use a successor), MACS3 3.0+, ChIPseeker 1.38+, Guitar 2.18+, BSgenome.Hsapiens.UCSC.hg38 1.4+, TxDb.Hsapiens.UCSC.hg38.knownGene 3.18+, HOMER 4.11+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\nexomePeak2 has NO `mode=` or `experiment_design=` argument; differential is triggered by populating `bam_treated_ip` + `bam_treated_input`. MeTPeak defaults are `WINDOW_WIDTH=50, SLIDING_STEP=50, FRAGMENT_LENGTH=100`. MACS3 default `--keep-dup` is 1 and MUST be overridden to `all` for non-UMI MeRIP. Guitar `txTxdb=` is the modern argument name (older releases used `txdb=`).\n\n# MeRIP-seq End-to-End Pipeline\n\n**\"Analyze my MeRIP-seq data from FASTQ to differential m6A peaks\"** -> Orchestrate read alignment (STAR splice-aware to GENOME), IP-enrichment QC (deepTools plotFingerprint, replicate Spearman, PreSeq saturation), m6A peak calling (exomePeak2 transcript-aware default, MACS3 broad as cross-check), DRACH motif sanity check (HOMER), exomePeak2 differential via the four-BAM-vector interface, ChIPseeker feature annotation, and Guitar transcript-feature metagene confirming canonical stop-codon enrichment. Defer per-skill deep treatment to `epitranscriptomics\u002Fmerip-preprocessing`, `epitranscriptomics\u002Fm6a-peak-calling`, `epitranscriptomics\u002Fm6a-differential`, and `epitranscriptomics\u002Fmodification-visualization`.\n\nThis is a workflow skill: it owns the chaining decisions and hand-offs, not the internals of any one step.\n\n## The governing principle\n\nMeRIP-seq inverts several DNA-pipeline reflexes; the trustworthy callset is decided at these seams.\n\n1. **Do NOT deduplicate non-UMI MeRIP — duplicates are signal, not artifact.** A highly methylated, highly expressed transcript legitimately produces many identical fragments; removing them (or MACS3 default `--keep-dup 1`) erases the strongest m6A peaks. Keep all reads (`--keep-dup all`); only dedup when a UMI is present.\n2. **Enrichment is IP-vs-Input, and differential is a FOUR-BAM comparison.** Every condition needs its own IP AND Input. exomePeak2 has no `mode=`\u002F`experiment_design=` argument; differential is triggered simply by populating `bam_treated_ip` + `bam_treated_input` alongside the control `bam_ip` + `bam_input`.\n3. **DRACH is a peak-SET sanity check, never a per-peak filter.** Confirm the motif is enriched across the whole peak set (P-value \u003C 1e-50); post-hoc dropping individual peaks that lack a DRACH match discards real non-canonical sites and biases the callset.\n4. **The Guitar stop-codon metagene is the biological go\u002Fno-go.** m6A concentrates near the stop codon \u002F 3'UTR-proximal CDS end; if that enrichment is absent, the IP failed or the antibody is wrong — STOP, do not interpret downstream. And before comparing peak COUNTS across conditions, rarefy BAMs to a common unique-read depth (peak number scales with depth).\n\n## Pipeline Overview\n\n```\nFASTQ -> fastp trim -> STAR genome align -> samtools sort\u002Findex -> deepTools QC + PreSeq saturation\n       -> exomePeak2 peak calling (+ MeTPeak \u002F MACS3 cross-check)\n       -> HOMER DRACH sanity check\n       -> exomePeak2 differential (bam_ip + bam_treated_ip)\n       -> ChIPseeker feature annotation\n       -> Guitar metagene (stop-codon QC anchor) + pyGenomeTracks browser figures\n```\n\n## Step 1: Adapter Trimming\n\n```bash\nfastp \\\n    --in1 raw\u002FIP_R1.fastq.gz --in2 raw\u002FIP_R2.fastq.gz \\\n    --out1 trimmed\u002FIP_R1.fq.gz --out2 trimmed\u002FIP_R2.fq.gz \\\n    --json qc\u002FIP_fastp.json --html qc\u002FIP_fastp.html \\\n    --length_required 25 --detect_adapter_for_pe --thread 8\n\nfastp \\\n    --in1 raw\u002FInput_R1.fastq.gz --in2 raw\u002FInput_R2.fastq.gz \\\n    --out1 trimmed\u002FInput_R1.fq.gz --out2 trimmed\u002FInput_R2.fq.gz \\\n    --json qc\u002FInput_fastp.json --html qc\u002FInput_fastp.html \\\n    --length_required 25 --detect_adapter_for_pe --thread 8\n```\n\nStandard non-UMI MeRIP: do NOT pass `--umi`. See `epitranscriptomics\u002Fmerip-preprocessing` for the do-NOT-dedup rationale.\n\n## Step 2: STAR Splice-Aware Genome Alignment\n\n```bash\nSTAR --runMode alignReads \\\n    --genomeDir refs\u002Fstar_index \\\n    --readFilesIn trimmed\u002FIP_R1.fq.gz trimmed\u002FIP_R2.fq.gz \\\n    --readFilesCommand zcat \\\n    --outSAMtype BAM SortedByCoordinate \\\n    --outFilterMultimapNmax 20 \\\n    --outSAMattributes NH HI AS nM NM MD \\\n    --outFileNamePrefix aligned\u002FIP_rep1_ \\\n    --runThreadN 12\n\nsamtools index aligned\u002FIP_rep1_Aligned.sortedByCoord.out.bam\nln -sf IP_rep1_Aligned.sortedByCoord.out.bam aligned\u002FIP_rep1.bam     # downstream QC\u002Fpeak steps consume the short ${sample}_rep${n}.bam name\nln -sf IP_rep1_Aligned.sortedByCoord.out.bam.bai aligned\u002FIP_rep1.bam.bai\n```\n\nRepeat for each IP and Input replicate. Align to GENOME (not transcriptome) for downstream MeRIP peak calling. Do NOT deduplicate (no UMI in standard MeRIP).\n\n## Step 3: IP-Enrichment + Replicate-Concordance QC\n\n```bash\nmultiBamSummary bins \\\n    --bamfiles aligned\u002FIP_rep[0-9].bam aligned\u002FInput_rep[0-9].bam \\\n    --binSize 10000 --numberOfProcessors 8 \\\n    -o qc\u002Fcov.npz\n\nplotCorrelation --corData qc\u002Fcov.npz --corMethod spearman --skipZeros \\\n    --whatToPlot heatmap --colorMap RdYlBu_r --plotNumbers \\\n    -o qc\u002Freplicate_correlation.pdf\n\nplotFingerprint \\\n    --bamfiles aligned\u002FIP_rep[0-9].bam aligned\u002FInput_rep[0-9].bam \\\n    --skipZeros --numberOfProcessors 8 \\\n    --JSDsample aligned\u002FInput_rep1.bam \\\n    --outQualityMetrics qc\u002Ffingerprint_metrics.tab \\\n    -o qc\u002Ffingerprint.pdf\n\npreseq lc_extrap -B -o qc\u002FIP_rep1_lc_extrap.txt aligned\u002FIP_rep1.bam\n```\n\nFor peak-count comparison across conditions, rarefy BAMs to a common unique-read depth informed by the saturation curve before calling peaks.\n\n## Step 4: exomePeak2 Peak Calling (Per-Condition)\n\n**Goal:** Produce a transcript-aware set of m6A peaks with FDR and IP\u002Finput fold-change from paired IP\u002FInput genome BAM files, suitable as input to differential analysis, motif scanning, or downstream visualisation.\n\n**Approach:** Build a TxDb from the matched GTF; pass paired IP\u002FInput BAM vectors to `exomePeak2()` with `txdb` and `genome` (BSgenome) for GC correction; export BED12 + RDS to `save_dir\u002F`.\n\n```r\nlibrary(exomePeak2)\nlibrary(GenomicFeatures)\nlibrary(BSgenome.Hsapiens.UCSC.hg38)\n\ntxdb \u003C- makeTxDbFromGFF('refs\u002Fannotation.gtf', format='gtf')\n\nresult \u003C- exomePeak2(\n    bam_ip       = c('aligned\u002FIP_rep1.bam', 'aligned\u002FIP_rep2.bam', 'aligned\u002FIP_rep3.bam'),\n    bam_input    = c('aligned\u002FInput_rep1.bam', 'aligned\u002FInput_rep2.bam', 'aligned\u002FInput_rep3.bam'),\n    txdb         = txdb,\n    bsgenome     = BSgenome.Hsapiens.UCSC.hg38,   # bsgenome= (a BSgenome object) for GC correction; genome= would be the UCSC string 'hg38'\n    paired_end   = TRUE,\n    library_type = 'unstranded',\n    save_dir     = 'exomePeak2_output'            # no experiment_name arg; output goes straight under save_dir\u002F\n)\n\npeaks \u003C- result\nnrow(peaks)   # SummarizedExomePeak has no length method (would return 1); nrow = peak count\n```\n\n`exomePeak2()` writes fixed filenames under `save_dir\u002F`: `Mod.bed` (BED12 peaks), `Mod.csv` (per-peak fold-change \u002F FDR), `Mod.rds`.\n\n## Step 5: MACS3 Broad-Peak Cross-Check (Optional)\n\n```bash\nmacs3 callpeak \\\n    --treatment aligned\u002FIP_rep[0-9].bam \\\n    --control aligned\u002FInput_rep[0-9].bam \\\n    --format BAMPE --gsize hs \\\n    --nomodel --extsize 150 \\\n    --keep-dup all \\\n    --broad --broad-cutoff 0.1 --qvalue 0.05 \\\n    --outdir macs3_output --name m6a_run1\n```\n\n`--keep-dup all` is non-negotiable for non-UMI MeRIP (default `--keep-dup 1` destroys signal at high-coverage transcripts).\n\n## Step 6: DRACH Motif Sanity Check\n\n```bash\nfindMotifsGenome.pl \\\n    exomePeak2_output\u002FMod.bed \\\n    hg38 motif_output \\\n    -rna -size 100 -len 5,6 -p 8\n```\n\nReport DRACH enrichment on the peak set as a sanity check (P-value \u003C 1e-50 expected). NEVER post-hoc filter individual peaks by DRACH.\n\n## Step 7: exomePeak2 Differential (Control vs Treatment)\n\n**Goal:** Identify m6A peaks that change between control and treatment conditions, with per-peak log2FC + FDR, using exomePeak2's integrated peak-calling + differential interface.\n\n**Approach:** Populate `bam_ip` + `bam_input` with the control arm and `bam_treated_ip` + `bam_treated_input` with the treatment arm; populating the treated arms triggers differential mode (there is NO `mode=` argument). Apply effect-size + FDR filters downstream.\n\n```r\nlibrary(exomePeak2)\nlibrary(GenomicFeatures)\nlibrary(BSgenome.Hsapiens.UCSC.hg38)\n\ntxdb \u003C- makeTxDbFromGFF('refs\u002Fannotation.gtf', format='gtf')\n\nctrl_ip     \u003C- c('aligned\u002Fctrl_IP1.bam', 'aligned\u002Fctrl_IP2.bam', 'aligned\u002Fctrl_IP3.bam')\nctrl_input  \u003C- c('aligned\u002Fctrl_Input1.bam', 'aligned\u002Fctrl_Input2.bam', 'aligned\u002Fctrl_Input3.bam')\ntreat_ip    \u003C- c('aligned\u002Ftreat_IP1.bam', 'aligned\u002Ftreat_IP2.bam', 'aligned\u002Ftreat_IP3.bam')\ntreat_input \u003C- c('aligned\u002Ftreat_Input1.bam', 'aligned\u002Ftreat_Input2.bam', 'aligned\u002Ftreat_Input3.bam')\n\ndiff_result \u003C- exomePeak2(\n    bam_ip            = ctrl_ip,\n    bam_input         = ctrl_input,\n    bam_treated_ip    = treat_ip,\n    bam_treated_input = treat_input,\n    txdb              = txdb,\n    bsgenome          = BSgenome.Hsapiens.UCSC.hg38,   # bsgenome=, not genome=\n    paired_end        = TRUE,\n    library_type      = 'unstranded',\n    peak_calling_mode = 'exon',\n    save_dir          = 'exomePeak2_diff_output'       # writes DiffMod.bed \u002F DiffMod.csv; no experiment_name arg\n)\n\ndiff_table \u003C- Results(diff_result)   # SummarizedExomePeak has no as.data.frame method; Results() returns the data.frame\n# differential effect-size column is DiffModLog2FC (not log2FC)\nsig \u003C- diff_table[diff_table$padj \u003C 0.05 & abs(diff_table$DiffModLog2FC) > 0.5, ]\nnrow(sig)\n```\n\nexomePeak2 has NO `mode=` or `experiment_design=` argument. Populating `bam_treated_ip` + `bam_treated_input` triggers differential output. For batch \u002F antibody-lot covariate adjustment, fall through to featureCounts-on-peaks -> DESeq2 (see `epitranscriptomics\u002Fm6a-differential`).\n\n## Step 8: Peak Annotation to Transcript Features\n\n```r\nlibrary(ChIPseeker)\nlibrary(TxDb.Hsapiens.UCSC.hg38.knownGene)\nlibrary(rtracklayer)\n\npeaks \u003C- import('exomePeak2_output\u002FMod.bed')\nanno \u003C- annotatePeak(peaks, TxDb=TxDb.Hsapiens.UCSC.hg38.knownGene, level='transcript')\nplotAnnoBar(anno)\nplotDistToTSS(anno)\n```\n\nFlag peaks within ~50 nt of TSS as m6A-or-m6Am ambiguous (antibody cross-reactivity with PCIF1-deposited cap m6Am).\n\n## Step 9: Guitar Metagene (Biological QC Anchor)\n\n```r\nlibrary(Guitar)\nlibrary(TxDb.Hsapiens.UCSC.hg38.knownGene)\n\nGuitarPlot(\n    txTxdb          = TxDb.Hsapiens.UCSC.hg38.knownGene,\n    stBedFiles      = list('exomePeak2_output\u002FMod.bed'),\n    miscOutFilePrefix = 'figures\u002Fm6a_metagene'\n)\n```\n\nExpected pattern: peak density rises toward and peaks near the stop codon (3'UTR-proximal end of CDS). If absent, suspect IP failure or wrong antibody; do NOT proceed to downstream interpretation.\n\n## Complete Bash Driver\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nSTAR_INDEX=$1\nGTF=$2\nIP_R1=$3\nIP_R2=$4\nINPUT_R1=$5\nINPUT_R2=$6\nOUTPUT_DIR=$7\n\nmkdir -p \"${OUTPUT_DIR}\"\u002F{qc,trimmed,aligned,peaks,figures}\n\nfastp --in1 \"${IP_R1}\" --in2 \"${IP_R2}\" \\\n    --out1 \"${OUTPUT_DIR}\u002Ftrimmed\u002FIP_R1.fq.gz\" --out2 \"${OUTPUT_DIR}\u002Ftrimmed\u002FIP_R2.fq.gz\" \\\n    --json \"${OUTPUT_DIR}\u002Fqc\u002FIP_fastp.json\" --length_required 25 --detect_adapter_for_pe --thread 8\n\nfastp --in1 \"${INPUT_R1}\" --in2 \"${INPUT_R2}\" \\\n    --out1 \"${OUTPUT_DIR}\u002Ftrimmed\u002FInput_R1.fq.gz\" --out2 \"${OUTPUT_DIR}\u002Ftrimmed\u002FInput_R2.fq.gz\" \\\n    --json \"${OUTPUT_DIR}\u002Fqc\u002FInput_fastp.json\" --length_required 25 --detect_adapter_for_pe --thread 8\n\nfor sample in IP Input; do\n    STAR --runMode alignReads --genomeDir \"${STAR_INDEX}\" \\\n        --readFilesIn \"${OUTPUT_DIR}\u002Ftrimmed\u002F${sample}_R1.fq.gz\" \"${OUTPUT_DIR}\u002Ftrimmed\u002F${sample}_R2.fq.gz\" \\\n        --readFilesCommand zcat --outSAMtype BAM SortedByCoordinate \\\n        --outFilterMultimapNmax 20 \\\n        --outFileNamePrefix \"${OUTPUT_DIR}\u002Faligned\u002F${sample}_\" --runThreadN 12\n    samtools index \"${OUTPUT_DIR}\u002Faligned\u002F${sample}_Aligned.sortedByCoord.out.bam\"\ndone\n\nmacs3 callpeak \\\n    --treatment \"${OUTPUT_DIR}\u002Faligned\u002FIP_Aligned.sortedByCoord.out.bam\" \\\n    --control \"${OUTPUT_DIR}\u002Faligned\u002FInput_Aligned.sortedByCoord.out.bam\" \\\n    --format BAMPE --gsize hs --nomodel --extsize 150 --keep-dup all \\\n    --broad --broad-cutoff 0.1 --qvalue 0.05 \\\n    --outdir \"${OUTPUT_DIR}\u002Fpeaks\" --name m6a\n```\n\nThe full pipeline (incl. exomePeak2 peak calling, DRACH check, ChIPseeker annotation, Guitar metagene) is best orchestrated in Snakemake or Nextflow with the per-skill recipes from the four `epitranscriptomics\u002F` skills.\n\n## QC Checkpoints\n\n| Checkpoint | Expected | Action if Failed |\n|------------|----------|------------------|\n| Properly-paired rate (samtools flagstat) | >=85% | Check trimming and adapter contamination |\n| Replicate Spearman within condition (10 kb bins) | >=0.85 IP-IP | Inspect divergent replicate; consider exclusion |\n| plotFingerprint IP-vs-input JS distance | >=0.5 | Suspect failed IP if lower |\n| Saturation plateau depth | ~30-60M unique reads | Sequence deeper if not plateaued |\n| DRACH motif enrichment (HOMER, peak set) | P-value \u003C 1e-50 | Suspect IP failure or wrong antibody |\n| Stop-codon enrichment in Guitar metagene | Clear 3'UTR-proximal peak | Suspect IP failure, wrong antibody, or non-m6A modification |\n| 5'UTR peaks fraction | Note ambiguity zone (~50 nt of TSS) | Flag as m6A-or-m6Am ambiguous; PCIF1 cross-reactivity |\n\n## Output Files\n\n| File | Description |\n|------|-------------|\n| `exomePeak2_output\u002FMod.bed` | exomePeak2 peak BED12 |\n| `exomePeak2_diff_output\u002FDiffMod.bed` | Differential peaks with log2FC + FDR |\n| `motif_output\u002F` | HOMER DRACH motif enrichment report |\n| `figures\u002Fm6a_metagene.pdf` | Guitar transcript-feature metagene (stop-codon QC anchor) |\n| `qc\u002Freplicate_correlation.pdf` | deepTools Spearman heatmap |\n| `qc\u002Ffingerprint.pdf` | deepTools Lorenz IP-enrichment plot |\n| `qc\u002FIP_rep*_lc_extrap.txt` | PreSeq saturation curves |\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Strongest m6A peaks (high-expression transcripts) vanish | Deduplicated non-UMI MeRIP, or MACS3 default `--keep-dup 1` | Keep all reads (`--keep-dup all`); never dedup non-UMI MeRIP |\n| exomePeak2 runs but gives no differential output | Expected a `mode=`\u002F`experiment_design=` argument | Populate `bam_treated_ip` + `bam_treated_input` to trigger differential |\n| Real non-canonical m6A sites lost | Filtered individual peaks by DRACH presence | DRACH is a peak-SET sanity check (E\u003C1e-50), never a per-peak filter |\n| Peak counts \"differ\" between conditions but it's depth | Compared raw peak numbers at unequal depth | Rarefy BAMs to a common unique-read depth before cross-condition counts |\n| No stop-codon enrichment in the metagene | IP failure, wrong antibody, or non-m6A signal | STOP; do not interpret downstream (Guitar go\u002Fno-go) |\n| 5'UTR peaks over-interpreted as m6A | Antibody cross-reacts with cap-adjacent m6Am (PCIF1) | Flag peaks within ~50 nt of TSS as m6A-or-m6Am ambiguous |\n\n## References\n\n- Dominissini D, Moshitch-Moshkovitz S, Schwartz S, et al (2012) Topology of the human and mouse m6A RNA methylomes revealed by m6A-seq. *Nature* 485:201-206. DOI 10.1038\u002Fnature11112. (MeRIP\u002Fm6A-seq; stop-codon enrichment.)\n- Meyer KD, Saletore Y, Zumbo P, et al (2012) Comprehensive analysis of mRNA methylation reveals enrichment in 3' UTRs and near stop codons. *Cell* 149:1635-1646. DOI 10.1016\u002Fj.cell.2012.05.003.\n- Meng J, Lu Z, Liu H, et al (2014) A protocol for RNA methylation differential analysis with MeRIP-Seq data and the exomePeak R\u002FBioconductor package. *Methods* 69:274-281. DOI 10.1016\u002Fj.ymeth.2014.06.008. (exome-based peak calling.)\n- Cui X, Wei Z, Zhang L, et al (2016) Guitar: an R\u002FBioconductor package for gene annotation guided transcriptomic analysis of RNA-related genomic features. *BioMed Research International* 2016:8367534. DOI 10.1155\u002F2016\u002F8367534. (transcript-feature metagene.)\n\n## Related Skills\n\n- epitranscriptomics\u002Fmerip-preprocessing - Per-step preprocessing (trim, align, QC, saturation, IP-over-Input bigWig)\n- epitranscriptomics\u002Fm6a-peak-calling - exomePeak2 \u002F MeTPeak \u002F MACS3 deep treatment, DRACH sanity check, m6A-vs-m6Am 5'UTR flag\n- epitranscriptomics\u002Fm6a-differential - Differential methods (exomePeak2, QNB, RADAR), batch \u002F lot covariate handling, stoichiometry-vs-expression confound\n- epitranscriptomics\u002Fmodification-visualization - Guitar metagene, peak-centred heatmaps, pyGenomeTracks browser figures\n- epitranscriptomics\u002Fm6anet-analysis - ONT direct-RNA alternative for orthogonal stoichiometry validation\n- chip-seq\u002Fpeak-calling - Sibling IP-vs-input peak-calling framework\n- chip-seq\u002Fchipseq-qc - IP enrichment QC concepts that transfer to MeRIP\n- read-alignment\u002Fstar-alignment - General STAR splice-aware alignment\n- workflow-management\u002Fsnakemake-workflows - Snakemake orchestration patterns\n- workflow-management\u002Fnextflow-pipelines - Nextflow orchestration patterns\n- workflows\u002Frnaseq-to-de - General RNA-seq -> DE pipeline patterns\n",{"name":5,"source":24,"license":15,"workflow":25,"tool_type":26,"depends_on":27,"description":7,"imported_at":34,"source_path":35,"primary_tool":36,"qc_checkpoints":37,"source_repository":46},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills",true,"mixed",[28,29,30,31,32,33],"read-qc\u002Ffastp-workflow","read-alignment\u002Fstar-alignment","epitranscriptomics\u002Fmerip-preprocessing","epitranscriptomics\u002Fm6a-peak-calling","epitranscriptomics\u002Fm6a-differential","epitranscriptomics\u002Fmodification-visualization","2026-09-20","workflows\u002Fmerip-pipeline\u002FSKILL.md","exomePeak2",[38,40,42,44],{"after_align":39},"Properly-paired >=85%; NO deduplication for non-UMI MeRIP",{"after_qc":41},"Replicate Spearman >=0.85 IP-IP (10kb bins); plotFingerprint IP-vs-input JS >=0.5",{"after_peaks":43},"DRACH enrichment P-value \u003C1e-50 on the peak SET (sanity check, never a per-peak filter)",{"after_metagene":45},"Guitar metagene shows the stop-codon\u002F3'UTR-proximal peak; else STOP (IP failure)","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-workflows-merip-pipeline","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":54,"prompt":64,"zipAvailable":25},[55,58,61],{"tool":56,"command":57},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-workflows-merip-pipeline",{"tool":59,"command":60},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-workflows-merip-pipeline",{"tool":62,"command":63},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-workflows-merip-pipeline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflows-merip-pipeline\u002FSKILL.md",[66,72],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"examples\u002Fmerip_full_pipeline.sh","SCRIPT","脚本",2906,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflows-merip-pipeline\u002Fexamples\u002Fmerip_full_pipeline.sh",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"usage-guide.md","REFERENCE","参考文档",6100,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflows-merip-pipeline\u002Fusage-guide.md",[79,87,94,101,108,115],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"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":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":86},"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":86},"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":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":86},"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":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":86},"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":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":86},"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",[],[]]