Skip to content

1.4.0

Choose a tag to compare

@parashardhapola parashardhapola released this 16 Nov 12:39
· 134 commits to master since this release
2f986ab

CyteArc 1.4.0 analyzes four kinds of experiments that 1.3.0 could not: pooled CRISPR screens, clonal lineage tracing, immune repertoires, and mitochondrial and targeted DNA variants. It replaces ds.pipeline.run with one pipeline recipe per modality, saves diagnostics with each result so that a reused result repeats its warnings, and raises a MemoryBudgetError that names the budget a step needs when mem_budget is too small. Seven new tutorials cover the new analyses, and every tutorial was executed again and rewritten from its fresh outputs. This release merges 213 pull requests.

Read the breaking changes before upgrading: code that calls ds.pipeline.run needs the new recipes, several kinds of results that 1.3.0 saved are computed once more on their next call, and runs that 1.4.0 saves do not open in 1.3.0.

Breaking changes

Pipeline runs and example stores

  • ds.pipeline.run is removed, with no alias. Use ds.pipeline.rna, which takes one keyword per stage, or the new ds.pipeline.atac, ds.pipeline.adt and ds.pipeline.multimodal recipes (#38). The migration table maps each argument, such as hvg_count=N to hvg={"top_n": N} and params={"umap": {...}} to umap={...}. Paris clustering is now off by default (pass paris=True), filtering defaults to None, and callbacks receive run_interrupted in place of pipeline_interrupted. Runs that pipeline.run saved still open and report.
  • New runs cluster every Leiden resolution in one leiden stage and return the candidates as run["leiden"], a tuple ordered by resolution, in place of one run["leiden_<resolution>"] per candidate (#349). Their cell tables and exports hold only the selected clusters. Runs saved by 1.3.0 keep their leiden_<resolution> names. To read a candidate the same way in runs of both releases, use ds.artifacts.find("clusters", graph=run["connectivity_map"], method="leiden", resolution=1.0).
  • CyteArc 1.3.0 cannot read the runs that 1.4.0 saves, because their records hold fields that 1.3.0 does not know: 1.3.0 skips them when it lists runs, raises when it opens one, and its report() rejects their stage records (#38, #283, #349).
  • The example stores of the cytearc_docs CyteBase repository were rebuilt with this release and republished in place (#266, #352). Their saved runs come from the pipeline recipes, hold the diagnostics that this release checks, and return Leiden candidates as run["leiden"]. The tutorials of 1.3.0 open label="docs_default", which these stores no longer hold, so use the tutorials of this release with them.

Results computed again

  • Results that 1.3.0 saved for highly variable genes, PCA, Harmony, neighbor graphs, UMAP, HTO demultiplexing, cell calling, ambient RNA estimates and doublet scores hold no diagnostics, so their next call computes them once more, with the same values, and the results built on them follow (#179, #190, #196). On a read-only store, such as an hf:// dataset, that recomputation raises PermissionError. A call that reads such a result directly, such as ds.reduction.harmony on an earlier PCA or ds.qc.correct_ambient on an earlier estimate, raises a ValueError that names the call to run first. Neighbor artifacts no longer carry a self_hit_rate attribute; read ds.artifacts.inspect(ref).diagnostics["selfHitRate"] instead.
  • ds.trajectory.pseudotime now computes the untruncated population balance potential with MINRES by default (#229). Pseudotimes, and the fate maps and lineage results built on them, shift where a graph's slow modes outnumber 30 and agree closely elsewhere, and saved pseudotimes are computed again on the next default call. Pass method="truncated" to reproduce 1.3.0. n_singular_vals and random_seed now apply only to that method and raise ValueError otherwise.
  • Two fixes listed under major bug fixes change saved results: melded gene scores and fractional size factors normalize correctly (#167), and HTO demultiplexing refuses a zero cutoff where ambient tags reach the cells, so its saved calls are computed once more (#189).

API changes

  • ds.compare.compute_bulk returns a BulkProfiles record in place of a DataFrame or tuple (#228). Bulk columns are indexed by their labels, as a MultiIndex of group, subgroup and replicate, instead of joined names. return_fraction and return_n_cells are removed: pass count_detected=True for detection counts and fractions, and read cell counts from the record's columns. ds.regulons.profiles rows are indexed by the group labels themselves.
  • ds.trajectory.aggregation and cytearc.trajectory.feature_dynamics.knn_clustering take n_neighbors in place of n_neighbours, with no alias (#351). Aggregations saved by 1.3.0 are still reused. Names, messages and plot labels now use US English.
  • The PCA elbow plot numbers components from 1, so its line stands on the number to pass as dims (#336). Its variance_explained table holds pc in place of the 0-based component, and provenance.extras["elbow_pc"], one higher, replaces provenance.extras["elbow"].
  • Flags such as invalidate_cache, show and the transparent argument of PlotResult.save accept only Python and NumPy booleans and raise TypeError for anything else, where 1.3.0 used the truth of any value (#137). ds.artifacts.load and ds.artifacts.inspect raise TypeError, not AttributeError, for an argument that is not an ArtifactRef.
  • Plots title a bare label artifact from its record, such as "Leiden, resolution 1.0", in place of its kind, and an embedding keys that artifact's panel in result.axes by the same title (#350). The new cytearc.plotting.NamedCellArtifact(name, artifact) sets the title and key.
  • CategoricalScale leaves missing_color, missing_label and palette_name as None unless set, so a scale that sets only some fields keeps a column's stored order and colors (#345).
  • ds.imputation.compute_imputed refuses a feature name that several features share, with a ValueError that names their IDs, where 1.3.0 imputed their mean; FeatureRef(value=name, reduction="mean") asks for the mean (#223). A missing feature raises KeyError, and ds.markers.load adds a feature_id column.
  • Repository.download_dataset keeps an existing data.zarr and the results saved in it, where 1.3.0 downloaded and replaced it (#330). A store made from an older version of the dataset raises FileExistsError; pass overwrite=True to replace it.
  • Memory refusals raise cytearc.MemoryBudgetError, a subclass of MemoryError (#141, #142). A Seurat import refused by its budget raised a ValueError subclass in 1.3.0, so except ValueError no longer catches it.

Imports and stores

  • Imports detect normalized values. A non-integer matrix imported without values= is stored as normalized values when it fits a normalized reading, so steps that need counts refuse it, and fractional counts, such as alevin or RSEM estimates, need values="counts" (#165). Negative values are refused. A store that 1.3.0 imported from normalized values still reads as counts; import it again with values=.
  • DataStoreMerge and create_composite refuse sources whose size factors differ, and an RNA assay whose stored size_factor is not a finite positive number no longer opens (#167).
  • A pandas Categorical inserted into a cell or feature table is stored as integer codes beside its categories (#233). CyteArc 1.3.0 cannot open a store that holds such a column. Stores written by 1.3.0 open unchanged.
  • Readers refuse malformed input that 1.3.0 read silently: Matrix Market entries with more fields than the header declares, a Matrix Market header that declares no entries for a file that holds some, and cisTarget motif annotation rows of another width than their header (#139, #176). MtxReader and CSVReader now detect compression from a file's first bytes rather than its name.
  • to_h5ad(nthreads=0) raises, since nthreads must be at least 1 (#231).

Memory budgets

  • Budgets count only the memory that grows with the data (#159). The fixed allowances for Python, Zarr and NumPy objects, Paris's 1.35 headroom factor and Harmony's added eighth are gone, so a budget admits these steps at smaller sizes, and a process can exceed mem_budget by the runtime's own memory.
  • Reads reserve each chunk's compressed bytes beside its decoded bytes, and the chunk a reader still holds, so a budget just above the 1.3.0 charge can now raise MemoryBudgetError or run fewer blocks at once (#133, #342, #347).
  • On Windows, the default budget is 75% of physical memory, in place of a fixed 6 GiB (#304). Where CyteArc reads neither physical memory nor a cgroup limit, the default budget raises RuntimeError naming mem_budget and CYTEARC_MEM_BUDGET.

Regulons and dependencies

  • ds.regulons.grn and cytearc.regulons.infer_grn fit on spawned worker processes when nthreads is above 1, so a script that calls them must keep its top-level code under if __name__ == "__main__": (#234). Notebooks need no change.
  • cytearc.regulons.regulon_specificity refuses labels that are missing or blank with a ValueError, as ds.regulons.specificity does (#373). In 1.3.0 a None label scored as a group of its own and NaN labels added rows of NaN; pass the activity and labels of the labeled cells instead.
  • CyteArc requires zarr 3.4.2 or later, in place of 3.4.0, because zarr 3.4.0 held about 520 bytes per character to read a text scalar (#127).
  • CyteArc requires umap-learn below 0.6, because its UMAP compiles three private functions of umap-learn that a later release could change (#269).

New features

Pooled CRISPR screens

The new ds.perturbation namespace analyzes a pooled CRISPR screen method by method, and ds.pipeline.perturbation runs the whole analysis as one pipeline run that checks every setting before it writes (#64, #65, #71, #85, #94).

  • Call each cell's guides with ds.perturbation.call_guides, by a Poisson-Gaussian mixture (the default), a Gaussian, a fixed or a top-guide rule, or import Cell Ranger's calls with import_guide_calls (#43, #45, #46, #88).
  • Label cells by the genes their guides target with labels, and check that each perturbation lowered its target with efficiency (#47, #48, #93).
  • Measure how far each perturbation moves its cells from the control cells with edistance, scPerturb's E-distance (#49).
  • Separate knocked-out cells from escapers with signature and mixscape (#59). On the 20,729 cells of the Papalexi et al. (2021) screen, mixscape assigns the same class as Seurat 5.5.1 to every cell in about 7.5 s on 4 threads, where Seurat's RunMixscape takes 10 to 14 minutes.
  • Test which genes each perturbation changes with associations, SCEPTRE's calibrated test, for low-MOI screens and, with moi="high", for high-MOI screens such as enhancer screens (#61, #72, #73, #89). On the Papalexi screen it matches sceptre 0.99.1 and runs in 126 s on 4 threads, against 829 s for serial sceptre.
  • Build each perturbation's expression profile against the control cells with profiles, and group perturbations with similar effects with cluster (#63).
  • The screen methods stay within the memory budgets they name (#79, #80, #91, #92, #97, #152), and their warnings come from saved diagnostics (#248).
  • New figures: ds.plots.guide_calls, guide_thresholds, efficiency, edistance, mixscape, association_volcano, association_calibration and perturbation_clusters (#43, #46, #48, #49, #59, #61, #63, #178).

Clonal analysis and lineage tracing

The new ds.clones namespace analyzes clones from any lineage tracing source.

  • Import clone calls written by CoSpar, TREX, CellTag-multi, CellTagR, STICR, Cassiopeia, Numbat, MiTo or a Matrix Market clone matrix with ds.clones.import_clones, or read clones from a cell column with from_column (#108).
  • Measure clonal expansion, diversity and rarefaction (#109, #129), compare groups by the clones they share with overlap and follow clones across groups with track (#110), and measure fate coupling and the fate bias of early cells as CoSpar does with coupling and fate_bias (#111). Results match scirpy, scRepertoire, iNEXT, immunarch and CoSpar to numerical precision.
  • Import expressed lineage barcodes from eight tools with import_barcodes, and call clones by the published LARRY, TREX, CellTag or CellTag-multi rules with barcode_clones (#117, #118, #157). Diagnostics show when error correction merges unrelated barcodes.
  • Import CRISPR lineage recorder alleles from DARLIN, CARLIN, Cassiopeia, PEtracer, DNA Typewriter and TreeData files with import_alleles, export character matrices for Cassiopeia and LAML with export_characters (#123), and call clones from rare alleles by DARLIN's graph rule or CARLIN's p_clonal test with allele_clones (#124).
  • Import cell phylogenies from Newick and TreeData files with import_phylogeny, and cut them into clones at a time or depth with phylogeny_clones (#125).
  • New figures, drawn through one shared chart layer whose legends compose_results can share: ds.plots.clone_abundance, clonal_expansion, clonal_diversity, clonal_rarefaction, clone_overlap, clone_tracking, clone_coupling, clone_fate_bias, barcode_calls, recorder_states and phylogeny, which draws a tree of 2.4 million nodes in under 0.4 s (#108, #109, #110, #111, #117, #123, #138, #144, #147, #156).
  • The clone, repertoire and variant methods share CyteArc's argument and column names (#136, #140), count every array a call holds against its memory budget (#146, #151), and find the distinct values of large integer arrays by sorting, tens of times faster than hashing on millions of cells (#128).

Immune repertoires

The new ds.repertoire namespace analyzes T cell and B cell receptors, and matches scirpy 0.25.1 cell for cell on public 10x data.

  • Import Cell Ranger contig annotations or AIRR Rearrangement files with ds.repertoire.import_receptors, which classifies each cell's chains (#112).
  • Group cells into clonotypes by identical junctions with clonotypes (#113), or into clonotype clusters by similar junctions with metric and max_distance (#114). On 46,526 cells, Levenshtein clusters take 0.3 s, where scirpy's ir_dist takes 88 s.
  • Count V, D, J and C gene usage and junction lengths with gene_usage and spectratype (#115), and export AIRR Rearrangement files for Immcantation and other tools with export_airr (#116).
  • Clonotypes defined across receptor types also record each cell's clonotype within its type, which every summary uses (#155).
  • New figures: ds.plots.receptor_qc, gene_usage, gene_pairing and spectratype (#112, #115, #147, #166).

Mitochondrial and targeted DNA variants

The new ds.variants namespace calls genotypes and clones from per-cell variant counts.

  • Import per-cell allele counts from mgatk, maegatk, cellsnp-lite, MQuad, VarTrix, MiTo, GIFT and the GoT tools with ds.variants.import_counts (#119).
  • Keep the informative mitochondrial variants with informative, by mgatk's statistics and Signac's or MAESTER's thresholds, and call clones from their frequencies with frequency_clones (#120).
  • Call genotypes at targeted sites with genotypes, and the clones that mutant calls define with genotype_clones (#121). By default genotype_clones fits a likelihood model that tolerates allelic dropout: on 200,000 simulated cells it recovers the clones with an adjusted Rand index of 0.79, where the exact rule reaches 0.01 (#158).
  • Read Mission Bio Tapestri DNA and protein files into a store with cytearc.TapestriToZarr and cytearc.TapestriReader, and DAb-seq files with import_counts (#122, #160).
  • New figures: ds.plots.variant_depth, variant_statistics, allele_frequencies and genotypes (#119, #120, #121, #150).

Trajectories, lineages and potency

  • Resolve gene dynamics by lineage on a fate map with ds.trajectory.lineage_markers, drivers, lineage_aggregation, fate-weighted principal curves and a Slingshot-style lineage_tree (#39). Drivers match CellRank 2.3.3's correlation test on the pancreas example. New figures ds.plots.lineage_trends, lineage_heatmap, lineage_curves and lineage_tree draw from the colorblind palette (#39, #340).
  • Label each cell by the lineage it follows and find where each pair of lineages parts with ds.trajectory.lineage_membership, and select the cells around a branch point with branch_cells (#246, #331).
  • Return lineage curves drawn in a layout as a table with ds.trajectory.curves_in_layout, and build a cluster tree without a store with cytearc.trajectory.build_cluster_tree (#238).
  • Score pseudotime and lineage trees on some of a graph's cells, such as a few clusters, with cells= (#243).
  • Bound the pseudotime solve with solver_tol and max_iterations, follow its progress, and choose among graph components (#222). The default untruncated solve scores a million cells in about 30 s (#229).
  • Direct a fate map by any per-cell score with ds.trajectory.fate(direction=...), such as another tool's pseudotime, in place of a CyteArc pseudotime (#247, #341).
  • Score how differentiated each cell is with ds.scores.potency, from its expression on a STRING protein network, by CCAT (the default) or the signaling entropy rate (#285, #288, #300). The scores match SCENT 1.1, and a potency score can direct a fate map without source cells. The human and mouse networks download on first use and are checked against their recorded digests.

Layouts and clustering

  • ds.embeddings.localmap lays out a connectivity map with LocalMAP, a PaCMAP extension that separates clusters that sit next to each other (#332). On 1.1 million Tabula Sapiens cells it takes 42 s on 16 CPUs, against 1,093 s for UMAP's default. The RNA, ATAC and ADT recipes add a LocalMAP layout with localmap=True (#335).
  • ds.clusters.connectivity returns the graph weight between clusters as node and edge tables, without drawing a figure (#226).

Pipeline recipes

  • ds.pipeline.plan reports which stages of a recipe call would be reused and which computed, and why, without running anything (#227).
  • ds.pipeline.describe lists a recipe's stage settings and their defaults, without a store (#241).
  • run.settings() returns the settings that a run recorded, and ds.pipeline.rerun(run, **overrides) runs the recipe again, changing only what the call passes (#370). A rerun with a new Leiden resolution reuses every stage up to UMAP.
  • Recipes refuse more settings before writing anything: a Harmony batch column that leaves a cell without a label in ADT and ATAC runs (#175), doublet scoring on an assay that is not normalized by library size (#339), and unscaled PCA with doublet scoring or an ANN metric other than "l2" or "cosine" (#344).
  • Each stage records CPU time, threads, peak memory and network bytes beside the cores and memory its process had (#283).
  • Applications can follow runs with cytearc.pipeline_listener, stop them with cytearc.CancellationToken, and send logs to the standard library logger with cytearc.configure_output(stdlib=True) (#38).

Import, storage and data access

  • H5adToZarr, CrToZarr, CSVtoZarr, SparseToZarr and SeuratToZarr import normalized values beside counts through values= (#165).
  • SparseToZarr builds a store of several assays, such as RNA, guides and hashtags, from in-memory matrices of the same cells (#184).
  • Import writers take policy="fit" to write the largest count layout that fits mem_budget (#224).
  • Categorical columns are stored as integer codes beside their categories: inserted pandas Categoricals (#233), H5adToZarr(categorical_columns=True) (#249), grouping and pseudobulk that read the codes (#251), and exports that write AnnData categoricals (#252). A 300-label column of 600,000 cells takes 1.8 MB in place of 48.6 MB.
  • mount_datastore takes source_storage_options, so a target in a private bucket can mount a public hf:// source (#242). mount_datastore and create_composite take relative_sources=True, so a folder of stores keeps opening after it is moved or uploaded (#244), and create_composite(at=...) writes a composite to a local path, a bucket or a Zarr store (#245).
  • DataStoreMerge and create_composite(features="union") warn when their sources measured different features, because the result reads zero counts for the features a source lacks (#337, #346).
  • ds.mapping.run(feature_key="names") maps a query onto a reference by feature name, such as gene symbols onto Ensembl IDs (#236).
  • ds.artifacts.load_values reads a cell column over a selection (#228) and leaves out the cell IDs with cell_ids=False (#235).
  • ds.qc.hto_demultiplexing demultiplexes each sample with its own hashtags, through sample_column= or a mapping passed as hashtags= (#191).
  • ds.regulons.specificity and ds.regulons.connection_specificity compute regulon specificity scores and the connection specificity index from stored scores (#240).

Diagnostics and memory budgets

  • Saved results record diagnostics, such as how many file barcodes matched no cell, which ds.artifacts.inspect(ref).diagnostics returns. Operations warn from them with cytearc.DiagnosticWarning when they compute a result and again when they reuse it (#148, #149, #179, #190, #195, #196, #248). The clone, character matrix and AIRR exports return an ExportSummary (#149).
  • A memory budget too small for a step raises cytearc.MemoryBudgetError, whose needed_bytes is the smallest mem_budget that passes the step (#141, #142). Budgeted reads decode on the store's nthreads threads, so a budget holds on busy machines (#143), and import refusals state the importer's buffer apart from resident data, so a 0.56 GB matrix no longer reads as needing 13 GB (#177).

New tutorials

  • Pooled CRISPR screens analyzes the ECCITE-seq screen of Papalexi et al. (2021), 20,729 THP-1 cells, from guide calls to the genes each perturbation changes (#75).
  • Immune repertoires imports the TCR and BCR chains of 10,548 blood cells from one healthy donor, groups the cells into clonotypes and compares the clonal structure of five T cell types (#161).
  • Lineage tracing scores a fate map against the clones of the LARRY experiment of Weinreb et al. (2020), 130,887 mouse hematopoietic cells (#162).
  • Lineage recorders cuts the PEtracer phylogeny of a mouse embryo collected at E7.5 (Colgan et al. 2026) into clones every half day and measures which cell types share them (#163).
  • Mitochondrial lineage tracing calls clones in a colorectal tumor from mitochondrial DNA variants, on the mtscATAC-seq data of Lareau et al. (2020) (#164).
  • Lineage dynamics follows genes along the four endocrine lineages of the developing mouse pancreas (#39).
  • Lineage curves and trajectory checks draws one curve per pancreas lineage and checks the trajectory that the curves follow (#39, #314).
  • Fate mapping and potency gains a section that directs a fate map by a potency score, without source cells (#290).

Major bug fixes

  • Saved Numba kernels could return wrong numbers after an upgrade, an edit or a branch switch, because a kernel kept the old code of the kernels it calls in other files, the Leiden kernels among them. Kernels now compile again when any CyteArc kernel module or the CyteArc release changes (#77, #90).
  • An RNA-class assay's stored size_factor was truncated to an integer, so a size factor of 0.5 became 0 and zeroed every normalized value. Melded gene scores opened as an RNA-class assay, as the 1.3.0 scATAC-seq tutorial did, were normalized by library size a second time; their TF-IDF values now pass through (#167).
  • ds.qc.hto_demultiplexing called nearly every cell a doublet when a hashtag's background held only zeros while ambient tags reached the cells: 20,713 of 20,729 cells in the Papalexi screen. Such counts are now refused with a ValueError that names the remedy, such as sample_column= (#189).
  • The PCA elbow plot drew its line one component too low (#336).
  • A block stream kept the blocks it read ahead in memory after its consumer broke out, closed it or raised, until garbage collection ran; one job held about 27 GiB per pass (#260).
  • Reads and listings of hf:// stores could wait forever, and a 5xx response failed a read at once. Each attempt now times out, and timeouts and server errors are retried for up to 3 minutes (#230).
  • A writable Hugging Face store read a server error as a missing key, so Zarr could write an empty group over a parent group's metadata (#284).
  • Sparse and Seurat imports planned about twice the memory they hold, and refused imports that fit. A 20,000-cell Seurat import needed a 12.4 GiB budget and now needs 2.1 GiB (#265, #303).
  • ds.plots.embedding refused to color a layout by an artifact over another selection of the same cells, such as HTO calls made before filtering (#186).
  • ds.markers.search refused group labels that contain /, such as T/NK (#250).
  • On Windows, CyteArc could not read the machine's memory and gave every machine a 6 GiB default budget (#304).
  • Running download_dataset again replaced the store and deleted the results saved in it (#330).
  • A CyteArc plot drawn as a Jupyter session's first figure turned off Matplotlib's interactive mode (#338), and in Jupyter PlotResult.show() could draw a figure twice (#343).
  • Plots of clusterings imported from an H5AD file with H5adReader(cluster_keys=...) ignored the file's category order and colors (#348), and a CategoricalScale that set only some fields discarded a column's stored colors (#345).

Other fixes

  • compose_results keeps a child figure's legends unless it can redraw all of them as shared legends (#76), keeps inset axes such as a clustered matrixplot's dendrograms (#181), and no longer raises AttributeError on a constrained-layout figure that holds a clustered matrixplot (#144).
  • A block stream stopped by an error or interrupt in a notebook no longer leaves process-wide Zarr I/O, BLAS or OpenMP limits in place, which had made later BLAS work run about twice as long (#126, #132).
  • Reads of cell-aligned artifacts, such as ds.artifacts.load_values and ds.select_cells, charge their arrays in the order they read them, so the budgets they need fall (#182).
  • ds.plots.composition, cluster_connectivity and modality_weights accept inputs whose cell selections hold the same cells through different artifacts (#193).
  • H5adReader names what a malformed h5ad matrix lacks, such as an empty X group or a CSR group without indptr, and opening a metadata table that holds a 0-d array raises a ValueError naming the column in place of a bare IndexError (#374).

Performance

  • Imports of dense h5ad files plan memory from the nonzero values and write through dense row bands: the 310,385-cell K562 screen imports with the default count layout within a 3 GiB budget, in place of 115 GiB (#188, #194, #197).
  • H5adToZarr scans a large matrix for its value ranges in several processes, about 9 times faster on 16 CPUs (#239), and encodes imported columns as whole arrays, so the cell columns of a 500,000-cell h5ad import in 1.2 s in place of 3.5 s (#224).
  • Count reads run on an event loop in each reading thread, so a block stream's readers copy blocks in parallel: about twice as many cells per second from a Hugging Face composite (#267). Closing a stream early cancels its running reads (#268), and log-normalized blocks hold one array in place of two (#262).
  • A read-only Hugging Face store lists its objects once and reads each key with one request: opening ten CyteBase stores takes 12 Hub API calls in place of 769, and 9 s in place of 124 s (#264).
  • create_composite fetches metadata concurrently and reads its count pass in parallel segments, so a composite of ten CyteBase stores takes 47 s in place of about 93 s (#263, #281).
  • to_h5ad compresses on the export's threads and runs 1.7 to 1.8 times faster (#231).
  • ds.qc.doublets scores several samples at once, 2.1 to 2.3 times faster for 4 samples, and a serial UMAP layout lets other Python threads run (#232).
  • ds.regulons.grn fits targets on worker processes, 2.8 times faster on 8 CPUs (#234).
  • New stores chunk cell and feature columns by rows and by 16 MiB of values, which halves the memory needed to read a wide text column (#145, #183, #187). Writing text columns (#135) and checking a selection's cell IDs (#180) hold a fraction of the memory they did.

Documentation

  • The README describes what CyteArc does at atlas scale, with remote data in place and with reused results, and its capability table lists the analyses that this release adds (#384).
  • Every tutorial was executed again and rewritten to open with its results and quote the numbers its outputs print (#309, #310, #311, #312, #313, #314, #315), after earlier re-executions against the rebuilt example stores (#38, #266, #352).
  • Three pages merged into others, and their old addresses are gone: Expression dynamics into Pseudotime and expression dynamics and Trajectory validation into Lineage curves and trajectory checks (#314), and Pseudobulk and differential expression into Donor-level comparisons and pseudobulk (#313).
  • The sidebar groups the tutorials into nine sections that follow an analysis from raw data to interpretation (#308). The site uses Nygen's shared branding and navigation (#40, #41), and the API reference shares the guide pages' header and navigation (#42). New API reference pages cover the perturbation, clones, repertoire and variants namespaces.
  • The methods page compares the two potency measures on fifteen systems of known stage order (#298), the CRISPR screen documentation was checked against the code (#87, #95), and section headings carry no numbers (#305).

Miscellaneous

Pull requests that change tests, CI, contributor instructions or internal structure, with no change that users see:

  • Cover every line of the guide call import with tests (#44)
  • Keep only project-specific agent instructions (#62)
  • Speed up the screen tests and stop a memory test from flaking (#78)
  • Give each rule of the screen figures one home, with every figure unchanged (#83)
  • Share the screen operations' repeated code, and move their computation to the domain package (#84)
  • Split the screen operations into one module per method family (#86)
  • Test memory budgets with one set of helpers, and refresh the test shard durations (#96)
  • Balance CI's test shards by the seconds of every test file (#130)
  • Test memory budgets, held reads and downloads with one set of helpers (#131)
  • Identify files with one digest, and mix seeds with one finaliser (#134)
  • Test memory budgets by what calls do, not by what they trace (#154)
  • Skip the live dataset tests when the Hugging Face host is unreachable (#174)
  • Give the attempt after a stalled Hugging Face request a second to answer in its test (#237)
  • Stop asking pull request descriptions to name the AI tools that helped (#270)
  • Make the composite read-worker limit tests wait for the overlap they assert, now that reads run on several threads (#282)
  • Stop GEO's refusals under load, a busy runner's late timeouts and the shared Hugging Face client from failing tests (#297)
  • Keep offline Hugging Face tests from fetching the agent registry (#306)
  • Keep saved notebook outputs valid when only comments change (#307)
  • Test every reachable line, running the untested Numba kernels as Python against their references (#371)
  • Remove code that no input reaches, and require what callers already guarantee (#372)

Full changelog: 1.3.0...1.4.0