agentleFS
scversescverse/pertpy/docs/llms.txt

pertpy

llms.txt355 starsChanged 18 months agoMITView on GitHub

Pertpy is a scverse ecosystem framework for analyzing large-scale single-cell perturbation experiments. It covers metadata annotation, guide RNA assignment, perturbation efficacy, compositional analysis, differential gene expression, perturbation distances, perturbation spaces, and response prediction on AnnData and MuData objects. Pertpy is imported as import pertpy as pt and exposes four modules: pt.dt (datasets), pt.pp (preprocessing), pt.tl (tools) and pt.md (metadata annotation). Tools are classes that operate on an AnnData or MuData object, so a typical call is pt.tl.Milo() followed by methods…

We split this llms.txt into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every page listed below is also available as Markdown by requesting it with the Accept: text/markdown header.

    line 10

≈ “Common” is an estimate: at least 1 in 5 of the 3,225 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# pertpy

> Pertpy is a scverse ecosystem framework for analyzing large-scale single-cell perturbation experiments.
> It covers metadata annotation, guide RNA assignment, perturbation efficacy, compositional analysis, differential gene expression, perturbation distances, perturbation spaces, and response prediction on AnnData and MuData objects.

Pertpy is imported as `import pertpy as pt` and exposes four modules:
`pt.dt` (datasets), `pt.pp` (preprocessing), `pt.tl` (tools) and `pt.md` (metadata annotation).
Tools are classes that operate on an AnnData or MuData object, so a typical call is `pt.tl.Milo()` followed by methods on the returned object.

Every page listed below is also available as Markdown by requesting it with the `Accept: text/markdown` header.

## Start here

- [Installation](https://pertpy.scverse.org/page/installation.html): pip and conda-forge installation, including the `jax`, `de`, `tcoda` and `scgen` extras that individual tools require.
- [API reference](https://pertpy.scverse.org/page/api.html): entry point to all four modules.
- [Tutorials](https://pertpy.scverse.org/page/tutorials.html): executable notebooks for every tool.
- [Use cases](https://pertpy.scverse.org/page/usecases.html): end-to-end reanalyses of published perturbation studies.

## Tools by task

- [Differential gene expression](https://pertpy.scverse.org/page/api/tools_index.html#differential-gene-expression): `pt.tl.PyDESeq2`, `pt.tl.EdgeR`, `pt.tl.WilcoxonTest`, `pt.tl.TTest`, `pt.tl.PermutationTest` and `pt.tl.Statsmodels` behind one interface that supports complex designs and contrasts.
- [Perturbation assignment and efficacy](https://pertpy.scverse.org/page/api/tools_index.html#pooled-crispr-screens): `pt.tl.Mixscape` for binary perturbed/non-perturbed calls and `pt.tl.Mixscale` for continuous perturbation scores in pooled CRISPR screens.
- [Differential abundance without labeled groups](https://pertpy.scverse.org/page/api/tools_index.html#compositional-analysis): `pt.tl.Milo` tests differential abundance on k-nearest-neighbor graph neighborhoods.
- [Compositional analysis with labeled groups](https://pertpy.scverse.org/page/api/tools_index.html#compositional-analysis): `pt.tl.Sccoda` and `pt.tl.Tasccoda` model cell type composition with Bayesian hierarchical models.
- [Multicellular programs](https://pertpy.scverse.org/page/api/tools_index.html#multicellular-programs-dialogue): `pt.tl.Dialogue` identifies latent programs coordinated across cell types.
- [Enrichment](https://pertpy.scverse.org/page/api/tools_index.html#enrichment): `pt.tl.Enrichment` scores pathway and drug target gene sets, including drug2cell.
- [Perturbation distances and permutation tests](https://pertpy.scverse.org/page/api/tools_index.html#distances-and-permutation-tests): `pt.tl.Distance` computes metrics such as edistance, MMD and Wasserstein between perturbation groups, `pt.tl.DistanceTest` turns them into permutation tests.
- [Perturbation spaces](https://pertpy.scverse.org/page/api/tools_index.html#perturbation-space): `pt.tl.PseudobulkSpace`, `pt.tl.CentroidSpace`, `pt.tl.DistanceSpace`, `pt.tl.EmbeddingSpace` and the classifier and clustering spaces summarize all cells of a perturbation into one observation.
- [Cell type prioritization](https://pertpy.scverse.org/page/api/tools_index.html#rank-perturbations-augur): `pt.tl.Augur` ranks cell types by how strongly they respond to a perturbation.
- [Response prediction](https://pertpy.scverse.org/page/api/tools_index.html#gene-expression-prediction-with-scgen): `pt.tl.Scgen` predicts cell-type-specific responses to a perturbation.
- [Causal effect analysis](https://pertpy.scverse.org/page/api/tools_index.html#causal-perturbation-analysis-with-cinema-ot): `pt.tl.Cinemaot` separates confounding variation from perturbation effects to obtain counterfactual cell pairs.

## Data and metadata

- [Datasets](https://pertpy.scverse.org/page/api/datasets_index.html): `pt.dt` downloads harmonized perturbation datasets such as `norman_2019`, `papalexi_2021`, `replogle_2022_k562_essential` and `srivatsan_2020_sciplex3`.
- [Preprocessing](https://pertpy.scverse.org/page/api/preprocessing_index.html): guide RNA assignment for pooled CRISPR screens.
- [Metadata annotation](https://pertpy.scverse.org/page/api/metadata_index.html): `pt.md.CellLine`, `pt.md.Compound`, `pt.md.Drug` and `pt.md.Moa` annotate cell lines, compounds and mechanisms of action from public databases.

## Tutorials

- [Guide RNA assignment](https://pertpy.scverse.org/page/tutorials/notebooks/guide_rna_assignment.html)
- [Perturbation efficacy with Mixscape and Mixscale](https://pertpy.scverse.org/page/tutorials/notebooks/perturbation_efficacy.html)
- [Differential gene expression](https://pertpy.scverse.org/page/tutorials/notebooks/differential_gene_expression.html)
- [Differential abundance with Milo](https://pertpy.scverse.org/page/tutorials/notebooks/milo.html)
- [Compositional analysis with scCODA](https://pertpy.scverse.org/page/tutorials/notebooks/sccoda.html)
- [Perturbation distances](https://pertpy.scverse.org/page/tutorials/notebooks/distances.html)
- [Perturbation spaces](https://pertpy.scverse.org/page/tutorials/notebooks/perturbation_space.html)
- [Cell type prioritization with Augur](https://pertpy.scverse.org/page/tutorials/notebooks/augur.html)
- [Metadata annotation](https://pertpy.scverse.org/page/tutorials/notebooks/metadata_annotation.html)

## Project

- [Source code](https://github.com/scverse/pertpy)
- [Publication](https://doi.org/10.1038/s41592-025-02909-7): Heumos et al., Pertpy: an end-to-end framework for perturbation analysis, Nature Methods 2025.
- [Changelog](https://pertpy.scverse.org/page/changelog.html)
- [Contributing](https://pertpy.scverse.org/page/contributing.html)
- [Forum](https://discourse.scverse.org/c/ecosystem/pertpy/46)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.