
Changelog
bixverse 0.10.0
Features
-
bixverse-r0.11.0 under the hood, needsmanifoldsR0.7.0. - Single cell ATAC.
SingleCellsAtacfor ATAC on its own, an ATAC layer onSingleCellsMultiModalfor multiome. Load from fragments or Cell Ranger output (load_atac_fragments(),load_atac_tenx()and theiradd_*_sc()twins), then fragment QC and profiles, AMULET multiplets, peak calling per group, TF-IDF, LSI and RLSI, peak annotation, gene activity and peak to gene links. Two new vignettes. The ATAC plots come with bixverse.plots 0.4.0. - kNN, clustering, UMAP, WNN and Harmony take
modality = "atac".harmony_sc()corrects any cached embedding viaembd_to_use. - The marker functions gain
method = "lr"(Seurat’s logistic regression, library size as covariate) andmodality = "atac".NULLpicks"lr"on ATAC and"wilcox"otherwise. -
transfer_labels_seurat_sc(): Seurat’s anchor based label transfer, e.g. from an RNA reference onto ATAC gene activity. -
save_zarr()writes an AnnData Zarr store. It andsave_h5ad()takegenesto write a subset. The h5ad loaders,prescan_h5ad_files()and the h5ad readers take Zarr stores too. No Zarr export on Windows:save_zarr()errors there, reading works. -
umap_sc()takes the umap-learn 0.6 Adam optimiser and initialisation viamanifoldsR::params_umap(optimiser = "adam_v06", init = "recursive"). - Methods that assume RNA counts refuse peak, tile and protein stores, and refuse or warn on gene activity.
- The agent skill is stamped with the package version and
library(bixverse)warns when an installed copy lags.agent_skill_status()lists installs,skill_cli()installs and checks from a shell (Rscript -e 'bixverse::skill_cli()' skill install).
Breaking changes
- Store format v5. v4 stores load with a warning, v3 stores no longer open.
upgrade_sc_store()converts both. -
params_nmf_consensus()loseskmeans_iters. -
install_agent_skill()follows the Python package:agent = "codex"installsSKILL.mdto.agents/skills,scope = "project"installs under the working directory,agent = "generic"and theAGENTS.mdrewrite are gone. - New defaults, ported from the Python front end. Results move at the same seed:
- k-means is e-means:
km_typeinparams_sc_fast_cluster()andparams_fast_cluster_default()(boost, scDblFinder),k_means_algorithminparams_kmeans_defaults()(Harmony v1 and v2). SCENIC, DSB and NMF consensus switch to e-means inside Rust. - Leiden runs 2 iterations instead of 5.
local_movingand the newnode_orderdefault toNULL:"queue"/"bfs"for Leiden,"coloured"/"shuffle"for Louvain, so Louvain moves too. - Harmony v2
block_sizeis 0.05 instead of 0.2. - manifoldsR 0.7.0 moves UMAP, densMAP and ForceAtlas2 coordinates.
- k-means is e-means:
- Other result changes from
bixverse-r0.11.0, all at the same seed:- Harmony v1 and v2 draw their random block order once per run.
-
seurat_rpca_sc()andseurat_cca_sc()search within-batch neighbours atk + 1and cap each cell atk_weightanchor pairs, as Seurat does. - The normalised layer is recomputed in f32, also for v4 stores, which read it at f16 before. Values differ slightly.
-
edge-rs0.4.0 moves the edge-rs based DGE results slightly.
bixverse 0.9.2
- Works with S7 1.0.0, which rejected the bulk, graph, ontology and multi-modal constructors.
bixverse 0.9.1
-
bixverse-r0.10.3 under the hood. -
nebula_sc()andnebula_mc(): NEBULA-LN stage one could stop on the lower bound of the subject variance when a better interior fit existed. Up to one gene in a hundred keptsigma^2 = 1e-4, dropping the subject effect and shrinking its SEs (up to 3.6x in simulation). Stage one now restarts off the bound and keeps the better fit. Other genes are unchanged at the same seed. Some of the fixed genes now disagree with the R nebula package, which stays stuck on the same bound.
bixverse 0.9.0
A breaking release. Porting the single cell suite to Python shook out a lot of bugs and silent fallbacks, and most of the binding logic moved into bixverse-rs, shared with the Python front end. Expect some results to move against 0.8.3.
Features
-
bixverse-r0.10.2 under the hood, needsmanifoldsR0.6.0. - Harmony v2 is the default in
harmony_sc(),step_harmony_sc()andbuild_symphony_ref(), stored as"harmony". v1 lives on asharmony_v1_sc()/step_harmony_v1_sc(). - The neighbour graph stays in Rust.
get_connectivities()returns aSingleCellConnectivity(convert withas_igraph(), serialise withto_bytes()/from_bytes()). Clustering, BBKNN, WNN and the h5ad export use it directly. Old caches with an igraph convert on load. -
knn_method = "nndescent"is graph-only: no index, no query pass. Replacesextract_knn. - The cell filter is a set:
set_cells_to_keep()stores unique, ascending indices and errors on unknown cells. DuckDBobs.to_keepwins over the memory file. -
load_mtx()reads.mtx.gzdirectly and handles integralrealandpatternfiles. Anything else errors instead of loading garbage. - More
SingleCellsSubsetandMetaCellssupport (AUCell, VISION, Hotspot, gene trends), plus pipeline steps for MetaCells2, residual PCA and multi-modal objects. Misspelt step arguments error when the step is built. - Faster: h5ad / 10x h5 counts and obs 5x, text obs ~40x, MTX parsing 2x, CSR to CSC 2x, VST HVGs 2x, graph build plus Leiden 2x on 1M cells.
Breaking changes
- Gone:
harmony_v2_sc(),step_harmony_v2_sc()(useharmony_sc()),get_model_fit()(useget_differential_abundance_res()),extract_knn,randomisedinparams_sc_pca()(usesvd_solver, check positional calls),ivfinparams_sc_miloR()(it silently ran Annoy),temp_filesfromprescan_mtx_dirs().mtx_streamingis deprecated and ignored. - Renamed: Hotspot
module_memershiptomodule_membership,gaerys_ctogearys_c, the BBKNN graph method to"bbknn". -
get_connectivities()no longer returns an igraph, wrap it inas_igraph(). -
get_hvg()onMetaCellsreturns 0-based indices like everything else. - New defaults:
phate_sc(use_knn = FALSE),find_clusters_sc(name = NULL)(Louvain writeslouvain_clustering),cellsweep_sc()empty droplet params,params_sc_empty_droplets(is_empty_column = "is_empty").seacell_paramshas no default. -
rs_sc_pca_residuals(),rs_bbknn_filtering()andrs_bbknn()changed signatures or return types.
Results that move against 0.8.3: Harmony v2, PHATE with defaults, scDblFinder (gbm_n_trees is honoured, 200 rounds), sample SD in every z-score, BBKNN’s stored kNN and default trim, the PCA sign convention (largest loading positive), code point sorting of group labels, nndescent recall, and a handful of parameters that were silently ignored before (WNN sigma_idx, DIALOGUE seed, no_embd_to_use, ADT PCA features).
Silent fallbacks are now loud: NA batch or group labels, unknown option values, mismatched cells_to_keep, missing Symphony HVGs, k disagreeing with the cached kNN and single-batch inputs all error or warn.
Fixes
- Hotspot matrix labels shifted with unknown genes.
- Expression extractors join obs by cell id, keep cell order and respect the cell filter on ADT.
-
params_sc_miloR()dropped mostknnoverrides. - scDblFinder feature rownames picked the wrong cells after filtering.
- The h5ad export put
varm/PCson the wrong genes after re-running HVGs. - Plus a long tail of smaller ones: single cell scaling, ADT var indices, subset count reads,
NAhandling inmerge_subset_obs()andprioritise_interactions(), by-reference modification of caller tables, numeric group columns, and stale docs.
bixverse 0.8.3
-
bixverse-r0.9.3 under the hood. - MAD outlier detection in
run_cell_qc()now scales the MAD by 1.4826 likestats::mad(), sothreshold = 3means three standard deviations under normality. This is wider than before, expect fewer cells flagged with the same threshold.r_standard = FALSEgets you the old raw MAD back. -
tsne_sc()anddensne_sc()takeapprox_type = "bh_qd", the quick-and-dirty Barnes-Hut from qdtsne (tree depth capped viamax_depthinmanifoldsR::params_tsne()). NeedsmanifoldsR0.4.0.
bixverse 0.8.2
- decoupler-style ULM and MLM activity scores:
calc_lm_activity()for bulk matrices or a contrast’s statistics andlm_activity_sc()per cell, both taking a longsource/target/weightnetwork (CollecTRI, DoRothEA, …).lm_activity_sc()works onMetaCellstoo. Parameters viaparams_lm_activity(). Scores match decoupler. - MetaCells2 via
generate_metacells2_sc(): the metacells divide and conquer pipeline in Rust, rare gene modules included. Works on the raw counts, no embedding or kNN graph needed. Parameters viaparams_sc_metacells2()andparams_sc_metacells2_dac(). - The Aerts lab hg38 TF list now ships with the package,
load_scenic_tfs_hg38(). Their server is not always up.
bixverse 0.8.1
- Single cell stores are now written in the v4 file format (
bixverse-r0.9.0), several times smaller on disk and faster to scan. v3 stores still work,load_existing()warns on them and the newupgrade_sc_store()converts them in place.
bixverse 0.8.0
Features
-
bixverse-r0.8.0 under the hood.petgraphis out of the dependency tree. - New
params_knn_graph_defaults(). Itsknn_sympicks the graph the clustering runs on:"snn"(bluster/Seurat sNN, the default),"umap"(the fuzzy simplicial set ScanPy keeps inobsp/connectivities) or"knn"(plain kNN union). Pass it viagraphinparams_sc_neighbours()orgraph_paramsingenerate_wnn_graph_sc(). Resolutions don’t carry over between the graphs, retune them when switching. -
fast_cluster_sc()is rewritten. It coarsens the cells with k-means, builds a graph over the centroids (a symmetrised centroid kNN or the Secuer cell-mediated graph) and runs Louvain or Leiden on it. All knobs live inparams_sc_fast_cluster(). Withn_seeds > 1it runs every resolution once per seed, keeps the labels of the seed with the lowest mean conductance and returns ARI and conductance stability stats. -
leiden_clustering()gainedmin_gainandlocal_moving("queue", or"coloured"to move nodes in parallel). A negativen_iterationsiterates until stable.find_clusters_sc()andstep_clusters_sc()pass these on via.... -
params_sc_pca()has a newsvd_solver = "auto", which is now the default. It runs Lanczos on the sparse path and the covariance solver on the dense one. The doublet detection methods (params_scrublet(),params_boost(),params_scdblfinder()) accept it too; their default stays"randomised".
Changes
- The default
svd_solverofparams_sc_pca()is"auto"rather than"covariance", so on the sparse path the PCs now come from Lanczos. Both are exact, but the trailing PCs can shift slightly. - Clustering results shift against 0.7.0: new pruning default, new
n_iterationsdefaults and the rewritten fast clustering. -
get_snn_graph(),set_snn_graph()andremove_snn_graph()are nowget_connectivities(),set_connectivities()andremove_connectivities(), since the graph isn’t always an sNN any more. The old names still work and warn. The cache slot, the state check artefact andgraphin the ForceAtlas2 layout went from"snn"to"connectivities".load_existing()migrates objects saved with 0.7.x. - Default sNN pruning dropped from
1/12to1/16, i.e. about 2 of 16 shared cells atk = 15, in line with Seurat’s1/15. The WNN graph uses the same default instead of1/15. -
full_snn(neighbours) andsnn_type(WNN) are gone. -
fast_cluster_sc()lostkm_type,n_centroids,snn,grid_searchandno_seeds. The first two moved intoparams_sc_fast_cluster(), wherekm_type = "kmeans"is now"standard";n_seedsreplaces the grid search. -
kmeans_itersinparams_fast_cluster_default()(Boost, scDblFinder) is nowk_means_iter. -
rs_sc_knn_graph()replacesrs_sc_snn().rs_fast_cluster_sc()absorbsrs_fast_cluster_sc_grid(). - The Symphony vignette is now “Clustering, cell type annotation and reference mapping” (
cell_type_annotation). On top of Symphony it covers the graph choice, Leiden vs Louvain, fast clustering and per-cell scType calls.
Fixes
-
transfer_labels_symphony()no longer panics when the reference labels containNA(e.g. scType Unknown cells).NAis treated as its own class, so query cells can come backNA.
bixverse 0.7.0
Features
-
bixverse-rs0.7.0 under the hood, withfaer0.24 andedge-rs0.3. - Leiden and Louvain now run in Rust:
leiden_clustering()on any igraph, andfind_clusters_sc()uses it. Results depend onseedonly, not on the global RNG or the thread count. -
params_sc_fast_cluster()gainedcell_mediatedandn_anchorsfor the cell-mediated centroid graph from Secuer (Wei et al., PLoS Comput Biol, 2022). -
calc_meta_cell_compactness()andcalc_meta_cell_separation()score any meta cell assignment against a diffusion map, including meta cells built outside bixverse.
Performance
- Small cell selections (up to 10% of the store and 100k cells, i.e. most
SingleCellsSubsetobjects) are read from the cell-major file for HVG detection and the residual fits. HVG on 6k of 985k cells: 0.82 s to 43 ms. - Fused sparse batch readers on the Rust side; SCENIC, Scrublet, NEBULA, CellPhoneDB, NMF, PCA, CellSweep, Bonsai and meta cells build their matrices through them.
- Exact covariance PCA uses the cell Gram when there are fewer cells than genes, so small subsets no longer pay for a gene x gene eigendecomposition.
- Subset filters are pushed into DuckDB, and meta cell matrices are built without copies.
Fixes
-
set_residual_fit(),get_residual_fit()andremove_residual_fit()work onSingleCellsSubset. - Accelerate is linked properly on macOS.
bixverse 0.6.2
Features
- Wired in faster NEBULA via
edge-rs.
bixverse 0.6.1
Features
-
save_h5ad()exports aSingleCellsobject to an AnnData.h5adfile for ScanPy: raw or normalised counts inX, obs/var, and cached PCA, embeddings and sNN graph (obsm/varm/obsp). Counts are streamed in cell batches and written via scx-core. -
as_ligand_target_influence()wraps a ligand-target matrix built elsewhere (e.g. nichenetr) as aLigandTargetInfluence, so it can be scored withligand_activity_scores().
bixverse 0.6.0
Larger release with performance improvements across the board and new methods. The Rust backend got a sweep and parts that could be parallelised, but were not are now parallel, SIMD/GEMM integrated everywhere applicable and better memory access patterns across the board. Some of the rounding might be slightly different, hence, major release.
Features
- CellPhoneDB wired in, see
cellphonedb_sc()andget_cellphonedb_db(). The NicheNet vignette is now a general ligand-receptor vignette. - scran/scrapper-style HVG detection via
params_sc_hvg(method = "scran"). -
svd_solverfor the PCA in the doublet detection methods. - The solver for Harmony version 1 was updated and is substantially faster.
- Option to archive the binary files now via
archive_sc_exp(). The gene-centric view gets deleted and the cell-centric view gets massively compressed. Ideal for archiving after large analysis are done. - The sNN graph re-attaches small isolated islands after pruning in single cell again.
- Changes to the ICA QC metrics. Instead of mean mutual information, it returns now
1 - max(abs(cor))to identify the point where two ICs are strongly correlated with each other. - The randomised SVD paths for single cell are now using N_OVERSAMPLING from 100 to 20 and increase the iterations from 2 to 4. Across various benchmarks and synthetic data sets, the quality of the trailing PCs has improved with the new thresholds while being faster.
- NEBULA has now a parameter that enables that a minimum of samples need to have the minimum amount of cells expressing a gene in terms of proportion and min expression.
bixverse 0.5.7
Features
- Dramatically improved speed for
find_all_markers_sc()andfind_specific_markers_sc(). - Added
extract_milo_plot_data()to generate plots in conjuction withbixverse.plots≥0.2.9.
bixverse 0.5.5
Features
- Bonsai and Sanity wired in via their respective Rust implementations, bonsai-rs and sanity-sc-rs.
- Helper function to transform TF on/off matrices into heatmap inputs, see
extract_binary_heatmap_data().
bixverse 0.5.4
Features
- New single cell I/O machinery from bixverse-rs 0.5.6. The cell-to-gene (CSR to CSC) conversion now has one knob,
csc_mem_gb:NULL(default) converts in one pass, a number caps the conversion buffers at that many GB. Available on all count loaders (load_mtx(),load_multi_mtx(),load_h5ad(),load_h5ad_norm(),load_multi_h5ad(),stream_h5ad(),load_tenx_h5(),load_multi_tenx_h5(),load_seurat(),load_sce(),load_r_data()), plusmerge_sc_experiments()andcellsweep_sc(). -
load_h5ad()gainedh5ad_streaming(defaultTRUE), which streams the counts into the cell-based binary in batches instead of materialising the filtered matrix first.stream_h5ad()is now an alias forload_h5ad(h5ad_streaming = TRUE). - More 2D embeddings from manifoldsR 0.3.5:
densmap_sc()anddensne_sc()for the density-preserving versions of UMAP and t-SNE (Narayan et al.), andforceatlas2_sc()for ForceAtlas2 layouts of either the kNN or the sNN graph. See the updated plotting vignette. -
tsne_sc()anddensne_sc()takeapprox_type = "fft_3k", the three-kernel FFT optimiser (Unix only, like"fft").
Changes
-
streaming,batch_size,max_genes_in_memoryandcell_batch_sizeare deprecated on every function listed above. They are ignored and warn if supplied; usecsc_mem_gbinstead. Nothing breaks, old calls keep running. - Needs manifoldsR >= 0.3.5.
Fixes
- h5ad: the number of cells and genes is read from the
_indexof/obsand/varrather than the first dataset in the group, and CSR vs CSC comes from theencoding-typeattribute ofXinstead of being guessed from theindptrlength. -
tsne_sc()documentation had theuse_knndefault and the perplexity default wrong.
bixverse 0.5.3
Features
- Single cell PCA got a lot faster.
params_sc_pca()has a newsvd_solverargument, one of"covariance"(the new default),"randomised"or"exact". The covariance solver builds the gene x gene cross-product straight from the sparse counts and eigendecomposes it. The randomised solver got about 2x faster as well. -
calculate_pca_sc()andstep_pca_sc()now default tosparse_svd = NULL, which picks the sparse path for the normalised data (faster and lighter on memory for every solver) and the dense one forresiduals = TRUE. - PCA on matrices with missing values:
run_ppca()andrun_bpca()for probabilistic and Bayesian PCA, ported from pcaMethods.
Changes
- The default PCA is now exact rather than randomised, so PCs, and everything built on them, shift slightly compared to 0.5.2. The leading PCs barely move; the trailing ones can.
- The
randomisedargument ofparams_sc_pca()is deprecated.TRUEmaps tosvd_solver = "randomised",FALSEto"exact", with a warning.
bixverse 0.5.2
Features
- Cellsweep implementation from Caskey et al., see vignette.
- Wired in new single cell batch correction metrics (cell-type specific LISI and ASW).
- Also wired in from edge-rs the limma-voom workflow.
- Sweep over the Rust/rextendr documentation
- Wired in scTransform v2 from Choudhary and the vignette.
bixverse 0.5.1
bixverse 0.5.0
Features
-
blitzGSEA wired into the R layer via
calc_blitzgsea(). Permutation GSEA pays per pathway, this does not: random gene sets are drawn once across a log-spaced grid of set sizes, gamma tails are fitted to the null enrichment scores, and every pathway’s p-value is read straight off the fitted tail. One gamma evaluation per pathway, no matter how big the library. No gene set library enters the calibration, soblitzgsea_calibrate()gives you aBlitzGseaNullthat serves every library scored against that signature and survivessaveRDS().params_blitzgsea()and aprint()method come with it. -
bixverse-rs0.5.0 under the hood. kNN graphs now return true Euclidean distances, so theis_squaredplumbing is gone from the binding layer. - NNDescent gained
extract_knn: hand back the graph the descent already built instead of running a separate search over the index. -
load_sce()readsSingleCellExperimentobjects. The Seurat loader was deduplicated against it. - Windows builds work on the r-universe runners.
Fixes
-
plot.Hotspot()draws readable module blocks, and the scored modules are the ones the heatmap actually shows. - ICA whitening rank is capped rather than left to blow up on rank-deficient input.
- The external HDF5 is gated on a cross-ABI host.
bixverse 0.4.11
Features
Single cells
- NEBULA for mixed model differential expression, see He, et al., Commun Biol, 2021:
nebula_sc()onSingleCellsandnebula_mc()onMetaCells, for when you have repeated measures per subject and pseudobulk throws away too much. - The miloR neighbourhood test runs in Rust now via
rs_make_milor_nhoods(), behindget_miloR_abundances_sc()andtest_nhoods(). - edgeR quasi-likelihood workflow via the
edge-rscrate:run_edger_ql()does the fit in Rust rather than round tripping through the R package. - Fewer redundant copies in the meta cell sparse handoff.
bixverse 0.4.10
Features
- Consensus NMF implemented:
-
consensus_nmf_bulk()onBulkCoExpandconsensus_nmf_sc()onSingleCellsandMetaCells. -
nmf_k_sweep_bulk()andnmf_k_sweep_sc()sweep a range ofkand report stability against reconstruction error, so choosingkstops being a guess. Both return anNmfKSweepResultwith aplot()method. -
params_nmf_consensus()plus the matching checkmate assertions. - New
ConsensusNmfResultclass withget_w(),get_h(),get_data()and a newget_stability()generic for the clustering diagnostics. -
get_nmf_stability()onBulkCoExpnow covers consensus fits as well as stabilised ones.
-
- Agent skills implemented:
install_agent_skill()installs an agent skill. - VISION scores enabled also for the
MetaCellsclass. - Latent dirichlet allocation (LDA) implemented for decomposing binary data (think cell x TF active binary matrices).
- DIALOGUE also available now.
bixverse 0.4.9
bixverse 0.4.8
Features
Single cells
Meta cells:
- Improved speed for meta cell methods regarding HVG detection and PCA.
- Additional functionalities around meta cell purities: you can return entropy top label and second best label + proportions.
- Hotspot can now also be applied on meta cells.
Single cells:
- Regulon binarisation for SCENIC.
- AUCell now defaults to
"recovery"a more top heavy score. If you want the old behaviour, please use"wilcox". - One-vs-many comparisons to identify cell type markers.
Fixes
- Various edge cases bug fixes in
bixverse-rsthat propagate into here.
Improved dev experience
If you want to develop on the package, set:
Sys.setenv(DEV_BUILD = "true")
devtools::document()
devtools::install()for local testing and exploration. It will optimise less aggressively in terms of performance, but still reach very good speeds this way, while massively reducing compile times.
bixverse 0.4.7
Features
Single cells
- Faster HVG detection across the board (batch-aware, streaming, one-pass) with faster Loess that uses interpolation now. Results compared to prior runs for
"vst"might be slightly different now. - Implementation of two trajectory methods: PAGA and Palantir.
- State management added for all of the single cell parts in the
ScCachepart. Less foot guns in the future. This works still with older objects, but good practice for the future. - Improvements on the meta-cells:
-
cells_to_keepare stored now avoiding some problems with state. - Less memory-hungry merging implemented.
-
bixverse 0.4.6
Features
Single cells
-
bixverse-rsversion bump for better performance in SEACells and more robust streaming engine. Old files will still behave, but the desired target size is now encoded in the files. - The pruning operation has been set to
TRUEby default in SEACells after further benchmarking. - Updated vignettes that had stale information (especially meta cells).
bixverse 0.4.4
Features
General
- NMF implemented for bulk co-expression module detection and updated vignette.
- Synthetic data generators for bulk updated to create different data structures.
Single cells
- Improved cell quality control functions.
- Additional single cell batch correction methods:
- Seurat-inspired CCA anchor-based batch correction
- Seurat-inspired rPCA anchor-based batch correction
-
SingleCellsSubsetclass. This class creates a view into a subset of cells, think doing further analysis on T cells within your data set. - AUCell reworked.
aucell_sc()now takes aparams_sc_aucell()list instead of anauc_typestring, and offers three statistics:"wilcox"(the Mann-Whitney AUC, still the default),"recovery"(the recovery-curve AUC of Aibar et al., with amax_rankcutoff) and"ap"(average precision). Scores can be z-scored per gene set viastandardise. - Something is cooking for the single cell stuff. There has been a major refactor on the Rust side that will enable some very, very, very cool future features. Watch the space…
bixverse 0.4.2
Features
- Faster fgsea multi-level implementation with less unnecessary allocations and faster computations.
Breaking changes
get_centroids() was renamed to get_centroids_sc() for the usage on the fast clustering algorithms.
bixverse 0.4.1
Features
-
SingleCellsSubsetclass that can split from the main class and allows for analysis of e.g., a subset of cell types, etc. - Added singscore, see Foroutan et al., as another option to score single samples and their pathway activity.
bixverse 0.4.0
Features
Following things were added:
- Merging of SingleCells object possible
- Multi file reading in for .mtx files
- Possibility to read in densely stored h5ad files.
- 10x h5 files can be read in.
- Multi-model single cell support set up
- New multi-model class for single cells:
SingleCellsMultiModal. - You can no add the ADT counts to that one (in the future maybe also ATAC- Seq).
- The weighted nearest neighbour graph method from Hao et al., 2021
- New multi-model class for single cells:
- Improved performance on:
- Harmony version 1 and version 2 with substantial speed improvements.
- Hotspot with even more substantial speed improvements via doing less suboptimal things in the Rust code.
- Large improvements to the memory management of SuperCells and SEACells. Both can run on a million cells on consumer hardware now.
- Large number of helpers for plotting via the sister package and updated vignettes for this.
- Reading in of 10x CellRanger h5 files (and multi-file support).
- NMF for single cell wired up. TODO: Add also to bulk -> in one of the future releases.
- Symphony for label transfer of cell types.
- Grouping column for doublet detection methods.
- NicheNet implementation for ligand receptor analysis
Bug fixes
- Multi-file loaders (
load_multi_tenx_h5(),load_multi_h5ad()) no longer writeNAgene ids into thevartable undergene_universe = "union"when the var reference file does not contain every gene in the universe. Thegene_idis now pinned to the canonical universe id and additional data found in the vars is dropped. The user has to add them subsequently. - Properly dealt with the mitch bug and removed the hotfix part.
Breaking changes
The interface to the i/o functions for the single cell was changed. The streaming = TRUE parameter was simplified and gives you now more control over how to stream in data. This can (and will) break old code! If you get an error like:
Assertion on 'streaming' failed. Must be of class 'integer', not 'logical'.
Update the streaming parameter to 0L, 1L or 2L, pending on data set size and available memory. Additionally, the interface to the PCA function has changed, see here:
{r} calculate_pca_sc( object, no_pcs, pca_params = params_sc_pca(), # new parameter replacing randomised_svd sparse_svd = FALSE, hvg = NULL, seed = 42L, .verbose = TRUE )
This gives you way more control over how to run the PCA normalisation (mean centering, variance normalisation or now also the new PFLogPF normalisation).
bixverse 0.3.2
Features
Following things were added:
- scDblFinder as another doublet detection method
- Following methods on top of meta-cells:
- HVG detection
- PCA
- kNN generation
- sNN generation
- Leiden clustering
- SCENIC for meta cells
- Exposing (finally) other HVG methods for single cell
- Addition of
KmKnnas a nearest neighbour method - Fast clustering methods with k-means clustering followed by Louvain clustering.
- Harmony v2 added.
- Following vignettes added:
- K-nearest neighbour searches for single cell
- Metacells in
bixverse - Updates to various single cell vignettes
- Major update to the rextendr/extendr interface
bixverse 0.3.0
The big one… First, shift of versioning + release of full single cell analysis suite. See below for more details.
- Full refactor of the Rust code, so it lives in its own crate
- Single cell officially released:
- Class with getters that leverages on-disk storage of counts and a streaming engine to enable memory-friendly analysis of millions of cells.
- I/O helpers that can read mtx outputs, h5ad, h5ad with only normalised counts, multiple h5ad and conversion from Seurat implemented.
- Fully functional suite of pre-processing functions: proportion of gene sets, proportion of Top N genes of overall counts, HVG detection, PCA (with sparse solving avoiding densification), multiple kNN backends for different use-cases, sNN generation and Leiden community detection.
- Three different batch correction methods implemented: BBKNN, fastMNN and Harmony.
- Various analysis methods for single cell implemented: AUCell, GeneModuleScoring, VISION, Hotspot, SCENIC and miloR implementations.
- Metacell generation: hdWGCNA bootstrap approach, SuperCells and SEACells.
- Large number of convenience functions.
- Sister package started with plotting functions.
- Package with very fast 2D embedding methods also ready as a sister package – check out manifoldsR.
bixverse 0.0.2.3
- RCisTarget implemented in Rust, see Aebir et al. for details.
- Bug fix: scaling in
preprocess_bulk_coexp()caused a matrix transpose.
bixverse 0.0.2.2
- Mitch multi contrast enrichment implemented in Rust.
- Rework and refactor of sub modules in the Rust code.
- Additional Rust functions for set similarity across a list of items in R.
- QC function for the bulk DGE class split into
qc_bulk_dge()andnormalise_bulk_dge(). - Bulk DGE function split into
calculate_dge_limma()andcalculate_dge_hedges(). - Splitting by correlation sign and Eigengene calculation added for CoReMo.
- SNF algorithm added from Wang et al..
- Spectral clustering methods implemented in Rust.
- Breaking change:
rs_set_similarity_list()renamed tors_set_similarity_list2(). The former now takes a single list and calculates set similarity across all permutations of elements. - Breaking change:
preprocess_bulk_dge()andcalculate_all_dges()have been removed.
bixverse 0.0.2.1
- Constrained PageRank implementation added.
- Improved synthetic data for correlation-based gene module detection.
- Improved tests for ICA, CoReMo and graph-based correlation modules.
- Various distance calculations accelerated in Rust.
- Rust-based personalised PageRank implementations now support weighted graphs.
- Bug fixes for the graph-based correlation methods.
- Fixed export bugs for some plotting functions.
- Breaking change: interface to Rust-based personalised PageRank calculations may break due to the addition of a
weightsparameter.
bixverse 0.0.2.0
- Rework of the ontology class with Wang similarity added as an additional measure.
- Rework of the genetic community detection class and diffusion methods, including permutation-based testing for diffusions.
- Rework of the ICA code with a testing suite added for the ICA class.
- Reciprocal best hit method based on correlations added; an additional parameter is now required specifying whether to use set similarity or correlation-based similarity.
- Vignettes added for various methods.
- GSVA and ssGSEA implemented in Rust.
- Rust code reworked in various places for improved performance.
- Mutual information calculations implemented in Rust.
- Improvements to the synthetic data.
- Bug fixes for the graph-based correlation methods.
- Breaking change: ontology class functions and methods have been modified heavily and may be breaking.
- Breaking change: community detection method has been updated; old code may not work.
- Breaking change: ICA detection functions and methods have been updated and may break existing code.
bixverse 0.0.1.4
- TOM implemented in Rust for correlation-based module detection.
- CoReMo-based gene module detection added.
- Breaking change:
cor_module_check_res()renamed tocor_module_graph_check_res()andcor_module_final_modules()renamed tocor_module_graph_final_modules().
bixverse 0.0.1.3
- fgsea multi level method implemented;
n_more_extremeis now returned by GSEA functions. - RBF function implementations added for R matrices.
bixverse 0.0.1.2
- fgsea simple implemented for gene ontology with elimination method.
- Improved gene ontology elimination methods to reduce unnecessary copying.
bixverse 0.0.1.1
- Semantic similarities for ontologies added.
- Speed improvements in various Rust functions via reduced memory copying and use of lifetimes.
- Package stability improved with tests powered by tinytest.
- Set similarity Rust functions exposed.
- DGE class added for Limma Voom differential gene expression calculations.
- Wrapper functions added to load h5ad objects into R memory.
- Traditional GSEA and fgsea simple ported into Rust.
- Bug fix:
future::plan()for iterating over resolutions in reciprocal best hit graph generation. - Bug fix: hypergeometric calculations and RBH graph.
- Breaking change:
community_detection()now usesparams_community_detection()for parameters.
bixverse 0.0.1.0
- Hypergeometric tests for gene set analysis for single or lists of target gene sets.
- Gene ontology aware hypergeometric test for GO analysis.
- Network diffusion methods based on personalised PageRank (single and tied diffusion).
- Community detection algorithms on top of diffusion scores.
- Reciprocal best hit graphs using set similarities between gene modules from different data sets or methods.
- Contrastive PCA implementation for gene module detection.
- Differential correlation-based methods for gene module detection using network-based graph community detection.
- Independent component analysis with stabilised versions.
- Helper functions for Hedge’s G effect size and OpenTargets score summarisation.