{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-crispr-screen-analyzer-c9794b598412","title":"CRISPR Screen Data Analysis","summary":"Process CRISPR screening data to identify essential genes and hit candidates. Performs quality control, statistical analysis (RRA), and hit calling for pooled CRISPR screens including viability screens and drug resistance\/sensitivity studies.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-crispr-screen-analyzer-c9794b598412","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-crispr-screen-analyzer-c9794b598412","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-crispr-screen-analyzer-c9794b598412.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-crispr-screen-analyzer-c9794b598412\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Before analysis, validate that the input data includes a count matrix file (e.g., 'sgrna_counts.txt'), a samplesheet (e.g., 'samples.csv'), and that control and treatment sample names are correctly specified. The output directory must be defined, and the user must specify the requested output format.","instructions":"---\nname: crispr-screen-analyzer\ndescription: Process CRISPR screening data to identify essential genes and hit candidates. Performs quality control, statistical analysis (RRA), and hit calling for pooled CRISPR screens including viability screens and drug resistance\/sensitivity studies.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# CRISPR Screen Analyzer\n\nAnalyze pooled CRISPR screening data to identify essential genes, drug resistance\/sensitivity candidates, and screen quality metrics. Supports Robust Rank Aggregation (RRA) analysis, quality control assessment, and hit identification for functional genomics studies.\n\n**Key Capabilities:**\n- **Quality Control Assessment**: Calculate Gini index, read depth, and dropout metrics to evaluate screen quality\n- **Log Fold Change Calculation**: Compute sgRNA-level fold changes between treatment and control conditions\n- **Statistical Analysis**: Perform Robust Rank Aggregation (RRA) to identify significantly enriched or depleted sgRNAs\n- **Hit Identification**: Apply FDR and fold change thresholds to identify candidate genes\n- **Multi-Sample Support**: Process multiple replicates and treatment conditions simultaneously\n\n---\n\n## When to Use\n\n- Use this skill when the task needs Process CRISPR screening data to identify essential genes and hit candidates. Performs quality control, statistical analysis (RRA), and hit calling for pooled CRISPR screens including viability screens and drug resistance\/sensitivity studies.\n- Use this skill for data analysis tasks that require explicit assumptions, bounded scope, and a reproducible output format.\n- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.\n\n## Key Features\n\n- Scope-focused workflow aligned to: Process CRISPR screening data to identify essential genes and hit candidates. Performs quality control, statistical analysis (RRA), and hit calling for pooled CRISPR screens including viability screens and drug resistance\/sensitivity studies.\n- Packaged executable path(s): `scripts\/main.py`.\n- Reference material available in `references\/` for task-specific guidance.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\nSee `## Prerequisites` above for related details.\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `numpy`: `unspecified`. Declared in `requirements.txt`.\n- `pandas`: `unspecified`. Declared in `requirements.txt`.\n- `scipy`: `unspecified`. Declared in `requirements.txt`.\n\n## Example Usage\n\nSee `## Usage` above for related details.\n\n```bash\ncd \"20260318\/scientific-skills\/Data Analytics\/crispr-screen-analyzer\"\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/main.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/main.py`.\n- Reference guidance: `references\/` contains supporting rules, prompts, or checklists.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Quick Check\n\nUse this command to verify that the packaged script entry point can be parsed before deeper execution.\n\n```bash\npython -m py_compile scripts\/main.py\n```\n\n## Audit-Ready Commands\n\nUse these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\n## Workflow\n\n1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.\n2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.\n3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\n4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n## Integration with Other Skills\n\n**Upstream Skills:**\n- `crispr-grna-designer`: Design sgRNA libraries before screening; validate library composition\n- `fastqc-report-interpreter`: Assess sequencing quality before CRISPR screen analysis\n- `alignment-quality-checker`: Verify sgRNA alignment rates and mapping quality\n\n**Downstream Skills:**\n- `go-kegg-enrichment`: Perform pathway enrichment on identified hit genes\n- `pathway-visualization`: Visualize hits in pathway contexts\n- `hit-validation-planner`: Design follow-up experiments for candidate genes\n- `gene-essentiality-predictor`: Compare screen results with known essential gene databases\n\n**Complete Workflow:**\n```\nLibrary Design (crispr-grna-designer) \u2192 Transduction \u2192 Sequencing \u2192 fastqc-report-interpreter \u2192 crispr-screen-analyzer \u2192 go-kegg-enrichment \u2192 Hit Validation\n```\n\n---\n\n## Core Capabilities\n\n### 1. Quality Control Metrics Calculation\n\nAssess CRISPR screen quality using established metrics including Gini index, read depth, and sgRNA dropout rates.\n\n```python\nfrom scripts.main import CRISPRScreenAnalyzer\n\n# Initialize analyzer with count matrix and sample annotations\nanalyzer = CRISPRScreenAnalyzer(\n    counts_file=\"sgrna_counts.txt\",\n    samplesheet=\"samples.csv\"\n)\n\n# Calculate QC metrics\nqc_results = analyzer.qc_metrics()\n\n# Review key metrics\nprint(\"Quality Control Metrics:\")\nprint(f\"Total reads per sample:\")\nfor sample, reads in qc_results['total_reads'].items():\n    print(f\"  {sample}: {reads:,} reads\")\n\nprint(f\"\\nGini index (library representation):\")\nfor sample, gini in qc_results['gini_index'].items():\n    status = \"\u2705 Good\" if gini < 0.3 else \"\u26a0\ufe0f  Check\" if gini < 0.4 else \"\u274c Poor\"\n    print(f\"  {sample}: {gini:.3f} {status}\")\n\nprint(f\"\\nZero-count sgRNAs (potential dropout):\")\nfor sample, zeros in qc_results['zero_count_sgrnas'].items():\n    pct = (zeros \/ len(analyzer.counts)) * 100\n    print(f\"  {sample}: {zeros} ({pct:.1f}%)\")\n```\n\n**QC Metrics Explained:**\n\n| Metric | Target Range | Interpretation |\n|--------|--------------|----------------|\n| **Gini Index** | <0.3 | Measures library evenness; lower = more uniform |\n| **Total Reads** | >10M per sample | Sufficient depth for statistical power |\n| **Zero-count sgRNAs** | <5% | Acceptable dropout; higher indicates library loss |\n| **Read Distribution** | Log-normal | Should follow expected distribution |\n\n**Best Practices:**\n- \u2705 **Check Gini index first**: Values >0.4 indicate potential library bias or bottleneck\n- \u2705 **Compare replicates**: QC metrics should be consistent across replicates\n- \u2705 **Assess time points**: Later time points typically show higher dropout\n- \u2705 **Validate early**: Poor QC may require screen repetition\n\n**Common Issues and Solutions:**\n\n**Issue: High Gini index (>0.4)**\n- Symptom: Uneven sgRNA representation suggesting library bottleneck\n- Solution: Check MOI (multiplicity of infection); verify puromycin selection; consider repeating screen\n\n**Issue: Excessive zero-count sgRNAs (>10%)**\n- Symptom: Many sgRNAs not detected in final samples\n- Causes: Low sequencing depth, library degradation, or strong selection\n- Solution: Increase sequencing depth; verify library quality at transduction\n\n### 2. Log Fold Change Calculation\n\nCalculate log2 fold changes between treatment and control conditions to identify enriched or depleted sgRNAs.\n\n```python\nfrom scripts.main import CRISPRScreenAnalyzer\n\nanalyzer = CRISPRScreenAnalyzer(\"counts.txt\", \"samples.csv\")\n\n# Define sample groups\ncontrol_samples = [\"Control_1\", \"Control_2\", \"Control_3\"]\ntreatment_samples = [\"Drug_1\", \"Drug_2\", \"Drug_3\"]\n\n# Calculate log fold changes\nlfc = analyzer.calculate_lfc(control_samples, treatment_samples)\n\n# Analyze distribution\nprint(\"Log Fold Change Statistics:\")\nprint(f\"  Mean: {lfc.mean():.3f}\")\nprint(f\"  Std:  {lfc.std():.3f}\")\nprint(f\"  Max:  {lfc.max():.3f}\")\nprint(f\"  Min:  {lfc.min():.3f}\")\n\n# Identify extreme changes\nstrong_depletion = lfc[lfc < -2]  # Strong negative selection\nstrong_enrichment = lfc[lfc > 2]   # Strong positive selection\n\nprint(f\"\\nStrongly depleted sgRNAs: {len(strong_depletion)}\")\nprint(f\"Strongly enriched sgRNAs: {len(strong_enrichment)}\")\n```\n\n**LFC Calculation:**\n```\nlfc = log2((treatment_mean + 1) \/ (control_mean + 1))\n```\n\n**Interpretation:**\n\n| LFC Range | Interpretation | Biological Meaning |\n|-----------|---------------|-------------------|\n| **LFC < -2** | Strong depletion | Essential gene or drug sensitivity |\n| **LFC -2 to -1** | Moderate depletion | Moderate effect |\n| **LFC -1 to 1** | No change | No significant effect |\n| **LFC 1 to 2** | Moderate enrichment | Moderate resistance |\n| **LFC > 2** | Strong enrichment | Resistance gene or suppressor |\n\n**Best Practices:**\n- \u2705 **Use pseudocount of 1** to avoid log(0) issues\n- \u2705 **Average replicates** to reduce technical variance\n- \u2705 **Visualize distribution** to identify batch effects or outliers\n- \u2705 **Check positive controls** (known essential genes should have negative LFC)\n\n**Common Issues and Solutions:**\n\n**Issue: Skewed LFC distribution**\n- Symptom: Mean LFC significantly different from 0\n- Causes: Library size differences, batch effects, or strong selection\n- Solution: Apply TMM or DESeq2 normalization; check for batch effects\n\n**Issue: Extreme outliers**\n- Symptom: Few sgRNAs with very large LFC values\n- Solution: Winsorize extreme values; verify these are not technical artifacts\n\n### 3. Robust Rank Aggregation (RRA) Statistical Analysis\n\nPerform statistical analysis to identify significantly enriched or depleted sgRNAs using z-score and FDR correction.\n\n```python\nfrom scripts.main import CRISPRScreenAnalyzer\n\nanalyzer = CRISPRScreenAnalyzer(\"counts.txt\", \"samples.csv\")\n\n# Calculate LFC first\nlfc = analyzer.calculate_lfc(\n    control_samples=[\"Ctrl_1\", \"Ctrl_2\"],\n    treatment_samples=[\"Treat_1\", \"Treat_2\"]\n)\n\n# Perform RRA analysis\nresults = analyzer.rra_analysis(lfc, fdr_threshold=0.05)\n\n# Review top hits\nprint(\"Top 10 Most Significant sgRNAs:\")\ntop_hits = results.nsmallest(10, 'fdr')\nprint(top_hits[['sgrna', 'lfc', 'pvalue', 'fdr']].to_string(index=False))\n\n# Summary statistics\nprint(f\"\\nTotal sgRNAs tested: {len(results)}\")\nprint(f\"Significant at FDR < 0.05: {sum(results['fdr'] < 0.05)}\")\nprint(f\"Significant depletions: {sum((results['fdr'] < 0.05) & (results['lfc'] < 0))}\")\nprint(f\"Significant enrichments: {sum((results['fdr'] < 0.05) & (results['lfc'] > 0))}\")\n```\n\n**RRA Analysis Steps:**\n\n1. **Z-score calculation**: `z = (lfc - mean) \/ std`\n2. **P-value calculation**: Two-tailed normal test\n3. **FDR correction**: Benjamini-Hochberg procedure\n\n**Statistical Output:**\n\n| Column | Description | Usage |\n|--------|-------------|-------|\n| `sgrna` | sgRNA identifier | Mapping to genes |\n| `lfc` | Log fold change | Effect size |\n| `pvalue` | Raw p-value | Statistical significance |\n| `fdr` | Adjusted p-value (FDR) | Multiple testing correction |\n\n**Best Practices:**\n- \u2705 **Use FDR < 0.05** as standard significance threshold\n- \u2705 **Consider FDR < 0.01** for high-confidence hits\n- \u2705 **Combine p-value and LFC** for hit prioritization\n- \u2705 **Validate top hits** experimentally before publication\n\n**Common Issues and Solutions:**\n\n**Issue: No significant hits despite visible effects**\n- Symptom: Biological effects present but no FDR-significant results\n- Causes: High variance, insufficient replicates, or weak effects\n- Solution: Increase replicate number; use more permissive FDR threshold; use gene-level aggregation\n\n**Issue: Too many significant hits**\n- Symptom: Hundreds or thousands of FDR-significant sgRNAs\n- Causes: Low variance, strong selection, or batch effects\n- Solution: Apply more stringent FDR threshold; add LFC cutoff; filter by effect size\n\n### 4. Hit Identification with Thresholds\n\nApply statistical and biological thresholds to identify candidate genes for follow-up validation.\n\n```python\nfrom scripts.main import CRISPRScreenAnalyzer\n\nanalyzer = CRISPRScreenAnalyzer(\"counts.txt\", \"samples.csv\")\nlfc = analyzer.calculate_lfc([\"Ctrl_1\", \"Ctrl_2\"], [\"Treat_1\", \"Treat_2\"])\nresults = analyzer.rra_analysis(lfc)\n\n# Identify hits with multiple thresholds\nthreshold_configs = [\n    {\"fdr\": 0.05, \"lfc\": 1.0, \"name\": \"Standard\"},\n    {\"fdr\": 0.01, \"lfc\": 1.5, \"name\": \"Stringent\"},\n    {\"fdr\": 0.1, \"lfc\": 0.5, \"name\": \"Permissive\"}\n]\n\nfor config in threshold_configs:\n    hits = analyzer.identify_hits(\n        results, \n        fdr_threshold=config['fdr'],\n        lfc_threshold=config['lfc']\n    )\n    \n    depletions = hits[hits['lfc'] < 0]\n    enrichments = hits[hits['lfc'] > 0]\n    \n    print(f\"\\n{config['name']} (FDR<{config['fdr']}, |LFC|>{config['lfc']}):\")\n    print(f\"  Total hits: {len(hits)}\")\n    print(f\"  Depletions: {len(depletions)}\")\n    print(f\"  Enrichments: {len(enrichments)}\")\n\n# Save hits for downstream analysis\nstandard_hits = analyzer.identify_hits(results, fdr_threshold=0.05, lfc_threshold=1.0)\nstandard_hits.to_csv(\"hits_standard.csv\", index=False)\n```\n\n**Hit Classification:**\n\n| Category | Criteria | Biological Interpretation |\n|----------|----------|---------------------------|\n| **Essential** | FDR<0.05, LFC<-1 | Required for cell viability |\n| **Drug Sensitive** | FDR<0.05, LFC<-1 | Synthetic lethal with treatment |\n| **Drug Resistant** | FDR<0.05, LFC>1 | Confers resistance to treatment |\n| **Suppressor** | FDR<0.05, LFC>1 | Suppresses phenotype of interest |\n\n**Best Practices:**\n- \u2705 **Use consistent thresholds** across related screens for comparability\n- \u2705 **Require multiple sgRNAs** per gene for confidence (\u22652 recommended)\n- \u2705 **Validate with orthogonal methods** (siRNA, rescue experiments)\n- \u2705 **Compare with known essential genes** as positive controls\n\n**Common Issues and Solutions:**\n\n**Issue: Single sgRNA hits**\n- Symptom: Only one sgRNA per gene significant\n- Solution: Require \u22652 significant sgRNAs per gene; check for off-target effects\n\n**Issue: Off-target effects dominating**\n- Symptom: Known essential genes not identified; unexpected hits prominent\n- Solution: Use second-generation libraries with improved specificity; validate with rescue\n\n### 5. Gene-Level Aggregation\n\nAggregate sgRNA-level results to gene-level statistics for biological interpretation.\n\n```python\nimport pandas as pd\nfrom scripts.main import CRISPRScreenAnalyzer\n\nanalyzer = CRISPRScreenAnalyzer(\"counts.txt\", \"samples.csv\")\nlfc = analyzer.calculate_lfc([\"Ctrl_1\", \"Ctrl_2\"], [\"Treat_1\", \"Treat_2\"])\nresults = analyzer.rra_analysis(lfc)\n\n# Add gene annotations (example mapping)\nsgrna_to_gene = pd.read_csv(\"library_annotation.csv\")  # sgRNA, Gene columns\nresults_with_gene = results.merge(sgrna_to_gene, on='sgrna')\n\n# Aggregate to gene level\ngene_results = results_with_gene.groupby('Gene').agg({\n    'lfc': 'mean',           # Average LFC across sgRNAs\n    'pvalue': 'min',         # Best p-value\n    'fdr': 'min',            # Best FDR\n    'sgrna': 'count'         # Number of sgRNAs\n}).rename(columns={'sgrna': 'sgrna_count'})\n\n# Filter genes with multiple sgRNAs\ngene_results = gene_results[gene_results['sgrna_count'] >= 2]\n\n# Identify gene-level hits\ngene_hits = gene_results[\n    (gene_results['fdr'] < 0.05) & \n    (abs(gene_results['lfc']) > 1.0)\n]\n\nprint(f\"Gene-level hits: {len(gene_hits)}\")\nprint(\"\\nTop 10 hits:\")\nprint(gene_hits.nsmallest(10, 'fdr')[['lfc', 'pvalue', 'fdr', 'sgrna_count']])\n```\n\n**Gene Aggregation Methods:**\n\n| Method | Description | Best For |\n|--------|-------------|----------|\n| **Mean LFC** | Average across sgRNAs | General hit calling |\n| **Best FDR** | Most significant sgRNA | Conservative approach |\n| **Second-best** | Second most significant | Reduces outlier effects |\n| **STARS\/RRA** | Rank-based aggregation | Standard CRISPR analysis |\n\n**Best Practices:**\n- \u2705 **Require \u22653 sgRNAs per gene** for reliable gene-level calling\n- \u2705 **Use mean LFC** for primary analysis; best FDR for validation\n- \u2705 **Check sgRNA concordance** - all should show same direction\n- \u2705 **Remove genes with conflicting sgRNAs** from hit list\n\n**Common Issues and Solutions:**\n\n**Issue: Discordant sgRNAs for same gene**\n- Symptom: Some sgRNAs positive, others negative for same gene\n- Causes: Off-target effects, library errors, or complex biology\n- Solution: Exclude genes with discordant sgRNAs; investigate specific cases\n\n### 6. Multi-Condition Comparison\n\nCompare CRISPR screen results across multiple treatment conditions or time points.\n\n```python\nfrom scripts.main import CRISPRScreenAnalyzer\n\nanalyzer = CRISPRScreenAnalyzer(\"counts.txt\", \"samples.csv\")\n\n# Define multiple comparisons\ncomparisons = {\n    \"Drug_A\": {\n        \"control\": [\"DMSO_1\", \"DMSO_2\"],\n        \"treatment\": [\"DrugA_1\", \"DrugA_2\"]\n    },\n    \"Drug_B\": {\n        \"control\": [\"DMSO_1\", \"DMSO_2\"], \n        \"treatment\": [\"DrugB_1\", \"DrugB_2\"]\n    },\n    \"Combination\": {\n        \"control\": [\"DMSO_1\", \"DMSO_2\"],\n        \"treatment\": [\"Combo_1\", \"Combo_2\"]\n    }\n}\n\n# Analyze all conditions\nall_results = {}\nfor comp_name, samples in comparisons.items():\n    lfc = analyzer.calculate_lfc(samples['control'], samples['treatment'])\n    results = analyzer.rra_analysis(lfc)\n    hits = analyzer.identify_hits(results)\n    \n    all_results[comp_name] = {\n        'lfc': lfc,\n        'results': results,\n        'hits': hits\n    }\n    \n    print(f\"{comp_name}: {len(hits)} hits\")\n\n# Find common hits across conditions\ncommon_hits = set(all_results['Drug_A']['hits'].index)\nfor comp in ['Drug_B', 'Combination']:\n    common_hits &= set(all_results[comp]['hits'].index)\n\nprint(f\"\\nCommon hits across all conditions: {len(common_hits)}\")\n\n# Compare LFC correlations between conditions\nimport matplotlib.pyplot as plt\n\nlfc_drugA = all_results['Drug_A']['lfc']\nlfc_drugB = all_results['Drug_B']['lfc']\n\ncorrelation = lfc_drugA.corr(lfc_drugB)\nprint(f\"\\nCorrelation between Drug A and Drug B: {correlation:.3f}\")\n```\n\n**Multi-Condition Analysis:**\n\n| Comparison Type | Question Addressed | Interpretation |\n|----------------|-------------------|----------------|\n| **Drug vs Control** | What genes mediate drug response? | Resistance\/sensitivity mechanisms |\n| **Condition A vs B** | Differential genetic dependencies | Context-specific essentiality |\n| **Time-course** | How does genetic dependency change? | Temporal dynamics |\n| **Cell line comparison** | Cell-type specific dependencies | Lineage-specific vulnerabilities |\n\n**Best Practices:**\n- \u2705 **Use same control** across multiple treatments for comparability\n- \u2705 **Check correlation** between replicates and conditions\n- \u2705 **Look for condition-specific hits** for mechanism insights\n- \u2705 **Validate common hits** as robust findings\n\n**Common Issues and Solutions:**\n\n**Issue: High variability between replicates**\n- Symptom: Low correlation between replicates of same condition\n- Solution: Increase replicate number; check for technical batch effects\n\n---\n\n## Complete Workflow Example\n\n**From count matrix to hit identification:**\n\n```text\n\n# Step 1: Run QC assessment\npython scripts\/main.py --counts sgrna_counts.txt --samples samples.csv --output qc_results\n\n# Step 2: Perform differential analysis\npython scripts\/main.py \\\n  --counts sgrna_counts.txt \\\n  --samples samples.csv \\\n  --control \"Ctrl_1,Ctrl_2,Ctrl_3\" \\\n  --treatment \"Drug_1,Drug_2,Drug_3\" \\\n  --output drug_screen \\\n  --fdr 0.05\n\n# Step 3: Review results\ncat drug_screen_sgrna_results.csv | head -20\n```\n\n**Python API Usage:**\n\n```python\nfrom scripts.main import CRISPRScreenAnalyzer\nimport pandas as pd\n\ndef analyze_crispr_screen(\n    counts_file: str,\n    samplesheet: str,\n    control_samples: list,\n    treatment_samples: list,\n    output_prefix: str,\n    fdr_threshold: float = 0.05,\n    lfc_threshold: float = 1.0\n) -> dict:\n    \"\"\"\n    Complete CRISPR screen analysis workflow.\n    \"\"\"\n    # Initialize analyzer\n    analyzer = CRISPRScreenAnalyzer(counts_file, samplesheet)\n    \n    print(f\"Loaded {analyzer.counts.shape[0]} sgRNAs x {analyzer.counts.shape[1]} samples\")\n    \n    # Quality control\n    print(\"\\n1. Quality Control Assessment...\")\n    qc = analyzer.qc_metrics()\n    \n    # Check QC status\n    qc_pass = all(gini < 0.4 for gini in qc['gini_index'].values())\n    if not qc_pass:\n        print(\"\u26a0\ufe0f  Warning: High Gini index detected - check library representation\")\n    \n    # Calculate fold changes\n    print(\"\\n2. Calculating log fold changes...\")\n    lfc = analyzer.calculate_lfc(control_samples, treatment_samples)\n    \n    # Statistical analysis\n    print(\"\\n3. Running RRA analysis...\")\n    results = analyzer.rra_analysis(lfc, fdr_threshold)\n    \n    # Identify hits\n    print(\"\\n4. Identifying significant hits...\")\n    hits = analyzer.identify_hits(results, fdr_threshold, lfc_threshold)\n    \n    # Categorize hits\n    depletions = hits[hits['lfc'] < 0]\n    enrichments = hits[hits['lfc'] > 0]\n    \n    # Save results\n    results.to_csv(f\"{output_prefix}_sgrna_results.csv\", index=False)\n    hits.to_csv(f\"{output_prefix}_hits.csv\", index=False)\n    \n    # Compile summary\n    summary = {\n        'total_sgrnas': len(results),\n        'significant_hits': len(hits),\n        'depletions': len(depletions),\n        'enrichments': len(enrichments),\n        'qc_metrics': qc,\n        'output_files': {\n            'full_results': f\"{output_prefix}_sgrna_results.csv\",\n            'hits': f\"{output_prefix}_hits.csv\"\n        }\n    }\n    \n    # Print summary\n    print(f\"\\n{'='*60}\")\n    print(\"ANALYSIS SUMMARY\")\n    print(f\"{'='*60}\")\n    print(f\"Total sgRNAs: {summary['total_sgrnas']}\")\n    print(f\"Significant hits (FDR<{fdr_threshold}, |LFC|>{lfc_threshold}): {summary['significant_hits']}\")\n    print(f\"  - Depletions: {summary['depletions']}\")\n    print(f\"  - Enrichments: {summary['enrichments']}\")\n    print(f\"\\nResults saved:\")\n    print(f\"  - {summary['output_files']['full_results']}\")\n    print(f\"  - {summary['output_files']['hits']}\")\n    print(f\"{'='*60}\")\n    \n    return summary\n\n# Execute workflow\nresults = analyze_crispr_screen(\n    counts_file=\"sgrna_counts.txt\",\n    samplesheet=\"samples.csv\",\n    control_samples=[\"Ctrl_1\", \"Ctrl_2\", \"Ctrl_3\"],\n    treatment_samples=[\"Drug_1\", \"Drug_2\", \"Drug_3\"],\n    output_prefix=\"drug_resistance_screen\",\n    fdr_threshold=0.05,\n    lfc_threshold=1.0\n)\n```\n\n**Expected Output Files:**\n\n```\nanalysis_results\/\n\u251c\u2500\u2500 drug_resistance_screen_sgrna_results.csv  # All sgRNA statistics\n\u251c\u2500\u2500 drug_resistance_screen_hits.csv          # Significant hits only\n\u2514\u2500\u2500 qc_report.txt                            # Quality control summary\n```\n\n---\n\n## Common Patterns\n\n### Pattern 1: Viability Screen (Essential Gene Identification)\n\n**Scenario**: Identify genes essential for cell survival by comparing T0 (transduction) vs T14 (14 days post-transduction).\n\n```json\n{\n  \"screen_type\": \"viability\",\n  \"comparison\": \"T14_vs_T0\",\n  \"expected_depletions\": \"Essential genes (ribosomal, splicing, etc.)\",\n  \"expected_enrichments\": \"None (unless suppressors of toxicity)\",\n  \"positive_controls\": [\"RPL30\", \"RPS19\", \"PCNA\"],\n  \"negative_controls\": [\"LacZ\", \"NTC\"],\n  \"analysis_parameters\": {\n    \"fdr_threshold\": 0.05,\n    \"lfc_threshold\": 1.0,\n    \"gene_aggregation\": \"mean\"\n  }\n}\n```\n\n**Workflow:**\n1. Collect cells at T0 (immediately after transduction)\n2. Maintain parallel culture for 14 days (T14)\n3. Harvest T14 cells when control cells reach confluence\n4. Sequence both T0 and T14 samples\n5. Analyze depletion of sgRNAs at T14 relative to T0\n6. Identify genes with significantly depleted sgRNAs (essential genes)\n7. Validate top hits with individual sgRNA validation\n\n**Output Example:**\n```\nEssential Gene Screen Results:\n  Total sgRNAs tested: 65,383\n  Significantly depleted: 3,847 sgRNAs (FDR<0.05, LFC<-1)\n  \nTop Essential Genes:\n  RPL30: mean LFC = -4.2, 5\/5 sgRNAs significant\n  RPS19: mean LFC = -3.8, 4\/5 sgRNAs significant\n  PCNA:  mean LFC = -3.5, 5\/5 sgRNAs significant\n  \nQC Metrics:\n  Gini index: 0.25 (excellent library representation)\n  Read depth: 25M per sample (sufficient)\n```\n\n### Pattern 2: Drug Resistance Screen\n\n**Scenario**: Identify genes whose knockout confers resistance to a cytotoxic drug (e.g., vemurafenib in BRAF-mutant melanoma).\n\n```json\n{\n  \"screen_type\": \"drug_resistance\",\n  \"treatment\": \"vemurafenib (2 \u03bcM)\",\n  \"control\": \"DMSO\",\n  \"duration\": \"14 days\",\n  \"expected_depletions\": \"Drug sensitizers, synthetic lethal\",\n  \"expected_enrichments\": \"Drug resistance genes\",\n  \"known_resistance_genes\": [\"NRAS\", \"MAP2K1\", \"MEK1\"],\n  \"analysis_parameters\": {\n    \"fdr_threshold\": 0.05,\n    \"lfc_threshold\": 1.0,\n    \"focus\": \"enrichments\"\n  }\n}\n```\n\n**Workflow:**\n1. Transduce cells with genome-wide sgRNA library\n2. Split into drug-treated and DMSO control groups\n3. Treat with drug at appropriate concentration (IC70-IC90)\n4. Maintain for 2-3 weeks until control cells die\n5. Harvest resistant colonies from drug-treated group\n6. Compare sgRNA representation: Drug vs DMSO\n7. Identify enriched sgRNAs (resistance genes)\n8. Validate resistance with individual sgRNAs and drug dose-response\n\n**Output Example:**\n```\nDrug Resistance Screen Results (Vemurafenib):\n  Significant enrichments: 156 sgRNAs (FDR<0.05, LFC>1)\n  \nTop Resistance Genes:\n  NRAS:   mean LFC = +2.8, 4\/5 sgRNAs enriched\n  MAP2K1: mean LFC = +2.5, 5\/5 sgRNAs enriched\n  MED12:  mean LFC = +2.1, 3\/5 sgRNAs enriched\n  \nValidation recommended:\n  - Test individual sgRNAs in dose-response assay\n  - Confirm resistance phenotype with cell viability assay\n  - Check for known resistance mechanisms\n```\n\n### Pattern 3: Drug Sensitivity\/Synthetic Lethality Screen\n\n**Scenario**: Identify genes that, when knocked out, sensitize cells to drug treatment (synthetic lethal interactions).\n\n```json\n{\n  \"screen_type\": \"drug_sensitivity\",\n  \"treatment\": \"PARP inhibitor (olaparib)\",\n  \"control\": \"DMSO\",\n  \"cell_line\": \"BRCA1-mutant ovarian cancer\",\n  \"expected_depletions\": \"DNA repair genes (synthetic lethal)\",\n  \"expected_enrichments\": \"Drug resistance mechanisms\",\n  \"known_synthetic_lethal\": [\"PARP1\", \"BRCA2\", \"PALB2\"],\n  \"analysis_parameters\": {\n    \"fdr_threshold\": 0.05,\n    \"lfc_threshold\": 1.0,\n    \"focus\": \"depletions\"\n  }\n}\n```\n\n**Workflow:**\n1. Transduce cells with sgRNA library\n2. Treat with sub-lethal drug concentration (IC30)\n3. Maintain for 2 weeks under drug selection\n4. Compare sgRNA representation: Drug-treated vs control\n5. Identify depleted sgRNAs (synthetic lethal\/sensitizer genes)\n6. Validate with individual sgRNAs and combination assays\n7. Compare with genetic dependency maps (DepMap)\n\n**Output Example:**\n```\nSynthetic Lethality Screen (Olaparib in BRCA1-mutant):\n  Significant depletions: 234 sgRNAs (FDR<0.05, LFC<-1)\n  \nTop Synthetic Lethal Hits:\n  BRCA2:   mean LFC = -3.2, 5\/5 sgRNAs depleted\n  PALB2:   mean LFC = -2.8, 4\/5 sgRNAs depleted\n  RAD51C:  mean LFC = -2.5, 5\/5 sgRNAs depleted\n  \nBiological Interpretation:\n  - Strong enrichment of homologous recombination genes\n  - Consistent with known synthetic lethal interactions\n  - Potential combination therapy targets identified\n```\n\n### Pattern 4: Comparative Screen (Cell Line vs Cell Line)\n\n**Scenario**: Compare genetic dependencies between two cell lines to identify lineage-specific vulnerabilities.\n\n```json\n{\n  \"screen_type\": \"comparative\",\n  \"comparison\": \"Melanoma_vs_Lung_cancer\",\n  \"cell_lines\": [\"A375\", \"SKMEL28\", \"A549\", \"H1299\"],\n  \"analysis_type\": \"differential_essentiality\",\n  \"expected_lineage_specific\": {\n    \"melanoma\": [\"MITF\", \"SOX10\", \"TYR\"],\n    \"lung\": [\"NKX2-1\", \"TP63\"]\n  },\n  \"analysis_parameters\": {\n    \"fdr_threshold\": 0.05,\n    \"lfc_threshold\": 1.0,\n    \"replicate_requirement\": 2\n  }\n}\n```\n\n**Workflow:**\n1. Perform viability screens in multiple cell lines in parallel\n2. Normalize each screen independently\n3. Compare gene-level essentiality scores across lines\n4. Identify genes essential in one lineage but not another\n5. Validate lineage-specific dependencies\n6. Explore therapeutic relevance (tumor-type specific targets)\n\n**Output Example:**\n```\nComparative Screen: Melanoma vs Lung Cancer\n  Melanoma-specific essential: 127 genes\n  Lung-specific essential: 203 genes\n  Common essential: 1,847 genes\n  \nTop Melanoma-Specific Dependencies:\n  MITF:   LFC diff = -4.5 (essential in melanoma, not lung)\n  SOX10:  LFC diff = -3.8\n  TYR:    LFC diff = -3.2\n  \nTop Lung-Specific Dependencies:\n  NKX2-1: LFC diff = -3.9\n  TP63:   LFC diff = -3.1\n  \nTherapeutic Implications:\n  - Lineage-specific targets identified\n  - Potential for tumor-type selective therapy\n```\n\n---\n\n## Quality Checklist\n\n**Pre-Analysis Checks:**\n- [ ] **CRITICAL**: Verify library composition matches expected sgRNA list\n- [ ] Check sequencing depth (>10M reads per sample recommended)\n- [ ] Confirm sample annotations match count matrix columns\n- [ ] Verify control and treatment sample assignments are correct\n- [ ] Check for batch effects (different sequencing runs, library preps)\n- [ ] Review positive control performance (known essential genes)\n- [ ] Confirm negative controls show no significant effects\n- [ ] Validate replicate consistency (correlation >0.7 expected)\n\n**During Analysis:**\n- [ ] Calculate and review QC metrics (Gini, read depth, dropout)\n- [ ] **CRITICAL**: Check Gini index <0.4 for library quality\n- [ ] Examine LFC distribution for normality and outliers\n- [ ] Verify positive controls are significantly depleted (viability screens)\n- [ ] Check for batch effects using PCA or correlation heatmaps\n- [ ] Apply appropriate statistical thresholds (FDR < 0.05 standard)\n- [ ] Require multiple sgRNAs per gene for hit calling (\u22652 recommended)\n- [ ] Compare hit lists with published data for similar screens\n\n**Post-Analysis Verification:**\n- [ ] **CRITICAL**: Validate top hits show concordance across sgRNAs\n- [ ] Check known positive controls are recovered\n- [ ] Assess negative control performance (should not be significant)\n- [ ] Compare replicate correlation for hits vs non-hits\n- [ ] Review hit gene functions for biological plausibility\n- [ ] Check for potential off-target effects (seed sequence analysis)\n- [ ] Verify hit numbers are reasonable (10s-100s, not 1000s)\n- [ ] Generate visualization (MA plots, volcano plots, heatmaps)\n\n**Before Validation or Publication:**\n- [ ] **CRITICAL**: Validate top 5-10 hits with individual sgRNAs\n- [ ] Perform rescue experiments to confirm on-target effects\n- [ ] Compare with orthogonal datasets (DepMap, published screens)\n- [ ] Check for cell line-specific vs pan-essential classification\n- [ ] Assess therapeutic relevance of identified hits\n- [ ] Plan secondary screens if primary screen quality issues found\n- [ ] Document all parameters and thresholds used\n- [ ] Prepare data for public deposition (if applicable)\n\n---\n\n## Common Pitfalls\n\n**Experimental Design Issues:**\n- \u274c **Insufficient sequencing depth** \u2192 Poor statistical power, missed hits\n  - \u2705 Minimum 10M reads per sample; 20M+ for complex libraries\n  \n- \u274c **Library bottleneck** \u2192 Gini index >0.4, skewed representation\n  - \u2705 Maintain MOI <0.3; use sufficient cell numbers (500-1000x library coverage)\n  \n- \u274c **Inadequate replicates** \u2192 High variance, irreproducible results\n  - \u2705 Use \u22653 biological replicates per condition\n  \n- \u274c **Wrong time point** \u2192 Too early (no selection) or too late (extensive dropout)\n  - \u2705 Optimize time point based on doubling time and selection pressure\n\n**Analysis Issues:**\n- \u274c **Ignoring QC metrics** \u2192 Analyzing poor quality data\n  - \u2705 Always review Gini index, read depth, and dropout before analysis\n  \n- \u274c **Incorrect sample assignment** \u2192 Control\/treatment mix-up\n  - \u2705 Double-check sample annotation file; validate with positive controls\n  \n- \u274c **Single sgRNA hits** \u2192 Potential off-target effects\n  - \u2705 Require \u22652 significant sgRNAs per gene; check concordance\n  \n- \u274c **Over-reliance on p-values** \u2192 Many false positives with large library\n  - \u2705 Use FDR correction; add LFC threshold; validate experimentally\n\n**Interpretation Issues:**\n- \u274c **Ignoring cell number effects** \u2192 Different growth rates confound results\n  - \u2705 Normalize for cell doublings; use appropriate controls\n  \n- \u274c **Off-target effects dominating** \u2192 False positive hits\n  - \u2705 Use improved libraries (e.g., Brunello, Brie); validate with rescue\n  \n- \u274c **Pan-essential vs selective** \u2192 Misclassifying broadly essential genes\n  - \u2705 Compare with DepMap data; use differential analysis for specificity\n  \n- \u274c **Not validating hits** \u2192 Publishing false positives\n  - \u2705 Validate top hits with individual sgRNAs; perform rescue experiments\n\n**Technical Issues:**\n- \u274c **Batch effects** \u2192 Confounding by library prep or sequencing batch\n  - \u2705 Randomize samples across batches; include batch in statistical model\n  \n- \u274c **Contamination** \u2192 Cross-sample contamination affects quantification\n  - \u2705 Use unique molecular identifiers (UMIs); check for index hopping\n  \n- \u274c **Reference genome mismatch** \u2192 sgRNAs not mapping correctly\n  - \u2705 Use same genome version as library design; check sgRNA sequences\n  \n- \u274c **Incomplete annotation** \u2192 sgRNAs missing gene mapping\n  - \u2705 Verify library annotation file is complete and current\n\n---\n\n## Troubleshooting\n\n**Problem: No significant hits despite strong biological effect**\n- Symptoms: Clear phenotype but no FDR-significant sgRNAs\n- Causes:\n  - High variance between replicates\n  - Insufficient sequencing depth\n  - Weak effect sizes\n  - Stringent statistical thresholds\n- Solutions:\n  - Increase replicate number\n  - Increase sequencing depth\n  - Use more permissive FDR threshold (0.1)\n  - Consider gene-level aggregation\n\n**Problem: Too many significant hits (1000s)**\n- Symptoms: Excessive number of hits, many likely false positives\n- Causes:\n  - Low variance (overdispersion underestimated)\n  - Strong selection pressure\n  - Library quality issues\n  - Noisy data\n- Solutions:\n  - Use more stringent FDR threshold (0.01)\n  - Increase LFC threshold (1.5 or 2.0)\n  - Filter by sgRNA concordance\n  - Review QC metrics and repeat if poor quality\n\n**Problem: High Gini index (>0.4)**\n- Symptoms: Library representation highly skewed\n- Causes:\n  - Library bottleneck at transduction\n  - Insufficient cell numbers\n  - High MOI leading to multiple integrations\n- Solutions:\n  - Use lower MOI (<0.3)\n  - Increase cell numbers (500-1000x library size)\n  - Improve transduction efficiency\n  - Consider repeating screen\n\n**Problem: Known essential genes not identified**\n- Symptoms: Positive controls (RPL30, RPS19) not significantly depleted\n- Causes:\n  - Insufficient selection time\n  - Library quality issues\n  - Analysis errors\n- Solutions:\n  - Extend time point for viability screens\n  - Check library composition and representation\n  - Verify analysis parameters (control vs treatment assignment)\n\n**Problem: Discordant sgRNAs for same gene**\n- Symptoms: Only 1-2 of 5 sgRNAs significant for hit genes\n- Causes:\n  - Off-target effects\n  - Variable sgRNA efficiency\n  - Library design issues\n- Solutions:\n  - Require \u22653 significant sgRNAs for gene-level hits\n  - Check sgRNA sequences for off-target potential\n  - Use improved second-generation libraries\n  - Validate with independent sgRNAs\n\n**Problem: Batch effects between replicates**\n- Symptoms: Low correlation between replicates of same condition\n- Causes:\n  - Different library prep batches\n  - Different sequencing runs\n  - Technical variation\n- Solutions:\n  - Include batch as covariate in analysis\n  - Use ComBat or similar batch correction\n  - Re-sequence inconsistent replicates\n  - Randomize samples across batches in future\n\n**Problem: Negative controls showing significant effects**\n- Symptoms: Non-targeting controls (NTC) or safe-targeting sgRNAs in hit list\n- Causes:\n  - Technical artifacts\n  - Random chance with large library\n  - Library design issues\n- Solutions:\n  - Review NTC performance; should not be systematically enriched\/depleted\n  - If systematic, investigate technical issues\n  - Use NTC distribution to set empirical thresholds\n\n---\n\n## References\n\nAvailable in `references\/` directory:\n\n- (No reference files currently available for this skill)\n\n**External Resources:**\n- AddGene CRISPR Libraries: https:\/\/www.addgene.org\/crispr\/libraries\/\n- DepMap Portal: https:\/\/depmap.org\/portal\/\n- MAGeCK Documentation: https:\/\/sourceforge.net\/p\/mageck\/wiki\/Home\/\n- BAGEL Algorithm: https:\/\/github.com\/hart-lab\/bagel\n- CRISPR Screen Analysis Best Practices: https:\/\/pubmed.ncbi.nlm.nih.gov\/29651053\/\n\n---\n\n## Scripts\n\nLocated in `scripts\/` directory:\n\n- `main.py` - CRISPR screen analysis engine with QC, RRA, and hit identification\n\n---\n\n## Common CRISPR Screen Types\n\n| Screen Type | Comparison | Expected Hits | Typical Duration |\n|-------------|-----------|---------------|------------------|\n| **Viability** | T14 vs T0 | Essential genes depleted | 10-14 days |\n| **Drug Resistance** | Drug vs DMSO | Resistance genes enriched | 14-21 days |\n| **Drug Sensitivity** | Drug vs DMSO | Sensitizers depleted | 14-21 days |\n| **Comparative** | Cell A vs Cell B | Lineage-specific dependencies | 10-14 days |\n| **Sensitizer** | Drug A+B vs Drug A | Combination targets | 10-14 days |\n\n## Parameters\n\n| Parameter | Type | Default | Required | Description |\n|-----------|------|---------|----------|-------------|\n| `--counts`, `-c` | string | - | Yes | sgRNA count matrix file |\n| `--samples`, `-s` | string | - | Yes | Sample annotation file |\n| `--control` | string | - | No | Control samples (comma-separated) |\n| `--treatment`, `-t` | string | - | No | Treatment samples (comma-separated) |\n| `--output`, `-o` | string | - | No | Output directory |\n| `--fdr` | float | 0.05 | No | FDR threshold |\n\n## Usage\n\n### Basic Usage\n\n```text\n\n# Analyze CRISPR screen data\npython scripts\/main.py --counts sgrna_counts.txt --samples samplesheet.csv\n\n# With specific control and treatment\npython scripts\/main.py --counts counts.txt --samples samples.csv --control \"Ctrl1,Ctrl2\" --treatment \"Treat1,Treat2\"\n\n# Custom FDR threshold\npython scripts\/main.py --counts counts.txt --samples samples.csv --fdr 0.01 --output .\/results\n```\n\n## Risk Assessment\n\n| Risk Indicator | Assessment | Level |\n|----------------|------------|-------|\n| Code Execution | Python script executed locally | Low |\n| Network Access | No external API calls | Low |\n| File System Access | Read count files, write results | Low |\n| Data Exposure | Processes genomic screening data | Medium |\n| PHI Risk | May contain cell line genetic info | Low |\n\n## Security Checklist\n\n- [x] No hardcoded credentials or API keys\n- [x] No unauthorized file system access\n- [x] Input validation for file paths\n- [x] Output directory restricted\n- [x] Error messages sanitized\n- [x] Script execution in sandboxed environment\n\n## Prerequisites\n\n```text\n\n# Python 3.7+\nnumpy\npandas\nscipy\n```\n\n## Evaluation Criteria\n\n### Success Metrics\n- [x] Successfully loads sgRNA count matrices\n- [x] Calculates QC metrics (Gini index, zero counts)\n- [x] Performs RRA analysis\n- [x] Identifies significant hits with FDR control\n\n### Test Cases\n1. **Basic Analysis**: Count matrix + samplesheet \u2192 QC metrics + hit list\n2. **RRA Analysis**: Control vs Treatment \u2192 Ranked gene list with p-values\n3. **QC Metrics**: Count data \u2192 Gini scores, zero sgRNA counts\n\n## Lifecycle Status\n\n- **Current Stage**: Active\n- **Next Review Date**: 2026-03-09\n- **Known Issues**: None\n- **Planned Improvements**:\n  - Add MAGeCK integration\n  - Support for multiple analysis methods\n  - Enhanced visualization\n\n---\n\n**Last Updated**: 2026-02-09  \n**Skill ID**: 183  \n**Version**: 2.0 (K-Dense Standard)\n\n## Output Requirements\n\nEvery final response should make these items explicit when they are relevant:\n\n- Objective or requested deliverable\n- Inputs used and assumptions introduced\n- Workflow or decision path\n- Core result, recommendation, or artifact\n- Constraints, risks, caveats, or validation needs\n- Unresolved items and next-step checks\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If `scripts\/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `crispr-screen-analyzer` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `crispr-screen-analyzer` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\n\n## Inputs to Collect\n\n- Required inputs: the user goal, the primary data or source file, and the requested output format.\n- Optional inputs: output directory, formatting preferences, and validation constraints.\n- If a required input is unavailable, return a short clarification request before continuing.\n\n## Output Contract\n\n- Return a short summary, the main deliverables, and any assumptions that materially affect interpretation.\n- If execution is partial, label what succeeded, what failed, and the next safe recovery step.\n- Keep the final answer within the documented scope of the skill.\n\n## Validation and Safety Rules\n\n- Validate identifiers, file paths, and user-provided parameters before execution.\n- Do not fabricate results, metrics, citations, or downstream conclusions.\n- Use safe fallback behavior when dependencies, credentials, or required inputs are missing.\n- Surface any execution failure with a concise diagnosis and recovery path.\n","use_cases":["Identify essential genes from pooled CRISPR screening data","Detect drug resistance\/sensitivity candidates using CRISPR screens","Perform quality control assessment for CRISPR experiments"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/crispr-screen-analyzer\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T11:18:05.000000Z","updated_at":"2026-11-24T07:14:40.000000Z","seo_title":"CRISPR Screen Data Analysis Tool","seo_description":"Analyze CRISPR screening data to identify essential genes and drug resistance candidates. Supports quality control, RRA analysis, and hit calling for functional genomics.","seo_keywords":["CRISPR screen analysis","gene essentiality analysis","drug resistance screening","RRA statistical analysis","CRISPR quality control"]}}