Repository navigation
1.4.0
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.runis removed, with no alias. Useds.pipeline.rna, which takes one keyword per stage, or the newds.pipeline.atac,ds.pipeline.adtandds.pipeline.multimodalrecipes (#38). The migration table maps each argument, such ashvg_count=Ntohvg={"top_n": N}andparams={"umap": {...}}toumap={...}. Paris clustering is now off by default (passparis=True),filteringdefaults toNone, and callbacks receiverun_interruptedin place ofpipeline_interrupted. Runs thatpipeline.runsaved still open and report.- New runs cluster every Leiden resolution in one
leidenstage and return the candidates asrun["leiden"], a tuple ordered by resolution, in place of onerun["leiden_<resolution>"]per candidate (#349). Their cell tables and exports hold only the selectedclusters. Runs saved by 1.3.0 keep theirleiden_<resolution>names. To read a candidate the same way in runs of both releases, useds.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_docsCyteBase 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 asrun["leiden"]. The tutorials of 1.3.0 openlabel="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 raisesPermissionError. A call that reads such a result directly, such asds.reduction.harmonyon an earlier PCA ords.qc.correct_ambienton an earlier estimate, raises aValueErrorthat names the call to run first. Neighbor artifacts no longer carry aself_hit_rateattribute; readds.artifacts.inspect(ref).diagnostics["selfHitRate"]instead. ds.trajectory.pseudotimenow 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. Passmethod="truncated"to reproduce 1.3.0.n_singular_valsandrandom_seednow apply only to that method and raiseValueErrorotherwise.- 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_bulkreturns aBulkProfilesrecord 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_fractionandreturn_n_cellsare removed: passcount_detected=Truefor detection counts and fractions, and read cell counts from the record'scolumns.ds.regulons.profilesrows are indexed by the group labels themselves.ds.trajectory.aggregationandcytearc.trajectory.feature_dynamics.knn_clusteringtaken_neighborsin place ofn_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). Itsvariance_explainedtable holdspcin place of the 0-basedcomponent, andprovenance.extras["elbow_pc"], one higher, replacesprovenance.extras["elbow"]. - Flags such as
invalidate_cache,showand thetransparentargument ofPlotResult.saveaccept only Python and NumPy booleans and raiseTypeErrorfor anything else, where 1.3.0 used the truth of any value (#137).ds.artifacts.loadandds.artifacts.inspectraiseTypeError, notAttributeError, for an argument that is not anArtifactRef. - 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.axesby the same title (#350). The newcytearc.plotting.NamedCellArtifact(name, artifact)sets the title and key. CategoricalScaleleavesmissing_color,missing_labelandpalette_nameasNoneunless set, so a scale that sets only some fields keeps a column's stored order and colors (#345).ds.imputation.compute_imputedrefuses a feature name that several features share, with aValueErrorthat names their IDs, where 1.3.0 imputed their mean;FeatureRef(value=name, reduction="mean")asks for the mean (#223). A missing feature raisesKeyError, andds.markers.loadadds afeature_idcolumn.Repository.download_datasetkeeps an existingdata.zarrand the results saved in it, where 1.3.0 downloaded and replaced it (#330). A store made from an older version of the dataset raisesFileExistsError; passoverwrite=Trueto replace it.- Memory refusals raise
cytearc.MemoryBudgetError, a subclass ofMemoryError(#141, #142). A Seurat import refused by its budget raised aValueErrorsubclass in 1.3.0, soexcept ValueErrorno 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, needvalues="counts"(#165). Negative values are refused. A store that 1.3.0 imported from normalized values still reads as counts; import it again withvalues=. DataStoreMergeandcreate_compositerefuse sources whose size factors differ, and an RNA assay whose storedsize_factoris 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).
MtxReaderandCSVReadernow detect compression from a file's first bytes rather than its name. to_h5ad(nthreads=0)raises, sincenthreadsmust 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_budgetby 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
MemoryBudgetErroror 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
RuntimeErrornamingmem_budgetandCYTEARC_MEM_BUDGET.
Regulons and dependencies
ds.regulons.grnandcytearc.regulons.infer_grnfit on spawned worker processes whennthreadsis above 1, so a script that calls them must keep its top-level code underif __name__ == "__main__":(#234). Notebooks need no change.cytearc.regulons.regulon_specificityrefuses labels that are missing or blank with aValueError, asds.regulons.specificitydoes (#373). In 1.3.0 aNonelabel 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 withimport_guide_calls(#43, #45, #46, #88). - Label cells by the genes their guides target with
labels, and check that each perturbation lowered its target withefficiency(#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
signatureandmixscape(#59). On the 20,729 cells of the Papalexi et al. (2021) screen,mixscapeassigns the same class as Seurat 5.5.1 to every cell in about 7.5 s on 4 threads, where Seurat'sRunMixscapetakes 10 to 14 minutes. - Test which genes each perturbation changes with
associations, SCEPTRE's calibrated test, for low-MOI screens and, withmoi="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 withcluster(#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_calibrationandperturbation_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 withfrom_column(#108). - Measure clonal expansion, diversity and rarefaction (#109, #129), compare groups by the clones they share with
overlapand follow clones across groups withtrack(#110), and measure fate coupling and the fate bias of early cells as CoSpar does withcouplingandfate_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 withbarcode_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 withexport_characters(#123), and call clones from rare alleles by DARLIN's graph rule or CARLIN's p_clonal test withallele_clones(#124). - Import cell phylogenies from Newick and TreeData files with
import_phylogeny, and cut them into clones at a time or depth withphylogeny_clones(#125). - New figures, drawn through one shared chart layer whose legends
compose_resultscan share:ds.plots.clone_abundance,clonal_expansion,clonal_diversity,clonal_rarefaction,clone_overlap,clone_tracking,clone_coupling,clone_fate_bias,barcode_calls,recorder_statesandphylogeny, 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 withmetricandmax_distance(#114). On 46,526 cells, Levenshtein clusters take 0.3 s, where scirpy'sir_disttakes 88 s. - Count V, D, J and C gene usage and junction lengths with
gene_usageandspectratype(#115), and export AIRR Rearrangement files for Immcantation and other tools withexport_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_pairingandspectratype(#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 withfrequency_clones(#120). - Call genotypes at targeted sites with
genotypes, and the clones that mutant calls define withgenotype_clones(#121). By defaultgenotype_clonesfits 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.TapestriToZarrandcytearc.TapestriReader, and DAb-seq files withimport_counts(#122, #160). - New figures:
ds.plots.variant_depth,variant_statistics,allele_frequenciesandgenotypes(#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 principalcurvesand a Slingshot-stylelineage_tree(#39). Drivers match CellRank 2.3.3's correlation test on the pancreas example. New figuresds.plots.lineage_trends,lineage_heatmap,lineage_curvesandlineage_treedraw 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 withbranch_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 withcytearc.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_tolandmax_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.localmaplays 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 withlocalmap=True(#335).ds.clusters.connectivityreturns the graph weight between clusters as node and edge tables, without drawing a figure (#226).
Pipeline recipes
ds.pipeline.planreports which stages of a recipe call would be reused and which computed, and why, without running anything (#227).ds.pipeline.describelists a recipe's stage settings and their defaults, without a store (#241).run.settings()returns the settings that a run recorded, andds.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 withcytearc.CancellationToken, and send logs to the standard library logger withcytearc.configure_output(stdlib=True)(#38).
Import, storage and data access
H5adToZarr,CrToZarr,CSVtoZarr,SparseToZarrandSeuratToZarrimport normalized values beside counts throughvalues=(#165).SparseToZarrbuilds 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 fitsmem_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_datastoretakessource_storage_options, so a target in a private bucket can mount a publichf://source (#242).mount_datastoreandcreate_compositetakerelative_sources=True, so a folder of stores keeps opening after it is moved or uploaded (#244), andcreate_composite(at=...)writes a composite to a local path, a bucket or a Zarr store (#245).DataStoreMergeandcreate_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_valuesreads a cell column over a selection (#228) and leaves out the cell IDs withcell_ids=False(#235).ds.qc.hto_demultiplexingdemultiplexes each sample with its own hashtags, throughsample_column=or a mapping passed ashashtags=(#191).ds.regulons.specificityandds.regulons.connection_specificitycompute 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).diagnosticsreturns. Operations warn from them withcytearc.DiagnosticWarningwhen 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 anExportSummary(#149). - A memory budget too small for a step raises
cytearc.MemoryBudgetError, whoseneeded_bytesis the smallestmem_budgetthat passes the step (#141, #142). Budgeted reads decode on the store'snthreadsthreads, 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_factorwas 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_demultiplexingcalled 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 aValueErrorthat names the remedy, such assample_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.embeddingrefused to color a layout by an artifact over another selection of the same cells, such as HTO calls made before filtering (#186).ds.markers.searchrefused group labels that contain/, such asT/NK(#250).- On Windows, CyteArc could not read the machine's memory and gave every machine a 6 GiB default budget (#304).
- Running
download_datasetagain 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 aCategoricalScalethat set only some fields discarded a column's stored colors (#345).
Other fixes
compose_resultskeeps 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 raisesAttributeErroron a constrained-layout figure that holds a clusteredmatrixplot(#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_valuesandds.select_cells, charge their arrays in the order they read them, so the budgets they need fall (#182). ds.plots.composition,cluster_connectivityandmodality_weightsaccept inputs whose cell selections hold the same cells through different artifacts (#193).H5adReadernames what a malformed h5ad matrix lacks, such as an emptyXgroup or a CSR group withoutindptr, and opening a metadata table that holds a 0-d array raises aValueErrornaming the column in place of a bareIndexError(#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).
H5adToZarrscans 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_compositefetches 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_h5adcompresses on the export's threads and runs 1.7 to 1.8 times faster (#231).ds.qc.doubletsscores 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.grnfits 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