Comprehensive QC for CLIP libraries (eCLIP, iCLIP, iCLIP2, PAR-CLIP). Five gates: preprocessing retention -> alignment rate -> library complexity -> FRiP/IP enrichment -> replicate reproducibility (IDR). Each gate must pass for the library to be usable. ENCODE eCLIP thresholds: >= 1M unique fragments per rep, FRiP >= 0.005 (narrow RBPs), IDR rescue + self-consistency both < 2. SMInput is the canonical control - NOT IgG, NOT empty beads, NOT RNA-seq.
conda install -c bioconda preseq picard samtools bedtools deeptools idr multiqc rseqc fastp
pip install pysam
Tell your AI agent: - "Run library complexity with preseq lc_extrap; flag if predicted unique < 1M at 100M reads" - "Compute FRiP against stringent peaks; ENCODE narrow-binding minimum 0.005" - "Run IDR true-replicate and pseudo-replicate; report rescue and self-consistency ratios" - "Read distribution metagene - HuR should be >50% 3' UTR" - "Diagnose why my CLIP library has 95% PCR duplication" - "Why is my FRiP so low - failed IP or wrong RBP class threshold?" - "Antibody sanity check: do top peaks match expected biology?"
"preseq lc_extrap on pre-dedup BAM; what unique-fragment count is predicted at 100M reads?"
"preseq curve flattens early - over-amplified library; nothing to do but re-prep"
"FRiP against stringent peak set; expected 0.01-0.10 for splicing factor"
"FRiP < 0.005 - check antibody; not an atypical-binding RBP"
"IDR with --rank 5 (log2 FC) on signal-sorted replicate beds; threshold 0.05 true rep, 0.10 pseudoreplicate"
"Rescue ratio > 2 - one replicate failed; identify and re-sequence"
"Top peaks are dominated by GAPDH and ACTB - failed IP or expression bias?"
"60% PCR duplication - this is normal CLIP, not low complexity"
"Read distribution shows 50% intergenic - rRNA contamination or wrong TxDb?"
"Verify antibody on KD lysate WB before claiming the CLIP worked"
"Top motif AU-rich and GO terms generic - antibody non-specific"
preseq lc_extrap on pre-dedup BAM (>= 1M unique predicted)