[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DKPRVF1M6QZBW9CQ06ZXRJ":3,"skill-same:01M7DKPRVF1M6QZBW9CQ06ZXRJ":68},{"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":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M7DKPRVF1M6QZBW9CQ06ZXRJ","compare-perturbations-to-control",null,"Per-perturbation differential expression against one shared non-targeting control in a pooled CRISPR screen with single-cell readout (Perturb-seq, CROP-seq, CRISPRi or CRISPRa) with scanpy rank_genes_groups (Wilcoxon, explicit reference), from an AnnData with a guide or perturbation column to one DE table per perturbation, a summary table with a target self-knockdown positive control, and the genes shared across perturbations. Use when every guide or target gene must be compared with the same control cells (the AiScientist run_de tool does per-cluster one-vs-rest and does not do this), when collapsing guides to target genes, or when checking which guides lowered their own target.","lijinbio\u002Faiscientist-skills","lijinbio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16247242?v=4","01M7DKPQK7Q6V7QXAAPV51Z89N","Jin Li","01M7DKPQM0NMDN3M6XH7Z9AAKM",0,"MIT","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrispr-screens\u002Fcompare-perturbations-to-control\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: compare-perturbations-to-control\ndescription: Per-perturbation differential expression against one shared non-targeting control in a pooled CRISPR screen with single-cell readout (Perturb-seq, CROP-seq, CRISPRi or CRISPRa) with scanpy rank_genes_groups (Wilcoxon, explicit reference), from an AnnData with a guide or perturbation column to one DE table per perturbation, a summary table with a target self-knockdown positive control, and the genes shared across perturbations. Use when every guide or target gene must be compared with the same control cells (the AiScientist run_de tool does per-cluster one-vs-rest and does not do this), when collapsing guides to target genes, or when checking which guides lowered their own target.\nlicense: MIT\ncompatibility: Python 3.12+ with scanpy and anndata (conda or pip). No GPU, no scheduler.\nmetadata:\n  category: crispr-screens\n  version: \"1.0.0\"\n  status: community\n  author: \"Yijun Sun\"\n  aliases: \"perturbation_de_vs_control\"\n  tags: \"crispr, perturb-seq, crop-seq, scrna-seq, differential-expression, scanpy, wilcoxon\"\n  tested-with: \"scanpy 1.12.1, anndata 0.12.16, pandas 2.3.3, numpy 2.4.6, scipy 1.17.1, Python 3.13.9\"\n  compute: \"1 CPU, under 0.5 GB RAM, seconds for 270 cells x 49 genes (4 perturbations)\"\n  requires-gpu: \"false\"\n  scheduler: \"none\"\n  requires-network: \"install\"\n  requires-secrets: \"none\"\n---\n\n# Compare each perturbation with the non-targeting control\n\n`scripts\u002Freference.py` is the core of a Perturb-seq report. For each perturbation it compares\nthat perturbation's cells with the one non-targeting control group, using\n`sc.tl.rank_genes_groups(..., groups=[pert], reference=CONTROL, method=\"wilcoxon\")` in a loop over\nthe perturbation column. Unlike a two-group condition study, many perturbations share a single\nreference, so a per-cluster one-vs-rest test (AiScientist's `run_de`) does not answer the\nquestion. The script writes one DE table per perturbation, a summary table with a\nself-knockdown positive control, and the genes that move the same way in two or more\nperturbations, and prints a JSON summary.\n\nThe most likely mistake is running it on every guide. In a pooled screen most guides are silent,\nand testing them all spends power and fills the report with noise. Rank the perturbations first\n(the `rank-perturbations-by-edistance` skill) and set `ONLY_PERTURBATIONS` to its hits.\n\nTested on synthetic data only (`tests\u002F`: 270 cells, 49 genes, a non-targeting control of 80\ncells; one knockout that loses its own target and switches on a 5-gene program, one silent\nguide, one guide with 10 cells, one guide that switches on the same program without losing its\ntarget; and a guide-level variant with two 20-cell guides of one gene) with scanpy 1.12.1,\nanndata 0.12.16, pandas 2.3.3, numpy 2.4.6, scipy 1.17.1 and Python 3.13.9. It has been the\nAiScientist template for this step of the Perturb-seq pipeline; no real-screen run is recorded\nhere.\n\n## 1. Environment setup\n\n```bash\nmamba create -y -n scanpy_1.12 -c conda-forge python=3.13 scanpy=1.12.1 anndata=0.12.16\nsource \"$(conda info --base)\u002Fetc\u002Fprofile.d\u002Fconda.sh\"\nconda activate scanpy_1.12\npython -c \"import scanpy; print(scanpy.__version__)\"\n```\n\n`pip install scanpy==1.12.1 anndata==0.12.16` in a Python 3.12+ venv works too. Inside an\nAiScientist run, the analysis image already has scanpy.\n\n## 2. Prepare inputs\n\n- An AnnData file with **log-normalized** expression in `X` (the Wilcoxon fold changes assume\n  log1p data) and a guide or perturbation label per cell in an `obs` column. The script reads\n  `adata_qc.h5ad` from `$AISCIENTIST_WORK` (it keeps the original `obs` labels), else the file\n  named by `$AISCIENTIST_DATASET`.\n- `$AISCIENTIST_ARTIFACTS` is where the tables go (`tables\u002F` is created).\n\nFind the screen design in the data before configuring:\n\n1. **The perturbation column**: a usually high-cardinality `obs` column naming the guide or\n   target per cell (`perturbation`, `guide`, `gRNA`, `sgRNA`, `target`, `target_gene`,\n   `gene_target`, `knockout`, `feature_call`). Dozens or hundreds of levels are what separate a\n   screen from a two-group condition dataset.\n2. **The non-targeting control level**: `NT`, `NTC`, `non-targeting`, `control`, `ctrl`,\n   `sgLacZ`, `sgGFP`, `sgScramble`, `scramble`, `unperturbed`, `none`. State which level you\n   chose. If it is genuinely ambiguous, ask rather than guess: a wrong control mis-references every\n   comparison.\n3. **Guides or targets**: with several sgRNAs per gene (`TP53_sg1`, `TP53_sg2`), concordant guides\n   of the same gene are biological replicates. Collapsing them to the target gene adds power when\n   guide-level groups are small.\n4. **No perturbation column?** If guide identity lives in a separate guide-count layer, `obsm` or\n   a feature-barcode matrix, cells must be assigned to a guide first (max-count or demultiplexing).\n   That is a separate step. Never invent a perturbation column.\n\nCount cells per perturbation and keep the control cells through QC: every comparison is against\nthem.\n\n## 3. Configure\n\nEdit the values at the top of the script:\n\n| Variable | Meaning | Default |\n| --- | --- | --- |\n| `PERT_KEY` | the `obs` column naming the guide or perturbation | `perturbation` |\n| `CONTROL` | the shared non-targeting level of `PERT_KEY` | `NT` |\n| `ONLY_PERTURBATIONS` | `None` for every non-control level, or a list (the E-distance hits) | `None` |\n| `COLLAPSE_GUIDE_TO_TARGET` | `True` maps `TP53_sg1`, `TP53-sg1`, `TP53_2`, `TP53-2` to `TP53` (strips one trailing `_` or `-`, optional `sg`, digits); the control level is left as is | `False` |\n| `MIN_CELLS` | a perturbation with fewer cells is skipped; a control with fewer stops the run | `30` |\n| `LFC` | \\|log2 fold change\\| threshold for a significant gene | `1.0` |\n| `PADJ` | adjusted p-value threshold | `0.05` |\n\nBefore collapsing, print the mapping from guide to target once. Control guides named `NT_1`,\n`NT_2` collapse into `NT`, which is usually what you want. A label without a guide suffix whose\ngene symbol itself ends in `-\u003Cn>` loses it (`NKX2-1` becomes `NKX2`), so check symbols such as\n`NKX2-1` or `KRTAP1-1`.\n\nTo use the cells left after removing escapers (the `filter-escapers-with-mixscape` skill), change\nthe checkpoint line to read `adata_mixscape.h5ad` instead of `adata_qc.h5ad`. Change the\nthresholds only with a reason, and say so in the report.\n\n## 4. Run\n\n```bash\nexport AISCIENTIST_WORK=\u002Fpath\u002Fto\u002Fwork AISCIENTIST_ARTIFACTS=\u002Fpath\u002Fto\u002Fresults\n# or, with no adata_qc.h5ad in the work directory:\nexport AISCIENTIST_DATASET=\u002Fpath\u002Fto\u002Fscreen.h5ad\npython scripts\u002Freference.py\n```\n\nIn AiScientist: read the file with `read_skill_reference`, set the values for this dataset, and\nrun it with `run_code`, which sets the variables.\n\nMemory: the AnnData is loaded once and only one two-group subset (one perturbation plus the\ncontrol) exists at a time, freed after each perturbation. Do not rewrite the loop to hold every\nsubset at once: a large screen then runs out of memory and is killed. Give large screens a job\nwith a real memory limit.\n\n## 5. Validate before using the output\n\nOutputs under `$AISCIENTIST_ARTIFACTS\u002Ftables\u002F`:\n\n| Path | Contents |\n| --- | --- |\n| `perturbation_DE\u002FDE_\u003Cperturbation>.csv` | every gene's statistics for one perturbation vs control, sorted by `pvals_adj` |\n| `perturbation_DE_summary.csv` | per perturbation: `n_cells`, `n_control`, `n_DEG`, `n_up`, `n_down`, `target_self_knockdown`, `skipped` |\n| `shared_up_across_perturbations.csv`, `shared_down_across_perturbations.csv` | genes significant in the same direction in two or more perturbations, most shared first |\n\nCheck, in this order:\n\n1. **The JSON summary**: `control`, `level` (guide or target), `n_perturbations_tested` and\n   `n_skipped_low_cells`. Every skipped perturbation is in the summary table with\n   `skipped = too_few_cells`; list them in the report.\n2. **The positive control** (`target_self_knockdown`): a working knockout or knockdown shows its\n   own target gene down. `down` passes; `NOT_down(lfc=...)` is listed in\n   `failed_self_knockdown_positive_control` and points to a mislabel or no editing. A silent\n   guide that also fails it most likely never edited. The check runs only when the label is a\n   gene symbol in `var_names`, so guide-level labels such as `TP53_sg1` give `n\u002Fa`; collapse to\n   targets to get it. Two limits: in a CRISPRa screen the target should go **up**, so read\n   `NOT_down` there as expected; and a Cas9 knockout does not always lower the transcript\n   (it depends on nonsense-mediated decay), so a `NOT_down` knockout is weaker evidence than a\n   `NOT_down` CRISPRi guide.\n3. **Each DE table**: fold changes of a few units, not tens (tens suggest raw counts in `X`).\n   Mitochondrial, ribosomal or stress genes at the top of many perturbations suggest a quality\n   difference between the perturbation's cells and the control rather than biology.\n4. **Shared genes**: programs that several perturbations move the same way are candidate shared\n   pathways or modules. They are hypotheses, not findings.\n\nThe JSON `next` hint suggests enrichment on each strong perturbation's up and down gene lists\n(AiScientist: `run_enrichment`); send gene symbols only.\n\n## Report\n\nThe perturbation column, the control level, guide or target level, `MIN_CELLS`, the thresholds,\nand every perturbation skipped for low cell count. Per tested perturbation: cell count,\n`n_DEG` (up\u002Fdown), the top genes with log fold change and adjusted p-value, never gene names\nalone, and the self-knockdown result; flag every guide that fails it. Say whether escaping cells\nwere removed first (Mixscape) or the DE ran on all guide-assigned cells (conservative, dilutes\neffects). Silent perturbations are a result, not a failure. Cells are not independent replicates,\nso the Wilcoxon p-values are optimistic; with several replicate lanes or donors, say so. Never\nfabricate a gene, fold change, pathway or perturbation, and frame the biology as hypotheses to\nvalidate.\n","# Compare each perturbation with the non-targeting control\n\n`scripts\u002Freference.py` is the core of a Perturb-seq report. For each perturbation it compares\nthat perturbation's cells with the one non-targeting control group, using\n`sc.tl.rank_genes_groups(..., groups=[pert], reference=CONTROL, method=\"wilcoxon\")` in a loop over\nthe perturbation column. Unlike a two-group condition study, many perturbations share a single\nreference, so a per-cluster one-vs-rest test (AiScientist's `run_de`) does not answer the\nquestion. The script writes one DE table per perturbation, a summary table with a\nself-knockdown positive control, and the genes that move the same way in two or more\nperturbations, and prints a JSON summary.\n\nThe most likely mistake is running it on every guide. In a pooled screen most guides are silent,\nand testing them all spends power and fills the report with noise. Rank the perturbations first\n(the `rank-perturbations-by-edistance` skill) and set `ONLY_PERTURBATIONS` to its hits.\n\nTested on synthetic data only (`tests\u002F`: 270 cells, 49 genes, a non-targeting control of 80\ncells; one knockout that loses its own target and switches on a 5-gene program, one silent\nguide, one guide with 10 cells, one guide that switches on the same program without losing its\ntarget; and a guide-level variant with two 20-cell guides of one gene) with scanpy 1.12.1,\nanndata 0.12.16, pandas 2.3.3, numpy 2.4.6, scipy 1.17.1 and Python 3.13.9. It has been the\nAiScientist template for this step of the Perturb-seq pipeline; no real-screen run is recorded\nhere.\n\n## 1. Environment setup\n\n```bash\nmamba create -y -n scanpy_1.12 -c conda-forge python=3.13 scanpy=1.12.1 anndata=0.12.16\nsource \"$(conda info --base)\u002Fetc\u002Fprofile.d\u002Fconda.sh\"\nconda activate scanpy_1.12\npython -c \"import scanpy; print(scanpy.__version__)\"\n```\n\n`pip install scanpy==1.12.1 anndata==0.12.16` in a Python 3.12+ venv works too. Inside an\nAiScientist run, the analysis image already has scanpy.\n\n## 2. Prepare inputs\n\n- An AnnData file with **log-normalized** expression in `X` (the Wilcoxon fold changes assume\n  log1p data) and a guide or perturbation label per cell in an `obs` column. The script reads\n  `adata_qc.h5ad` from `$AISCIENTIST_WORK` (it keeps the original `obs` labels), else the file\n  named by `$AISCIENTIST_DATASET`.\n- `$AISCIENTIST_ARTIFACTS` is where the tables go (`tables\u002F` is created).\n\nFind the screen design in the data before configuring:\n\n1. **The perturbation column**: a usually high-cardinality `obs` column naming the guide or\n   target per cell (`perturbation`, `guide`, `gRNA`, `sgRNA`, `target`, `target_gene`,\n   `gene_target`, `knockout`, `feature_call`). Dozens or hundreds of levels are what separate a\n   screen from a two-group condition dataset.\n2. **The non-targeting control level**: `NT`, `NTC`, `non-targeting`, `control`, `ctrl`,\n   `sgLacZ`, `sgGFP`, `sgScramble`, `scramble`, `unperturbed`, `none`. State which level you\n   chose. If it is genuinely ambiguous, ask rather than guess: a wrong control mis-references every\n   comparison.\n3. **Guides or targets**: with several sgRNAs per gene (`TP53_sg1`, `TP53_sg2`), concordant guides\n   of the same gene are biological replicates. Collapsing them to the target gene adds power when\n   guide-level groups are small.\n4. **No perturbation column?** If guide identity lives in a separate guide-count layer, `obsm` or\n   a feature-barcode matrix, cells must be assigned to a guide first (max-count or demultiplexing).\n   That is a separate step. Never invent a perturbation column.\n\nCount cells per perturbation and keep the control cells through QC: every comparison is against\nthem.\n\n## 3. Configure\n\nEdit the values at the top of the script:\n\n| Variable | Meaning | Default |\n| --- | --- | --- |\n| `PERT_KEY` | the `obs` column naming the guide or perturbation | `perturbation` |\n| `CONTROL` | the shared non-targeting level of `PERT_KEY` | `NT` |\n| `ONLY_PERTURBATIONS` | `None` for every non-control level, or a list (the E-distance hits) | `None` |\n| `COLLAPSE_GUIDE_TO_TARGET` | `True` maps `TP53_sg1`, `TP53-sg1`, `TP53_2`, `TP53-2` to `TP53` (strips one trailing `_` or `-`, optional `sg`, digits); the control level is left as is | `False` |\n| `MIN_CELLS` | a perturbation with fewer cells is skipped; a control with fewer stops the run | `30` |\n| `LFC` | \\|log2 fold change\\| threshold for a significant gene | `1.0` |\n| `PADJ` | adjusted p-value threshold | `0.05` |\n\nBefore collapsing, print the mapping from guide to target once. Control guides named `NT_1`,\n`NT_2` collapse into `NT`, which is usually what you want. A label without a guide suffix whose\ngene symbol itself ends in `-\u003Cn>` loses it (`NKX2-1` becomes `NKX2`), so check symbols such as\n`NKX2-1` or `KRTAP1-1`.\n\nTo use the cells left after removing escapers (the `filter-escapers-with-mixscape` skill), change\nthe checkpoint line to read `adata_mixscape.h5ad` instead of `adata_qc.h5ad`. Change the\nthresholds only with a reason, and say so in the report.\n\n## 4. Run\n\n```bash\nexport AISCIENTIST_WORK=\u002Fpath\u002Fto\u002Fwork AISCIENTIST_ARTIFACTS=\u002Fpath\u002Fto\u002Fresults\n# or, with no adata_qc.h5ad in the work directory:\nexport AISCIENTIST_DATASET=\u002Fpath\u002Fto\u002Fscreen.h5ad\npython scripts\u002Freference.py\n```\n\nIn AiScientist: read the file with `read_skill_reference`, set the values for this dataset, and\nrun it with `run_code`, which sets the variables.\n\nMemory: the AnnData is loaded once and only one two-group subset (one perturbation plus the\ncontrol) exists at a time, freed after each perturbation. Do not rewrite the loop to hold every\nsubset at once: a large screen then runs out of memory and is killed. Give large screens a job\nwith a real memory limit.\n\n## 5. Validate before using the output\n\nOutputs under `$AISCIENTIST_ARTIFACTS\u002Ftables\u002F`:\n\n| Path | Contents |\n| --- | --- |\n| `perturbation_DE\u002FDE_\u003Cperturbation>.csv` | every gene's statistics for one perturbation vs control, sorted by `pvals_adj` |\n| `perturbation_DE_summary.csv` | per perturbation: `n_cells`, `n_control`, `n_DEG`, `n_up`, `n_down`, `target_self_knockdown`, `skipped` |\n| `shared_up_across_perturbations.csv`, `shared_down_across_perturbations.csv` | genes significant in the same direction in two or more perturbations, most shared first |\n\nCheck, in this order:\n\n1. **The JSON summary**: `control`, `level` (guide or target), `n_perturbations_tested` and\n   `n_skipped_low_cells`. Every skipped perturbation is in the summary table with\n   `skipped = too_few_cells`; list them in the report.\n2. **The positive control** (`target_self_knockdown`): a working knockout or knockdown shows its\n   own target gene down. `down` passes; `NOT_down(lfc=...)` is listed in\n   `failed_self_knockdown_positive_control` and points to a mislabel or no editing. A silent\n   guide that also fails it most likely never edited. The check runs only when the label is a\n   gene symbol in `var_names`, so guide-level labels such as `TP53_sg1` give `n\u002Fa`; collapse to\n   targets to get it. Two limits: in a CRISPRa screen the target should go **up**, so read\n   `NOT_down` there as expected; and a Cas9 knockout does not always lower the transcript\n   (it depends on nonsense-mediated decay), so a `NOT_down` knockout is weaker evidence than a\n   `NOT_down` CRISPRi guide.\n3. **Each DE table**: fold changes of a few units, not tens (tens suggest raw counts in `X`).\n   Mitochondrial, ribosomal or stress genes at the top of many perturbations suggest a quality\n   difference between the perturbation's cells and the control rather than biology.\n4. **Shared genes**: programs that several perturbations move the same way are candidate shared\n   pathways or modules. They are hypotheses, not findings.\n\nThe JSON `next` hint suggests enrichment on each strong perturbation's up and down gene lists\n(AiScientist: `run_enrichment`); send gene symbols only.\n\n## Report\n\nThe perturbation column, the control level, guide or target level, `MIN_CELLS`, the thresholds,\nand every perturbation skipped for low cell count. Per tested perturbation: cell count,\n`n_DEG` (up\u002Fdown), the top genes with log fold change and adjusted p-value, never gene names\nalone, and the self-knockdown result; flag every guide that fails it. Say whether escaping cells\nwere removed first (Mixscape) or the DE ran on all guide-assigned cells (conservative, dilutes\neffects). Silent perturbations are a result, not a failure. Cells are not independent replicates,\nso the Wilcoxon p-values are optimistic; with several replicate lanes or donors, say so. Never\nfabricate a gene, fold change, pathway or perturbation, and frame the biology as hypotheses to\nvalidate.\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":36},{"tags":25,"author":26,"status":27,"aliases":28,"compute":29,"version":30,"category":31,"scheduler":32,"tested-with":33,"requires-gpu":34,"requires-network":35,"requires-secrets":32},"crispr, perturb-seq, crop-seq, scrna-seq, differential-expression, scanpy, wilcoxon","Yijun Sun","community","perturbation_de_vs_control","1 CPU, under 0.5 GB RAM, seconds for 270 cells x 49 genes (4 perturbations)","1.0.0","crispr-screens","none","scanpy 1.12.1, anndata 0.12.16, pandas 2.3.3, numpy 2.4.6, scipy 1.17.1, Python 3.13.9","false","install","Python 3.12+ with scanpy and anndata (conda or pip). No GPU, no scheduler.","main","5c42aa74b19348cb68aa35301eba042a737d94d4","skills\u002Fcrispr-screens\u002Fcompare-perturbations-to-control",2,"https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills","https:\u002F\u002Fgithub.com\u002Flijinbio","2026-11-14 05:44:08",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add lijinbio\u002Faiscientist-skills --skill compare-perturbations-to-control",{"tool":50,"command":51},"bunx","bunx skills add lijinbio\u002Faiscientist-skills --skill compare-perturbations-to-control",{"tool":53,"command":54},"pnpm","pnpm dlx skills add lijinbio\u002Faiscientist-skills --skill compare-perturbations-to-control","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrispr-screens\u002Fcompare-perturbations-to-control\u002FSKILL.md",true,[58,64],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Freference.py","SCRIPT","脚本",7218,"https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrispr-screens\u002Fcompare-perturbations-to-control\u002Fscripts\u002Freference.py",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"tests\u002Ftest_compare_perturbations_to_control.py",7282,"https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrispr-screens\u002Fcompare-perturbations-to-control\u002Ftests\u002Ftest_compare_perturbations_to_control.py",[69,76,83,90,97,104],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DKZPCPYM78N1R0MVAVVYKT","verb-object-with-tool","One or two sentences on what the skill does and when to use it. Name the tool, the input it takes and the output it produces, then list the situations that should trigger it (for example \"Use when setting up X, writing a Y config, or diagnosing a failed Z run\").","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Ftemplate\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DKZCJMFJJB9ZH9YGCSQHR5","write-variant-tables","Write the five standard variant-annotation result tables - consequence, impact and ClinVar-significance distributions, a ClinVar pathogenic and likely-pathogenic list, and a shortlist of rare, damaging variants not in ClinVar - plus a JSON summary, from an annotated per-variant TSV (VEP consequence and impact, SIFT, PolyPhen, max population AF, rsID, ClinVar significance), in pure Python without re-parsing the VCF or re-running VEP. Use when a study needs these tables with a different rarity cutoff, impact set or damaging-predictor rule, or when rebuilding them from an existing annotation table. In AiScientist, annotate_variants already writes the default tables, so use this only for a custom cut.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fwrite-variant-tables\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DKZ3R4E6JEJT3YB6AHXE60","rank-phenotype-differentials-with-mcp","Map clinical phenotype text to grounded HPO terms and rank a research differential through an already configured phenotype-diagnosis MCP service with LIRICAL and optional literature adjudication. Use for explicit service-based analysis while preserving negation, uncertainty and original probabilities; retain the established workflow when the service is unavailable.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Frank-phenotype-differentials-with-mcp\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7DKYS9R4F5EPCMDHSH3TEZ7","qc-vcf-callset","Judge whether a germline VCF callset is trustworthy before interpreting any variant - Ti\u002FTv, Het\u002FHom, SNP, indel and multiallelic counts, sample count and genotype call rate from bcftools stats (falling back to cyvcf2, then to a plain-Python Ti\u002FTv scan) - and flag values outside the expected human WGS or WES ranges. Writes tables\u002Fvcf_qc_summary.csv and data\u002Fvcf_qc.json with a qc_flags list. Use when a VCF (one sample or a cohort) arrives for annotation or prioritization, when a Ti\u002FTv or Het\u002FHom value needs interpreting, or when deciding whether downstream variant tables must carry a low-confidence caveat.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fqc-vcf-callset\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7DKYDRBFTBS2J58QMB7SMHK","prioritize-clinical-variants","Rank annotated variants into research-triage tiers (ClinVar pathogenic, likely pathogenic, VUS favouring pathogenic, VUS, likely benign, benign) from ClinVar significance used verbatim, gnomAD allele frequency against a dominant or recessive disease-model cutoff and the ACMG BA1 5 percent rule, and in-silico predictors (SIFT, PolyPhen, REVEL, CADD, AlphaMissense) as supporting evidence only. Pure Python; reads a per-variant annotation TSV and writes a tier-sorted CSV with the evidence for each tier plus a JSON of tier counts. Use when a rare-variant list from VEP, ClinVar and gnomAD annotation must be ordered for review (which variants to look at first) or when choosing the disease model and cutoffs for that ordering. Research triage only, NOT a clinical ACMG\u002FAMP classification.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fprioritize-clinical-variants\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7DKY2XPCQ2S639KTPSAJ170","normalize-vcf-with-bcftools","Normalize a VCF with bcftools norm before annotation or ClinVar\u002FgnomAD matching - split multiallelic sites into biallelic records, atomize MNPs into SNPs, then left-align and trim indels against the reference FASTA of the same build - writing an indexed normalized.vcf.gz and a JSON of record counts before and after. Use when a VCF not known to be normalized (especially an indel-heavy one) will be matched against ClinVar, gnomAD or dbSNP, compared between callers or loaded into PLINK, or when a known pathogenic indel comes back as not in ClinVar. In AiScientist, the offline annotate_variants path already normalizes, so do not plan it as a separate step there.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fnormalize-vcf-with-bcftools\u002FSKILL.md",[],[]]