[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EC52YSR40W3TRYC66ZTYEW":3,"skill-same:01M7EC52YSR40W3TRYC66ZTYEW":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},"01M7EC52YSR40W3TRYC66ZTYEW","bio-clip-seq-clip-qc",null,"Comprehensive quality control for CLIP-seq libraries (eCLIP, iCLIP, iCLIP2, PAR-CLIP) covering library complexity (preseq), FRiP, IDR replicate reproducibility, read-distribution metagene, SMInput vs IgG control rationale, rRNA \u002F snoRNA contamination, fragment-length distribution, and ENCODE-compliance thresholds. Use when assessing whether a CLIP library passed, deciding lenient vs stringent peak thresholds, comparing replicates with IDR rescue and self-consistency ratios, or distinguishing failed IP from over-amplified library.","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-clip-seq-clip-qc\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-clip-seq-clip-qc\ndescription: Comprehensive quality control for CLIP-seq libraries (eCLIP, iCLIP, iCLIP2, PAR-CLIP) covering library complexity (preseq), FRiP, IDR replicate reproducibility, read-distribution metagene, SMInput vs IgG control rationale, rRNA \u002F snoRNA contamination, fragment-length distribution, and ENCODE-compliance thresholds. Use when assessing whether a CLIP library passed, deciding lenient vs stringent peak thresholds, comparing replicates with IDR rescue and self-consistency ratios, or distinguishing failed IP from over-amplified library.\ntool_type: mixed\nprimary_tool: preseq\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"clip-seq\u002Fclip-qc\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: preseq 3.2+, picard 3.1+, samtools 1.19+, bedtools 2.31+, deeptools 3.5+, idr 2.0.4+, MultiQC 1.21+, RSeQC 5.0+, pysam 0.22+, fastp 0.23+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws unexpected errors, introspect the installed binary and adapt the example to match the actual CLI rather than retrying.\n\n# CLIP-seq Quality Control\n\n**\"Did my CLIP library pass?\"** -> Assess preprocessing retention, alignment rate, library complexity, replicate reproducibility (IDR), fraction reads in peaks (FRiP), read-distribution metagene, rRNA\u002FsnoRNA contamination, fragment-length distribution, and SMInput vs IP enrichment. ENCODE eCLIP compliance is the canonical bar: >= 1M unique fragments per replicate, IDR rescue and self-consistency ratios both \u003C 2, FRiP >= 0.005 (narrow-binding), library complexity rising linearly with depth on preseq lc_extrap. A library can fail at any of these stages, and the failure mode determines whether the data is salvageable.\n\n- CLI (library complexity, primary QC): `preseq lc_extrap -B -P aligned.bam -o complexity.txt`\n- CLI (FRiP after peak calling): `bedtools intersect -c -s -a peaks.bed -b dedup.bam | awk '{s+=$NF} END{print s}'` then divide by total reads\n- CLI (IDR, ENCODE convention): `idr --samples rep1.sorted.bed rep2.sorted.bed --input-file-type bed --rank 5 --output-file idr.out --idr-threshold 0.05 --plot`\n- CLI (read distribution \u002F metagene): `RSeQC read_distribution.py -i dedup.bam -r gencode.v38.bed` + `geneBody_coverage.py -i dedup.bam -r housekeeping.bed -o gb`\n- CLI (rRNA contamination check): `samtools idxstats dedup.bam | awk '$1 ~ \u002FrRNA|45S|18S|28S\u002F { sum+=$3 } END {print sum}'`\n- CLI (consolidated report): `multiqc \u003Crun_dir>` aggregates FastQC + cutadapt + STAR + umi_tools + preseq + samtools stats\n\nThe ENCODE eCLIP standards (encodeproject.org\u002Feclip) define: >= 2 biological replicates with >= 1M unique fragments each (or saturated peak detection); IDR rescue and self-consistency ratios both \u003C 2; narrow-binding RBPs FRiP >= 0.005. CLIP libraries should have 40-70% PCR duplication BY DESIGN - the IP enriches a small molecule pool, so high pre-dedup duplication is normal; low duplication suggests failed IP.\n\n## QC Stage Hierarchy\n\nCLIP QC progresses through five gates; failure at an earlier gate makes later gates meaningless.\n\n| Gate | Metric | Tool | ENCODE threshold | Failure interpretation |\n|------|--------|------|------------------|------------------------|\n| 1. Preprocessing retention | % reads retained after UMI + adapter trim | cutadapt log | >= 70% | Adapter pattern wrong; degraded RNA |\n| 2. Alignment rate | % reads aligned to genome (unique) | STAR Log.final.out | >= 60% for eCLIP, 70% for iCLIP\u002FPAR-CLIP | Wrong genome; rRNA pre-map missing |\n| 3. Library complexity | Predicted unique fragments at sequenced depth | preseq lc_extrap | >= 1M unique | Over-amplified or under-input library |\n| 4. IP enrichment | log2(IP\u002FSMInput) at expected sites; FRiP | bedtools + idr | FRiP >= 0.005; log2 >= 3 at top peaks | Failed antibody \u002F antibody not IP-grade |\n| 5. Reproducibility | IDR rescue + self-consistency ratios | idr | both \u003C 2 | Biological variation too high; or low complexity |\n\nA library failing at Gate 3 (complexity) cannot be rescued analytically; gates 4-5 fail downstream of complexity by construction.\n\n## Library Complexity with preseq\n\n**Goal:** Determine whether the CLIP library captured enough independent molecules to support genome-wide peak calling (ENCODE: >= 1M unique fragments per replicate).\n\n**Approach:** Run `preseq lc_extrap` on the PRE-dedup BAM (preseq counts PCR duplicates to extrapolate); also compute picard ESTIMATED_LIBRARY_SIZE at sequenced depth. Flag any library predicted to plateau below 3M unique fragments at infinite depth.\n\n```bash\n# After alignment, BEFORE UMI dedup (preseq counts PCR duplicates)\npreseq lc_extrap \\\n    -B -P \\\n    -o sample_complexity.txt \\\n    sample_aligned.bam\n\n# Output columns:\n# TOTAL_READS  EXPECTED_DISTINCT  LOWER_0.95CI  UPPER_0.95CI\n# At 100M reads, EXPECTED_DISTINCT:\n#   >= 10M  = excellent complexity\n#   3-10M   = acceptable; restrict to high-expression transcripts\n#   \u003C 3M    = library failed; cannot rescue analytically\n\n# picard direct estimate at current depth\npicard EstimateLibraryComplexity \\\n    I=sample_aligned.bam \\\n    O=picard_complexity.txt\n# ESTIMATED_LIBRARY_SIZE > 5M = healthy CLIP library\n```\n\nA linear plateau on preseq's curve at low depth indicates over-amplification; a curve still climbing at sequenced depth means more sequencing would yield more unique fragments.\n\n## FRiP (Fraction Reads in Peaks)\n\nFRiP measures how much of the IP signal falls into the called peak set. ENCODE eCLIP narrow-binding RBP minimum: FRiP >= 0.005. Atypical-binding RBPs (rare-transcript binders like TROVE2 on Y RNAs) are exempt.\n\n```bash\n# Reads in peaks (use stringent peaks: log2 FC >= 3, -log10 p >= 3)\nreads_in_peaks=$(bedtools intersect -c -s -a peaks.stringent.bed -b dedup.bam | awk '{s+=$NF} END {print s}')\ntotal_reads=$(samtools view -c -F 4 dedup.bam)\nfrip=$(echo \"scale=4; $reads_in_peaks \u002F $total_reads\" | bc)\necho \"FRiP: $frip\"\n\n# Per-region FRiP breakdown\nfor region in three_utr exon intron; do\n    rip=$(bedtools intersect -c -s -a peaks_${region}.bed -b dedup.bam | awk '{s+=$NF} END {print s}')\n    echo \"${region}: $(echo \"scale=4; $rip \u002F $total_reads\" | bc)\"\ndone\n```\n\n| RBP class | Expected FRiP (ENCODE eCLIP) |\n|-----------|------------------------------|\n| Splicing factors (PTBP1, U2AF2) | 0.01 - 0.10 |\n| 3' UTR mRNA stability (HuR, PUM2) | 0.02 - 0.20 |\n| Translation factors (EIF3J) | 0.01 - 0.05 |\n| Repeat binders (MATR3) | 0.05 - 0.30 (high; concentrated in repeats) |\n| Mitochondrial (FASTKD2) | 0.05 - 0.40 (very high; chrM is small) |\n| snoRNA binders (DKC1) | 0.10 - 0.50 (high; snoRNA is rare) |\n| Failed IP (any RBP) | \u003C 0.005 |\n\n## IDR for CLIP Reproducibility\n\nIDR (Li et al 2011) measures peak-rank reproducibility across replicates. ENCODE eCLIP convention applies IDR identically to ChIP-seq, using CLIPper + SMInput log2 FC + -log10 p as the ranking signal. The CLIP-specific consideration: rank by signalValue (log2 FC) or p-value, NOT by score column (CLIPper score is sparse and tied).\n\n```bash\n# Sort each replicate's peaks by signal\nsort -k5,5gr rep1.compressed.bed > rep1.sorted\nsort -k5,5gr rep2.compressed.bed > rep2.sorted\n\n# True-replicates IDR (threshold 0.05)\nidr --samples rep1.sorted rep2.sorted \\\n    --input-file-type bed --rank 5 \\\n    --output-file idr_true.out \\\n    --idr-threshold 0.05 \\\n    --plot --log-output-file idr.log\n\n# Pseudo-replicates from each individual replicate (split BAM in half)\nsamtools view -b -h -s 1.5 rep1.dedup.bam > rep1.psr1.bam   # seed 1, fraction 0.5\nsamtools view -b -h -s 2.5 rep1.dedup.bam > rep1.psr2.bam   # seed 2 (different)\n# Re-run peak calling on each pseudoreplicate, then IDR at threshold 0.10\n```\n\n**ENCODE consistency rules for eCLIP:**\n- Nt = peaks passing IDR on true replicates\n- Nself = peaks passing IDR on pseudo-replicates of each rep\n- Library passes if: max(Nt, Nself) \u002F min(Nt, Nself) \u003C= 2\n- If both ratios > 2: library rejected\n\n## SMInput vs IgG Control: Which?\n\nThe eCLIP design uses a size-matched input (SMInput) from the SAME lysate, treated identically (UV, IP buffer, RNase, ligation, IP, but with NO antibody addition - just bead-only control or a non-specific control IP). This is fundamentally different from IgG controls and from RNA-seq.\n\n| Control | What it measures | Pros | Cons |\n|---------|------------------|------|------|\n| SMInput | Background from non-specific binding + ligation\u002FRT\u002Fgel biases at same size | Captures all CLIP-specific biases; ENCODE standard | Requires same-day prep; cannot use a previous IgG library |\n| IgG-IP | Non-specific antibody binding to the same RBP-naive lysate | Direct nonspecificity measure | Yields very low (~3-10x less reads); high PCR dup; hard to normalize |\n| Empty beads (mock) | Bead surface non-specificity only | Cleanest baseline | Misses real CLIP background (IP buffer + ligation step bias) |\n| RNA-seq (matched cell type) | Transcript abundance | Easy to obtain | Misses CLIP-specific biases entirely; not a real CLIP control |\n| Total RNA \u002F nuclear RNA | Cellular RNA distribution | Easy | Same as RNA-seq above |\n\n**Consensus (ENCODE \u002F Hentze \u002F Yeo):** SMInput. The bead-only IgG\u002Fmock alternatives are ill-suited for quantification because their library yields are 5-10x lower, dominated by PCR duplicates, and produce sparse read-density tracks. RNA-seq cannot replace SMInput because it does not capture the non-specific binding that occurs during IP.\n\n```bash\n# SMInput preparation - same as IP except no antibody added during incubation\n# Same UV dose, same lysate aliquot, same RNase, same library prep\n# Critical: same SDS-PAGE size cut from membrane as the IP\n\n# Check SMInput vs IP enrichment. A ratio of whole-library totals only measures relative sequencing\n# depth; normalize the in-peak fraction in each library instead:\n#   log2( (IP_in_peaks\u002FIP_total) \u002F (SMI_in_peaks\u002FSMI_total) )\n# > 0.5 indicates the IP concentrates reads into peaks beyond SMInput (good)\n# ~ 0 indicates failed IP (SMInput == IP)\n```\n\n## Read Distribution Metagene\n\n```bash\n# RSeQC read_distribution.py shows fractional read placement\nread_distribution.py -i dedup.bam -r gencode.v38.bed > read_dist.txt\n\n# Output reports:\n#   CDS_Exons, 5'UTR_Exons, 3'UTR_Exons, Introns, TES_down_10kb, TES_down_1kb,\n#   TSS_up_10kb, TSS_up_1kb, Intergenic_region\n# CLIP-seq biology-specific patterns:\n#   Splicing factor: > 60% Introns + 5' UTR exons (containing 5' splice sites)\n#   3' UTR factor: > 50% 3'UTR_Exons\n#   m6A reader: 3'UTR_Exons + Stop_codon region\n#   Failed IP: matches RNA-seq distribution (no enrichment)\n\n# GeneBody coverage for 5' vs 3' bias\ngeneBody_coverage.py \\\n    -i dedup.bam \\\n    -r housekeeping.bed \\\n    -o sample_gb\n# Flat curve = no positional bias (normal for most RBPs)\n# 3' end bias = polyA-dependent enrichment (suspect)\n# 5' end bias = nascent \u002F TSS-proximal (only sensible for some RBPs)\n```\n\n## Fragment-Length Distribution (Paired-End)\n\n```bash\n# Paired-end fragment-length distribution\nsamtools view -f 2 dedup.bam | awk '$9 > 0 && $9 \u003C 500 {print $9}' | sort -n | uniq -c > fragment_lengths.txt\n\n# CLIP normal range: 20-75 nt insert (rises from short trimmed reads to ~75 nt)\n# Wider range (20-200) seen in high-RNase \u002F long-fragment protocols\n# Narrow peak at one length (e.g., all reads at 30 nt) = over-trimmed\n# Bimodal at 30 nt and 150 nt = library preparation artifact\n```\n\n## Pre-Map rRNA \u002F snoRNA Contamination Check\n\n```bash\n# rRNA reads as fraction of total\ntotal=$(samtools view -c -F 4 dedup.bam)\nrRNA=$(samtools idxstats dedup.bam | awk '$1 ~ \u002FrRNA|45S|18S|28S|5_8S\u002F { sum+=$3 } END {print sum}')\nrrna_frac=$(echo \"scale=4; $rRNA \u002F $total\" | bc)\necho \"rRNA fraction: $rrna_frac\"\n\n# eCLIP without pre-map: rRNA 5-30% normal\n# After pre-map: \u003C 2% expected\n# > 30% indicates rRNA dominance - IP captured ribosomes preferentially\n# Some RBPs (RPL\u002FRPS) expected to bind ribosomes; verify against RBP biology\n```\n\n## Antibody Validation Sanity Check\n\nThe antibody is the single most common point of failure in CLIP. Even commercial \"IP-grade\" antibodies fail at 30-50% rates in practice. Cross-check IP enrichment against expected biology:\n\n```python\nimport pandas as pd\n\n# Load peak file\npeaks = pd.read_csv('peaks.stringent.bed', sep='\\t', header=None,\n                    names=['chr','start','end','name','log2fc','strand'])\n\n# Filter top 100 peaks\ntop_peaks = peaks.nlargest(100, 'log2fc')\n\n# Check enrichment in expected biology\n# 1. If RBP is splicing factor: top peaks should be intronic or splice-site flanking\n# 2. If RBP is HuR: > 70% top peaks should be 3' UTR\n# 3. If RBP is FASTKD2: top peaks should be chrM\n# 4. If RBP is FUS: GUGGU motif should appear in top motif enrichment\n\n# Quick check\nchrom_dist = top_peaks['chr'].value_counts(normalize=True)\nprint(chrom_dist.head(10))\n# Healthy RBP: chromosomes represented in proportion to expression\n# Failed IP: top chromosome chrM (mt artifact) or chr21\u002F22 (housekeeping bias) > 20%\n```\n\nGO term sanity: top-peak genes should enrich for the expected biology (e.g., HuR -> immune \u002F inflammation \u002F mRNA stability terms; PTBP1 -> RNA splicing terms). If the top GO term is \"cellular metabolism\" or \"translation\" for a splicing factor, the IP failed.\n\n## Per-Stage Failure Modes\n\n### Gate 1: Preprocessing retention \u003C 70%\n\n**Trigger:** cutadapt log shows > 30% reads filtered (too short or no adapter).\n\n**Mechanism:** Adapter pattern wrong; or RNA was degraded before fragmentation (all reads adapter-only).\n\n**Symptom:** Catastrophic loss at the adapter trim step.\n\n**Fix:** Verify adapter sequence in library prep documentation; check library quality control (Bioanalyzer \u002F TapeStation) for RIN value; re-prep if RIN \u003C 7.\n\n### Gate 2: Alignment rate \u003C 60%\n\n**Trigger:** STAR Log.final.out reports `Uniquely mapped reads %` \u003C 60% for eCLIP, \u003C 70% for iCLIP.\n\n**Mechanism:** rRNA contamination dominating (no pre-map); wrong species genome; or chimeric library (contamination).\n\n**Symptom:** Low alignment rate; samtools idxstats shows most reads as rRNA-aligned.\n\n**Fix:** Run bowtie2 pre-map to rRNA + repeats index; verify genome species; check for sample swap with `samtools view -h sample.bam | grep '^@SQ'`.\n\n### Gate 3: Library complexity \u003C 1M unique\n\n**Trigger:** preseq lc_extrap predicts plateau \u003C 1M unique at sequenced depth; or picard reports ESTIMATED_LIBRARY_SIZE \u003C 1M.\n\n**Mechanism:** Over-amplification (> 25 PCR cycles); low input (\u003C 5M cells); failed IP capturing only a few molecules.\n\n**Symptom:** preseq curve flattens early; UMI clusters have median size > 8.\n\n**Fix:** No analytic rescue. Re-prep with more input cells (10-20M for eCLIP), fewer PCR cycles (14-18 for eCLIP, 16-20 for iCLIP2). If forced to use this library, restrict downstream analysis to high-expression transcripts and acknowledge the limitation.\n\n### Gate 4: FRiP \u003C 0.005 for narrow-binding RBP\n\n**Trigger:** FRiP value below ENCODE threshold for the RBP class.\n\n**Mechanism:** IP failed to enrich specific binding sites; antibody cross-reactive or not IP-grade.\n\n**Symptom:** Top peaks dominated by abundant transcripts (GAPDH, ACTB); GO enrichment generic; motif analysis returns AU-rich background.\n\n**Fix:** Re-test antibody on a knockdown lysate (siRNA against the RBP) - if WB signal does not decrease, antibody is non-specific; switch antibody. ENCODE-validated antibodies are at encodeproject.org\u002Fbiosamples.\n\n### Gate 4 variant: IP\u002FSMInput global log2 ~ 0\n\n**Trigger:** Whole-genome log2(IP\u002FSMInput) is near 0 instead of positive.\n\n**Mechanism:** IP and SMInput are equivalent - the antibody is not enriching any RBP-bound RNA.\n\n**Symptom:** Per-peak log2 FC scaled around 0; no obvious enrichment at known motif sites.\n\n**Fix:** Same as above - antibody failure. Consider tagged-RBP system (Halo-CLIP, GoldCLIP, or knock-in endogenous tag).\n\n### Gate 5: IDR fails - rescue\u002Fself-consistency > 2\n\n**Trigger:** ENCODE IDR test reports rescue ratio > 2 OR self-consistency > 2.\n\n**Mechanism:** Replicates inconsistent. Biological variation high; OR one replicate has lower library complexity; OR one replicate failed IP.\n\n**Symptom:** Per-replicate peak counts differ > 2x; IDR plot shows the two replicates have very different peak rank distributions.\n\n**Fix:** Run preseq and FRiP on each replicate independently; identify the failing one; re-sequence to higher depth or re-prep. ENCODE-style: down-sample both replicates to common depth, re-test IDR.\n\n### High PCR duplication confused with low complexity\n\n**Trigger:** Saw 60% PCR duplication and panicked.\n\n**Mechanism:** CLIP libraries have 40-70% PCR duplication BY DESIGN - the IP enriches a small pool. UMI dedup recovers the unique molecules underneath.\n\n**Symptom:** \"60% duplication\" headline. Actual unique count is what matters.\n\n**Fix:** Confirm UMI dedup has been applied and unique fragment count >= 1M. The duplication rate metric is meaningless without UMI context for CLIP.\n\n## Decision Tree by Failure\n\n| Symptom | Likely failure | Action |\n|---------|----------------|--------|\n| > 50% reads \"too short\" in cutadapt | Adapter wrong or RNA degraded | Verify adapter; check RIN |\n| Most reads align to rRNA | No pre-map; or IP captured ribosomes | bowtie2 pre-map; or accept if RBP is ribosomal |\n| Unique frag count \u003C 1M | Over-amplified or under-input | No rescue; re-prep |\n| FRiP \u003C 0.005 (narrow RBP) | Failed IP | Switch antibody |\n| IP\u002FSMInput global log2 ~ 0 | Antibody non-specific | Switch antibody or use tagged-RBP |\n| IDR rescue > 2 | Replicate inconsistency | Identify failing replicate; re-sequence |\n| Top GO terms generic | Failed IP or contamination | Check antibody on KD lysate WB |\n| chrM peaks abundant for non-mt-RBP | Mitochondrial contamination | Filter chrM or accept if mt-RBP |\n| Fragment length all 30 nt | Over-trimmed | Loosen quality trim from -q 20 to -q 6 |\n| Strand-specific peaks lost | bedtools without -s | Add `-s` strand flag |\n\n## Standard QC Report (MultiQC)\n\n```bash\n# Aggregate all QC tools into a single report\nmultiqc \\\n    fastqc_output\u002F \\\n    cutadapt_logs\u002F \\\n    star_logs\u002F \\\n    umi_tools_logs\u002F \\\n    preseq_output\u002F \\\n    samtools_stats\u002F \\\n    -o multiqc_report\u002F\n```\n\nMultiQC reads logs from FastQC, cutadapt, STAR, umi_tools, preseq, samtools stats, picard, and others, and produces a single HTML report. For CLIP-seq, additionally run RSeQC `read_distribution.py` and document FRiP \u002F IDR results manually.\n\n## ENCODE-Style Comprehensive QC Table\n\n| Metric | Threshold | Source |\n|--------|-----------|--------|\n| Biological replicates | >= 2 | ENCODE eCLIP |\n| Read length | >= 50 nt (PE) | ENCODE |\n| Unique fragments per replicate | >= 1M (or saturated) | ENCODE |\n| Preprocessing retention | >= 70% | Practitioner consensus |\n| Genome alignment rate (unique) | >= 60% eCLIP, 70% iCLIP | Practitioner consensus |\n| Library complexity (preseq) | >= 10M expected unique at 100M | ENCODE |\n| FRiP (narrow-binding RBP) | >= 0.005 | ENCODE |\n| FRiP (atypical-binding RBP) | Exempt | ENCODE |\n| log2(IP\u002FSMInput) at stringent peaks | >= 3 | ENCODE |\n| -log10 p at stringent peaks | >= 3 | ENCODE |\n| IDR rescue ratio | \u003C 2 | ENCODE |\n| IDR self-consistency ratio | \u003C 2 | ENCODE |\n| rRNA fraction post pre-map | \u003C 2% | Practitioner consensus |\n| Read distribution match to RBP class | Y | Sanity check |\n| Top motif consistent with literature | Y | Sanity check |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| preseq \"all reads have duplicates\" | Pre-deduplicated BAM passed to preseq | Re-run on PRE-dedup BAM |\n| FRiP value > 1.0 | Peak set overlaps reads counted twice | Use unique-reads BAM; verify peak BED is non-redundant |\n| IDR plot empty | Ranking column wrong; all peaks tied at same value | Rank by `--rank 5` (log2 FC); sort BED first |\n| MultiQC missing modules | Logs not in expected directory structure | Verify log paths; rerun multiqc with explicit `-d` |\n| Read distribution: > 50% intergenic for mRNA RBP | TxDb missing transcripts; rRNA contamination | Update GENCODE; pre-map rRNA |\n| GeneBody coverage 3' biased | polyA-selected library; not CLIP | Verify library prep was random hexamer |\n| Fragment-length distribution narrow at 30 nt | Adapter aggressively trimmed at 5' | Loosen trim parameters |\n| Antibody KD WB shows no decrease | Antibody non-specific | Switch antibody; use ENCODE-validated |\n\n## References\n\n- Van Nostrand EL et al 2016 Nat Methods 13:508 (eCLIP, ENCODE QC standards)\n- Li Q et al 2011 Ann Appl Stat 5:1752 (IDR framework)\n- Landt SG et al 2012 Genome Res 22:1813 (ChIP\u002FCLIP QC guidelines, IDR Nself rule)\n- Daley T & Smith AD 2013 Nat Methods 10:325 (preseq library complexity)\n- Wang L et al 2012 Bioinformatics 28:2184 (RSeQC)\n- Ewels P et al 2016 Bioinformatics 32:3047 (MultiQC)\n- Smith T et al 2017 Genome Res 27:491 (UMI-tools)\n- ENCODE eCLIP Data Standards (encodeproject.org\u002Feclip) - canonical thresholds\n- Van Nostrand EL et al 2020 Nature 583:711 (ENCODE 150 RBP QC patterns)\n\n## Related Skills\n\n- clip-seq\u002Fclip-preprocessing - Gate 1 preprocessing logs\n- clip-seq\u002Fclip-alignment - Gate 2 alignment metrics\n- clip-seq\u002Fclip-peak-calling - Gates 4-5 peak QC + FRiP\n- clip-seq\u002Fdifferential-clip - QC for differential analyses\n- read-qc\u002Fquality-reports - General FastQC \u002F MultiQC\n- read-qc\u002Fcontamination-screening - Cross-species contamination\n- chip-seq\u002Fchipseq-qc - DNA-protein QC analogue\n","## Version Compatibility\n\nReference examples tested with: preseq 3.2+, picard 3.1+, samtools 1.19+, bedtools 2.31+, deeptools 3.5+, idr 2.0.4+, MultiQC 1.21+, RSeQC 5.0+, pysam 0.22+, fastp 0.23+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws unexpected errors, introspect the installed binary and adapt the example to match the actual CLI rather than retrying.\n\n# CLIP-seq Quality Control\n\n**\"Did my CLIP library pass?\"** -> Assess preprocessing retention, alignment rate, library complexity, replicate reproducibility (IDR), fraction reads in peaks (FRiP), read-distribution metagene, rRNA\u002FsnoRNA contamination, fragment-length distribution, and SMInput vs IP enrichment. ENCODE eCLIP compliance is the canonical bar: >= 1M unique fragments per replicate, IDR rescue and self-consistency ratios both \u003C 2, FRiP >= 0.005 (narrow-binding), library complexity rising linearly with depth on preseq lc_extrap. A library can fail at any of these stages, and the failure mode determines whether the data is salvageable.\n\n- CLI (library complexity, primary QC): `preseq lc_extrap -B -P aligned.bam -o complexity.txt`\n- CLI (FRiP after peak calling): `bedtools intersect -c -s -a peaks.bed -b dedup.bam | awk '{s+=$NF} END{print s}'` then divide by total reads\n- CLI (IDR, ENCODE convention): `idr --samples rep1.sorted.bed rep2.sorted.bed --input-file-type bed --rank 5 --output-file idr.out --idr-threshold 0.05 --plot`\n- CLI (read distribution \u002F metagene): `RSeQC read_distribution.py -i dedup.bam -r gencode.v38.bed` + `geneBody_coverage.py -i dedup.bam -r housekeeping.bed -o gb`\n- CLI (rRNA contamination check): `samtools idxstats dedup.bam | awk '$1 ~ \u002FrRNA|45S|18S|28S\u002F { sum+=$3 } END {print sum}'`\n- CLI (consolidated report): `multiqc \u003Crun_dir>` aggregates FastQC + cutadapt + STAR + umi_tools + preseq + samtools stats\n\nThe ENCODE eCLIP standards (encodeproject.org\u002Feclip) define: >= 2 biological replicates with >= 1M unique fragments each (or saturated peak detection); IDR rescue and self-consistency ratios both \u003C 2; narrow-binding RBPs FRiP >= 0.005. CLIP libraries should have 40-70% PCR duplication BY DESIGN - the IP enriches a small molecule pool, so high pre-dedup duplication is normal; low duplication suggests failed IP.\n\n## QC Stage Hierarchy\n\nCLIP QC progresses through five gates; failure at an earlier gate makes later gates meaningless.\n\n| Gate | Metric | Tool | ENCODE threshold | Failure interpretation |\n|------|--------|------|------------------|------------------------|\n| 1. Preprocessing retention | % reads retained after UMI + adapter trim | cutadapt log | >= 70% | Adapter pattern wrong; degraded RNA |\n| 2. Alignment rate | % reads aligned to genome (unique) | STAR Log.final.out | >= 60% for eCLIP, 70% for iCLIP\u002FPAR-CLIP | Wrong genome; rRNA pre-map missing |\n| 3. Library complexity | Predicted unique fragments at sequenced depth | preseq lc_extrap | >= 1M unique | Over-amplified or under-input library |\n| 4. IP enrichment | log2(IP\u002FSMInput) at expected sites; FRiP | bedtools + idr | FRiP >= 0.005; log2 >= 3 at top peaks | Failed antibody \u002F antibody not IP-grade |\n| 5. Reproducibility | IDR rescue + self-consistency ratios | idr | both \u003C 2 | Biological variation too high; or low complexity |\n\nA library failing at Gate 3 (complexity) cannot be rescued analytically; gates 4-5 fail downstream of complexity by construction.\n\n## Library Complexity with preseq\n\n**Goal:** Determine whether the CLIP library captured enough independent molecules to support genome-wide peak calling (ENCODE: >= 1M unique fragments per replicate).\n\n**Approach:** Run `preseq lc_extrap` on the PRE-dedup BAM (preseq counts PCR duplicates to extrapolate); also compute picard ESTIMATED_LIBRARY_SIZE at sequenced depth. Flag any library predicted to plateau below 3M unique fragments at infinite depth.\n\n```bash\n# After alignment, BEFORE UMI dedup (preseq counts PCR duplicates)\npreseq lc_extrap \\\n    -B -P \\\n    -o sample_complexity.txt \\\n    sample_aligned.bam\n\n# Output columns:\n# TOTAL_READS  EXPECTED_DISTINCT  LOWER_0.95CI  UPPER_0.95CI\n# At 100M reads, EXPECTED_DISTINCT:\n#   >= 10M  = excellent complexity\n#   3-10M   = acceptable; restrict to high-expression transcripts\n#   \u003C 3M    = library failed; cannot rescue analytically\n\n# picard direct estimate at current depth\npicard EstimateLibraryComplexity \\\n    I=sample_aligned.bam \\\n    O=picard_complexity.txt\n# ESTIMATED_LIBRARY_SIZE > 5M = healthy CLIP library\n```\n\nA linear plateau on preseq's curve at low depth indicates over-amplification; a curve still climbing at sequenced depth means more sequencing would yield more unique fragments.\n\n## FRiP (Fraction Reads in Peaks)\n\nFRiP measures how much of the IP signal falls into the called peak set. ENCODE eCLIP narrow-binding RBP minimum: FRiP >= 0.005. Atypical-binding RBPs (rare-transcript binders like TROVE2 on Y RNAs) are exempt.\n\n```bash\n# Reads in peaks (use stringent peaks: log2 FC >= 3, -log10 p >= 3)\nreads_in_peaks=$(bedtools intersect -c -s -a peaks.stringent.bed -b dedup.bam | awk '{s+=$NF} END {print s}')\ntotal_reads=$(samtools view -c -F 4 dedup.bam)\nfrip=$(echo \"scale=4; $reads_in_peaks \u002F $total_reads\" | bc)\necho \"FRiP: $frip\"\n\n# Per-region FRiP breakdown\nfor region in three_utr exon intron; do\n    rip=$(bedtools intersect -c -s -a peaks_${region}.bed -b dedup.bam | awk '{s+=$NF} END {print s}')\n    echo \"${region}: $(echo \"scale=4; $rip \u002F $total_reads\" | bc)\"\ndone\n```\n\n| RBP class | Expected FRiP (ENCODE eCLIP) |\n|-----------|------------------------------|\n| Splicing factors (PTBP1, U2AF2) | 0.01 - 0.10 |\n| 3' UTR mRNA stability (HuR, PUM2) | 0.02 - 0.20 |\n| Translation factors (EIF3J) | 0.01 - 0.05 |\n| Repeat binders (MATR3) | 0.05 - 0.30 (high; concentrated in repeats) |\n| Mitochondrial (FASTKD2) | 0.05 - 0.40 (very high; chrM is small) |\n| snoRNA binders (DKC1) | 0.10 - 0.50 (high; snoRNA is rare) |\n| Failed IP (any RBP) | \u003C 0.005 |\n\n## IDR for CLIP Reproducibility\n\nIDR (Li et al 2011) measures peak-rank reproducibility across replicates. ENCODE eCLIP convention applies IDR identically to ChIP-seq, using CLIPper + SMInput log2 FC + -log10 p as the ranking signal. The CLIP-specific consideration: rank by signalValue (log2 FC) or p-value, NOT by score column (CLIPper score is sparse and tied).\n\n```bash\n# Sort each replicate's peaks by signal\nsort -k5,5gr rep1.compressed.bed > rep1.sorted\nsort -k5,5gr rep2.compressed.bed > rep2.sorted\n\n# True-replicates IDR (threshold 0.05)\nidr --samples rep1.sorted rep2.sorted \\\n    --input-file-type bed --rank 5 \\\n    --output-file idr_true.out \\\n    --idr-threshold 0.05 \\\n    --plot --log-output-file idr.log\n\n# Pseudo-replicates from each individual replicate (split BAM in half)\nsamtools view -b -h -s 1.5 rep1.dedup.bam > rep1.psr1.bam   # seed 1, fraction 0.5\nsamtools view -b -h -s 2.5 rep1.dedup.bam > rep1.psr2.bam   # seed 2 (different)\n# Re-run peak calling on each pseudoreplicate, then IDR at threshold 0.10\n```\n\n**ENCODE consistency rules for eCLIP:**\n- Nt = peaks passing IDR on true replicates\n- Nself = peaks passing IDR on pseudo-replicates of each rep\n- Library passes if: max(Nt, Nself) \u002F min(Nt, Nself) \u003C= 2\n- If both ratios > 2: library rejected\n\n## SMInput vs IgG Control: Which?\n\nThe eCLIP design uses a size-matched input (SMInput) from the SAME lysate, treated identically (UV, IP buffer, RNase, ligation, IP, but with NO antibody addition - just bead-only control or a non-specific control IP). This is fundamentally different from IgG controls and from RNA-seq.\n\n| Control | What it measures | Pros | Cons |\n|---------|------------------|------|------|\n| SMInput | Background from non-specific binding + ligation\u002FRT\u002Fgel biases at same size | Captures all CLIP-specific biases; ENCODE standard | Requires same-day prep; cannot use a previous IgG library |\n| IgG-IP | Non-specific antibody binding to the same RBP-naive lysate | Direct nonspecificity measure | Yields very low (~3-10x less reads); high PCR dup; hard to normalize |\n| Empty beads (mock) | Bead surface non-specificity only | Cleanest baseline | Misses real CLIP background (IP buffer + ligation step bias) |\n| RNA-seq (matched cell type) | Transcript abundance | Easy to obtain | Misses CLIP-specific biases entirely; not a real CLIP control |\n| Total RNA \u002F nuclear RNA | Cellular RNA distribution | Easy | Same as RNA-seq above |\n\n**Consensus (ENCODE \u002F Hentze \u002F Yeo):** SMInput. The bead-only IgG\u002Fmock alternatives are ill-suited for quantification because their library yields are 5-10x lower, dominated by PCR duplicates, and produce sparse read-density tracks. RNA-seq cannot replace SMInput because it does not capture the non-specific binding that occurs during IP.\n\n```bash\n# SMInput preparation - same as IP except no antibody added during incubation\n# Same UV dose, same lysate aliquot, same RNase, same library prep\n# Critical: same SDS-PAGE size cut from membrane as the IP\n\n# Check SMInput vs IP enrichment. A ratio of whole-library totals only measures relative sequencing\n# depth; normalize the in-peak fraction in each library instead:\n#   log2( (IP_in_peaks\u002FIP_total) \u002F (SMI_in_peaks\u002FSMI_total) )\n# > 0.5 indicates the IP concentrates reads into peaks beyond SMInput (good)\n# ~ 0 indicates failed IP (SMInput == IP)\n```\n\n## Read Distribution Metagene\n\n```bash\n# RSeQC read_distribution.py shows fractional read placement\nread_distribution.py -i dedup.bam -r gencode.v38.bed > read_dist.txt\n\n# Output reports:\n#   CDS_Exons, 5'UTR_Exons, 3'UTR_Exons, Introns, TES_down_10kb, TES_down_1kb,\n#   TSS_up_10kb, TSS_up_1kb, Intergenic_region\n# CLIP-seq biology-specific patterns:\n#   Splicing factor: > 60% Introns + 5' UTR exons (containing 5' splice sites)\n#   3' UTR factor: > 50% 3'UTR_Exons\n#   m6A reader: 3'UTR_Exons + Stop_codon region\n#   Failed IP: matches RNA-seq distribution (no enrichment)\n\n# GeneBody coverage for 5' vs 3' bias\ngeneBody_coverage.py \\\n    -i dedup.bam \\\n    -r housekeeping.bed \\\n    -o sample_gb\n# Flat curve = no positional bias (normal for most RBPs)\n# 3' end bias = polyA-dependent enrichment (suspect)\n# 5' end bias = nascent \u002F TSS-proximal (only sensible for some RBPs)\n```\n\n## Fragment-Length Distribution (Paired-End)\n\n```bash\n# Paired-end fragment-length distribution\nsamtools view -f 2 dedup.bam | awk '$9 > 0 && $9 \u003C 500 {print $9}' | sort -n | uniq -c > fragment_lengths.txt\n\n# CLIP normal range: 20-75 nt insert (rises from short trimmed reads to ~75 nt)\n# Wider range (20-200) seen in high-RNase \u002F long-fragment protocols\n# Narrow peak at one length (e.g., all reads at 30 nt) = over-trimmed\n# Bimodal at 30 nt and 150 nt = library preparation artifact\n```\n\n## Pre-Map rRNA \u002F snoRNA Contamination Check\n\n```bash\n# rRNA reads as fraction of total\ntotal=$(samtools view -c -F 4 dedup.bam)\nrRNA=$(samtools idxstats dedup.bam | awk '$1 ~ \u002FrRNA|45S|18S|28S|5_8S\u002F { sum+=$3 } END {print sum}')\nrrna_frac=$(echo \"scale=4; $rRNA \u002F $total\" | bc)\necho \"rRNA fraction: $rrna_frac\"\n\n# eCLIP without pre-map: rRNA 5-30% normal\n# After pre-map: \u003C 2% expected\n# > 30% indicates rRNA dominance - IP captured ribosomes preferentially\n# Some RBPs (RPL\u002FRPS) expected to bind ribosomes; verify against RBP biology\n```\n\n## Antibody Validation Sanity Check\n\nThe antibody is the single most common point of failure in CLIP. Even commercial \"IP-grade\" antibodies fail at 30-50% rates in practice. Cross-check IP enrichment against expected biology:\n\n```python\nimport pandas as pd\n\n# Load peak file\npeaks = pd.read_csv('peaks.stringent.bed', sep='\\t', header=None,\n                    names=['chr','start','end','name','log2fc','strand'])\n\n# Filter top 100 peaks\ntop_peaks = peaks.nlargest(100, 'log2fc')\n\n# Check enrichment in expected biology\n# 1. If RBP is splicing factor: top peaks should be intronic or splice-site flanking\n# 2. If RBP is HuR: > 70% top peaks should be 3' UTR\n# 3. If RBP is FASTKD2: top peaks should be chrM\n# 4. If RBP is FUS: GUGGU motif should appear in top motif enrichment\n\n# Quick check\nchrom_dist = top_peaks['chr'].value_counts(normalize=True)\nprint(chrom_dist.head(10))\n# Healthy RBP: chromosomes represented in proportion to expression\n# Failed IP: top chromosome chrM (mt artifact) or chr21\u002F22 (housekeeping bias) > 20%\n```\n\nGO term sanity: top-peak genes should enrich for the expected biology (e.g., HuR -> immune \u002F inflammation \u002F mRNA stability terms; PTBP1 -> RNA splicing terms). If the top GO term is \"cellular metabolism\" or \"translation\" for a splicing factor, the IP failed.\n\n## Per-Stage Failure Modes\n\n### Gate 1: Preprocessing retention \u003C 70%\n\n**Trigger:** cutadapt log shows > 30% reads filtered (too short or no adapter).\n\n**Mechanism:** Adapter pattern wrong; or RNA was degraded before fragmentation (all reads adapter-only).\n\n**Symptom:** Catastrophic loss at the adapter trim step.\n\n**Fix:** Verify adapter sequence in library prep documentation; check library quality control (Bioanalyzer \u002F TapeStation) for RIN value; re-prep if RIN \u003C 7.\n\n### Gate 2: Alignment rate \u003C 60%\n\n**Trigger:** STAR Log.final.out reports `Uniquely mapped reads %` \u003C 60% for eCLIP, \u003C 70% for iCLIP.\n\n**Mechanism:** rRNA contamination dominating (no pre-map); wrong species genome; or chimeric library (contamination).\n\n**Symptom:** Low alignment rate; samtools idxstats shows most reads as rRNA-aligned.\n\n**Fix:** Run bowtie2 pre-map to rRNA + repeats index; verify genome species; check for sample swap with `samtools view -h sample.bam | grep '^@SQ'`.\n\n### Gate 3: Library complexity \u003C 1M unique\n\n**Trigger:** preseq lc_extrap predicts plateau \u003C 1M unique at sequenced depth; or picard reports ESTIMATED_LIBRARY_SIZE \u003C 1M.\n\n**Mechanism:** Over-amplification (> 25 PCR cycles); low input (\u003C 5M cells); failed IP capturing only a few molecules.\n\n**Symptom:** preseq curve flattens early; UMI clusters have median size > 8.\n\n**Fix:** No analytic rescue. Re-prep with more input cells (10-20M for eCLIP), fewer PCR cycles (14-18 for eCLIP, 16-20 for iCLIP2). If forced to use this library, restrict downstream analysis to high-expression transcripts and acknowledge the limitation.\n\n### Gate 4: FRiP \u003C 0.005 for narrow-binding RBP\n\n**Trigger:** FRiP value below ENCODE threshold for the RBP class.\n\n**Mechanism:** IP failed to enrich specific binding sites; antibody cross-reactive or not IP-grade.\n\n**Symptom:** Top peaks dominated by abundant transcripts (GAPDH, ACTB); GO enrichment generic; motif analysis returns AU-rich background.\n\n**Fix:** Re-test antibody on a knockdown lysate (siRNA against the RBP) - if WB signal does not decrease, antibody is non-specific; switch antibody. ENCODE-validated antibodies are at encodeproject.org\u002Fbiosamples.\n\n### Gate 4 variant: IP\u002FSMInput global log2 ~ 0\n\n**Trigger:** Whole-genome log2(IP\u002FSMInput) is near 0 instead of positive.\n\n**Mechanism:** IP and SMInput are equivalent - the antibody is not enriching any RBP-bound RNA.\n\n**Symptom:** Per-peak log2 FC scaled around 0; no obvious enrichment at known motif sites.\n\n**Fix:** Same as above - antibody failure. Consider tagged-RBP system (Halo-CLIP, GoldCLIP, or knock-in endogenous tag).\n\n### Gate 5: IDR fails - rescue\u002Fself-consistency > 2\n\n**Trigger:** ENCODE IDR test reports rescue ratio > 2 OR self-consistency > 2.\n\n**Mechanism:** Replicates inconsistent. Biological variation high; OR one replicate has lower library complexity; OR one replicate failed IP.\n\n**Symptom:** Per-replicate peak counts differ > 2x; IDR plot shows the two replicates have very different peak rank distributions.\n\n**Fix:** Run preseq and FRiP on each replicate independently; identify the failing one; re-sequence to higher depth or re-prep. ENCODE-style: down-sample both replicates to common depth, re-test IDR.\n\n### High PCR duplication confused with low complexity\n\n**Trigger:** Saw 60% PCR duplication and panicked.\n\n**Mechanism:** CLIP libraries have 40-70% PCR duplication BY DESIGN - the IP enriches a small pool. UMI dedup recovers the unique molecules underneath.\n\n**Symptom:** \"60% duplication\" headline. Actual unique count is what matters.\n\n**Fix:** Confirm UMI dedup has been applied and unique fragment count >= 1M. The duplication rate metric is meaningless without UMI context for CLIP.\n\n## Decision Tree by Failure\n\n| Symptom | Likely failure | Action |\n|---------|----------------|--------|\n| > 50% reads \"too short\" in cutadapt | Adapter wrong or RNA degraded | Verify adapter; check RIN |\n| Most reads align to rRNA | No pre-map; or IP captured ribosomes | bowtie2 pre-map; or accept if RBP is ribosomal |\n| Unique frag count \u003C 1M | Over-amplified or under-input | No rescue; re-prep |\n| FRiP \u003C 0.005 (narrow RBP) | Failed IP | Switch antibody |\n| IP\u002FSMInput global log2 ~ 0 | Antibody non-specific | Switch antibody or use tagged-RBP |\n| IDR rescue > 2 | Replicate inconsistency | Identify failing replicate; re-sequence |\n| Top GO terms generic | Failed IP or contamination | Check antibody on KD lysate WB |\n| chrM peaks abundant for non-mt-RBP | Mitochondrial contamination | Filter chrM or accept if mt-RBP |\n| Fragment length all 30 nt | Over-trimmed | Loosen quality trim from -q 20 to -q 6 |\n| Strand-specific peaks lost | bedtools without -s | Add `-s` strand flag |\n\n## Standard QC Report (MultiQC)\n\n```bash\n# Aggregate all QC tools into a single report\nmultiqc \\\n    fastqc_output\u002F \\\n    cutadapt_logs\u002F \\\n    star_logs\u002F \\\n    umi_tools_logs\u002F \\\n    preseq_output\u002F \\\n    samtools_stats\u002F \\\n    -o multiqc_report\u002F\n```\n\nMultiQC reads logs from FastQC, cutadapt, STAR, umi_tools, preseq, samtools stats, picard, and others, and produces a single HTML report. For CLIP-seq, additionally run RSeQC `read_distribution.py` and document FRiP \u002F IDR results manually.\n\n## ENCODE-Style Comprehensive QC Table\n\n| Metric | Threshold | Source |\n|--------|-----------|--------|\n| Biological replicates | >= 2 | ENCODE eCLIP |\n| Read length | >= 50 nt (PE) | ENCODE |\n| Unique fragments per replicate | >= 1M (or saturated) | ENCODE |\n| Preprocessing retention | >= 70% | Practitioner consensus |\n| Genome alignment rate (unique) | >= 60% eCLIP, 70% iCLIP | Practitioner consensus |\n| Library complexity (preseq) | >= 10M expected unique at 100M | ENCODE |\n| FRiP (narrow-binding RBP) | >= 0.005 | ENCODE |\n| FRiP (atypical-binding RBP) | Exempt | ENCODE |\n| log2(IP\u002FSMInput) at stringent peaks | >= 3 | ENCODE |\n| -log10 p at stringent peaks | >= 3 | ENCODE |\n| IDR rescue ratio | \u003C 2 | ENCODE |\n| IDR self-consistency ratio | \u003C 2 | ENCODE |\n| rRNA fraction post pre-map | \u003C 2% | Practitioner consensus |\n| Read distribution match to RBP class | Y | Sanity check |\n| Top motif consistent with literature | Y | Sanity check |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| preseq \"all reads have duplicates\" | Pre-deduplicated BAM passed to preseq | Re-run on PRE-dedup BAM |\n| FRiP value > 1.0 | Peak set overlaps reads counted twice | Use unique-reads BAM; verify peak BED is non-redundant |\n| IDR plot empty | Ranking column wrong; all peaks tied at same value | Rank by `--rank 5` (log2 FC); sort BED first |\n| MultiQC missing modules | Logs not in expected directory structure | Verify log paths; rerun multiqc with explicit `-d` |\n| Read distribution: > 50% intergenic for mRNA RBP | TxDb missing transcripts; rRNA contamination | Update GENCODE; pre-map rRNA |\n| GeneBody coverage 3' biased | polyA-selected library; not CLIP | Verify library prep was random hexamer |\n| Fragment-length distribution narrow at 30 nt | Adapter aggressively trimmed at 5' | Loosen trim parameters |\n| Antibody KD WB shows no decrease | Antibody non-specific | Switch antibody; use ENCODE-validated |\n\n## References\n\n- Van Nostrand EL et al 2016 Nat Methods 13:508 (eCLIP, ENCODE QC standards)\n- Li Q et al 2011 Ann Appl Stat 5:1752 (IDR framework)\n- Landt SG et al 2012 Genome Res 22:1813 (ChIP\u002FCLIP QC guidelines, IDR Nself rule)\n- Daley T & Smith AD 2013 Nat Methods 10:325 (preseq library complexity)\n- Wang L et al 2012 Bioinformatics 28:2184 (RSeQC)\n- Ewels P et al 2016 Bioinformatics 32:3047 (MultiQC)\n- Smith T et al 2017 Genome Res 27:491 (UMI-tools)\n- ENCODE eCLIP Data Standards (encodeproject.org\u002Feclip) - canonical thresholds\n- Van Nostrand EL et al 2020 Nature 583:711 (ENCODE 150 RBP QC patterns)\n\n## Related Skills\n\n- clip-seq\u002Fclip-preprocessing - Gate 1 preprocessing logs\n- clip-seq\u002Fclip-alignment - Gate 2 alignment metrics\n- clip-seq\u002Fclip-peak-calling - Gates 4-5 peak QC + FRiP\n- clip-seq\u002Fdifferential-clip - QC for differential analyses\n- read-qc\u002Fquality-reports - General FastQC \u002F MultiQC\n- read-qc\u002Fcontamination-screening - Cross-species contamination\n- chip-seq\u002Fchipseq-qc - DNA-protein QC analogue\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","mixed","2026-09-20","clip-seq\u002Fclip-qc\u002FSKILL.md","preseq","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-clip-seq-clip-qc","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-clip-seq-clip-qc",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-clip-seq-clip-qc",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-clip-seq-clip-qc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clip-seq-clip-qc\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fclip_qc.sh","SCRIPT","脚本",5601,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clip-seq-clip-qc\u002Fexamples\u002Fclip_qc.sh",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",3751,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clip-seq-clip-qc\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",[],[]]