mageck
Helps your agent analyze CRISPR genetic sequencing data. It identifies important genes and assesses the quality of gene libraries.
What it does
This tool analyzes data from genetic experiments called 'CRISPR screens'. It checks data quality, compares different conditions, and identifies which genes are important for cell growth or survival.
When to use it
- ✓When you have sequencing data from a CRISPR screen experiment.
- ✓To compare how different genes affect cells under certain conditions.
- ✓To check if the gene library used in the experiment is correct.
Example of what to ask your AI
“Analyze my CRISPR screen data using the library 'my_lib.tsv' and FASTQ files c1.fastq.gz, c2.fastq.gz, t1.fastq.gz, t2.fastq.gz, comparing controls c1, c2 with treatments t1, t2.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool first counts the genetic sequences in your raw data. Then, it performs statistical tests to see which genes had a significant effect, considering data quality and the comparisons you requested.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add K-Dense-AI/scientific-agent-skills --skill mageckOr download just the file:
curl -L https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/main/skills/mageck/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
MAGeCK pooled-screen analysis
When to use
Use this skill to count existing sequencing reads against a supplied guide library or compare already-counted pooled screens. Deliver the count matrix, QC, guide and gene results, contrast provenance, and a short interpretation of enrichment/depletion. This workflow analyzes screens; it does not design guides or infer gene function from a hit alone.
Runtime
The tested source installation and external-runtime caveat are in
references/runtime.md. Verify both mageck --version and
mageck test --help before an analysis. The bundled Python helper is standard-library only.
MAGeCK itself also needs NumPy, SciPy, and the RRA binary. PDF/R reporting is optional and not
needed by the helper.
The official release directory still lists 0.5.9.5 as its latest MAGeCK release. Upstream now links the separate MAGeCK2 project; these commands and the helper target MAGeCK 0.5.9.5, not an interchangeable MAGeCK2 installation. This is a local CLI workflow with no service API or authentication.
Workflow
- Establish the library version, perturbation modality, sample names, selection direction, biological replicates, baseline material, time point, and batch. Separate sequencing lanes from independent biological replicates. A plasmid baseline and a cell day-zero baseline answer different questions. Require an explicit treatment/control contrast; the helper never silently assigns all unused samples to the control group.
- Validate a headerless TSV library containing guide ID, DNA sequence, gene. IDs and
sequences must be unique. The helper requires a count-table header beginning
sgRNA,Gene, followed by unique nonnumeric sample names such asc1. MAGeCK can interpret numeric names as column indices or count values; rename them before analysis. Guide/gene IDs must have no whitespace. The helper rejects ambiguous sequences and any count/library ID or gene mismatch; resolve intentional multi-target guides explicitly upstream. These are deliberate helper restrictions; native MAGeCK also accepts other input variants. - For FASTQ, inspect read structure and known guide sequences to establish trimming and
orientation. Use MAGeCK
count, with one space-separated argument per biological sample; comma-join lanes only when they are technical replicates of that same sample. Preserve unmapped-read and count-summary evidence when mapping is poor. A zero-count guide remains in the library; do not drop it to improve QC. - Run QC before statistical testing. Review library representation, median reads per guide, zero fractions, Gini coefficients, and within-condition replicate correlations. The helper's 10% zero and 0.8 correlation flags are review prompts, not universal acceptance thresholds. High correlation can coexist with systematic artifacts. Read depth is not experimental cell coverage. The helper uses a raw-count population Gini; MAGeCK's native count-summary Gini uses log(count + 1) with a finite-sample correction. Do not compare their values or thresholds as the same statistic.
- Choose normalization based on the screen. Median normalization assumes most guides are
stable. For a strong global shift, supplied validated negative-control guides may support
--normalization control. These must be guide IDs, one per line; a gene list is not interchangeable. Biological control samples and negative-control guides serve different roles. At least two controls must be present, and every guide assigned to a control gene must be designated a control. Supplying--control-guidesalso changes the RRA null distribution, even with median normalization. Record their origin and check their count distribution. MAGeCK 0.5.9.5 switches median normalization to total-count scaling for a zero median or more than 45% zero guides in any selected sample; for control normalization it evaluates the control-guide subset. Check the report's applied method, size factors, and warnings. - Use
testfor a two-group comparison.--pairedrequires both lists in corresponding biological order and equal length; matching lengths alone do not establish pairing. The helper reports genes at the requested FDR in both directions and retains full rankings.
…
FAQ
What is a 'CRISPR screen'?
It's an experiment that uses CRISPR technology to turn off or turn on genes in many cells simultaneously, allowing the study of hundreds or thousands of genes' functions quickly.
What are 'FASTQ reads'?
These are the raw data generated by DNA sequencing machines, containing the DNA sequences that were read.
What does 'enrichment' or 'depletion' mean?
Enrichment means cells with a certain gene had an advantage and multiplied more. Depletion means cells with that gene were harmed and decreased in number.
Details
Original description by the author
Analyzes pooled CRISPR screen FASTQ reads and guide-count matrices with MAGeCK, validates guide libraries and contrasts, measures replicate and library QC, and produces gene hit rankings with effect sizes and FDR. Use for new knockout, CRISPRi, or CRISPRa screen analysis, enrichment or depletion contrasts, and MAGeCK count/test workflows; existing public dependency-score lookup belongs to DepMap.
Popularity
- GitHub stars
- 51k
- Ranking position
- #1898
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
13c-metabolic-flux
Estimates metabolic fluxes using carbon-13 isotope tracing data. It is useful for analyzing cellular metabolism and biochemical pathways.
K-Dense-AI/scientific-agent-skills
adaptyv
Designs protein characterization experiments using the Adaptyv API. It helps estimate costs, submit sequences, and monitor lab results.
K-Dense-AI/scientific-agent-skills
aeon
Performs machine learning tasks on time series data. It is useful for classifying, forecasting, detecting anomalies, and finding patterns in sequential data.
K-Dense-AI/scientific-agent-skills
alphagenome
Looks up precomputed genomic effects for genetic variants. It provides scores and explanations to understand the impact of variants on the genome.
K-Dense-AI/scientific-agent-skills
Similar skills
pytorch-patterns
Helps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
affaan-m/ECC
evm-token-decimals
Helps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
affaan-m/ECC
knowledge-agent
Creates and queries knowledge bases using AI. It allows asking questions about past work or compiling expertise on a topic.
thedotmack/claude-mem