SKILL.md
Version Compatibility
Reference examples tested with: CRISPResso2 2.2+, pandas 2.2+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - CLI:
<tool> --versionthen<tool> --helpto confirm flags
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
CRISPResso2 Editing Analysis
"Quantify CRISPR editing from my amplicon data" → Analyze amplicon sequencing to measure indel frequencies, HDR efficiency, and frameshift rates from CRISPR gene editing experiments.
- CLI:
CRISPResso --fastq_r1 reads.fq --amplicon_seq ATGC --guide_seq GUIDE
Basic Analysis
Goal: Quantify CRISPR editing outcomes from amplicon sequencing of a single target site.
Approach: Align amplicon reads against the reference and guide sequences with CRISPResso, which reports indel frequencies, allele tables, and editing efficiency plots.
# Analyze single amplicon
CRISPResso \
--fastq_r1 sample_R1.fastq.gz \
--fastq_r2 sample_R2.fastq.gz \
--amplicon_seq AATGTCCCCCAATGGGAAGTTCATCTGGCACTGCCCACAGGTGAGGAGGTCATGATCCCCTTCTGGAGCTCCCAACGGGCCGTGGTCTGGTTCATCATCTGTAAGAATGGCTTCAAGAGGCTCGGCTGTGGTT \
--guide_seq CTGCCCACAGGTGAGGAGGT \
--output_folder crispresso_output \
--name sample1
# Output includes:
# - Editing efficiency statistics
# - Indel distribution
# - Allele frequency plots
With HDR Template
# Analyze HDR editing
CRISPResso \
--fastq_r1 hdr_sample_R1.fastq.gz \
--fastq_r2 hdr_sample_R2.fastq.gz \
--amplicon_seq AATGTCCCCCAATGGGAAGTTCATCTGGCACTGCCCACAGGTGAGGAGGTCATGATCCCCTTCTGGAGCTCCCAACGGGCCGTGGTCTGGTTCATCATCTGTAAGAATGGCTTCAAGAGGCTCGGCTGTGGTT \
--guide_seq CTGCCCACAGGTGAGGAGGT \
--expected_hdr_amplicon_seq AATGTCCCCCAATGGGAAGTTCATCTGGCACTGCCCACAGGTGAGGAGGTCATGATCCCCTTCTGGAGCTCCCAACGGGCCGTGGTCTGGTTCATCATCTGTAAGAATGGCTTCAAGATGCTCGGCTGTGGTT \
--output_folder hdr_output \
--name hdr_sample
