Select network methods with RunGRN(methods = ...) rather than grn_method. Seurat calls return the updated object; use return_type = "edges" for an edge table. Matrix calls still return an edge table by default.
Use object instead of srt (srt still works where deprecated) and cores for thread counts. Use Seurat’s SCTransform() in place of scop’s SCT helpers.
FOV plots show y increasing downwards by default; use flip.y = FALSE to restore the previous display. Stored coordinates do not change. Rerun old spatial results if their coordinate source cannot be verified.
feat:
Run transcriptomic, time-resolved, and paired RNA–ATAC network methods with RunGRN(). Use GetGRN() to inspect results and GRNPlot() to draw them. PrepareDB() can prepare references for LINGER and SCENIC+.
Add pathway and ligand–receptor hierarchy views to CCCNetworkPlot(). The circle remains the default.
Support Atera and mixed Visium HD inputs, and extend ATAC and multiome workflows with region counts, motif plots, and footprint analysis.
Add CellTreePlot() and CellOracle workflows. RunEnrichment() accepts a gene background via universe; GroupHeatmap() accepts separate expression and percentage legend settings.
fix:
RegDiffusion uses a separate Python environment. SCENIC with backend = "cpp" does not require a Python environment.
Fix extra blank pages in exported communication plots. Keep heatmap legends on the right by default and simplify bubble legends.
and fix large-data neighbor searches in RunPAGA().
Preserve numeric annotations with missing values in FeatureHeatmap(). Keep GSEA weights finite when reported P values are zero.
Correct Palantir, CellRank, and scVelo calculations. Previously computed results may change.
docs:
Add a walkthrough for single-cell and spatial communication analysis and plotting.
scop 0.9.2
compatibility:
RunSpatialGradientFeatures() drops older arguments such as sample_name, platform, distance, and annotation_ids. Use image, coord.cols, coordinate_space, and the documented screening options.
RunMonocle2() ignores the deprecated backend and n_neighbors arguments. Supply a trajectory State to root_state, not a group.by label.
SpatialGradientPlot() now reads only stored summary, line, and model views. surface/combined plot types and current-assay/layer refetch are removed.
Remove GetSpatialResult(), ListSpatialMethods(), SpatialBackendStatus(), and SpatialResultInfo(). Use the result documented by each analysis function.
feat:
RunSpatialIntegration(store_object = FALSE) omits the complete PRECAST object but retains summaries and plotting data.
SpatialNeighborhoodProfile() reports observed neighbor counts and fractions at multiple distances without changing the input object.
RunDEtest() excludes pseudobulk samples with fewer than 10 cells per group by default. Set min.cells.sample = 1 to retain the previous behavior.
RunNichenetr() and RunMultiNichenetr() can export merged interaction and activity tables with merged_table_file; existing files are not overwritten.
Add BANKSY, SmoothClust, SpotSweeper QC, and SpaNorm to the spatial workflow. SpaNorm keeps original counts separate from normalized expression.
change:
ReadSpatialData() uses Seurat for Visium, Visium HD, and Xenium and records the selected image, assay, and coordinate units.
Preprocessing respects do_normalization = FALSE, including for externally normalized input.
fix:
Cell2location retains all original spots, marking filtered ones as missing. Results with unknown or inconsistent spot IDs are rejected.
Spatial and deconvolution maps respect cutoffs, quantiles, and combine = FALSE, keep comparable legends for constant values, and retain factor order and named colors.
Spatial plots preserve coordinate aspect ratios and accept metadata names containing spaces. SpatialCellPlot() gains layout and legend controls and respects the selected assay and layer.
Spatial integration maps use each sample’s matching image. Aligned views do not overlay raw images.
Deconvolution reports unassigned spots separately rather than assigning zero-weight spots to a cell type.
Restore cores support for SpatialEcoTyper and MERINGUE; the deprecated ncores alias still works.
SpaTalk and COMMOT plots honor custom themes.
Fix duplicate data-object arguments in doublet calling and prevent R-only arguments from being passed to Python wrappers.
srt_to_adata() retains velocity layers such as spliced and unspliced in Seurat v5 objects and reports missing layers.
MistyRPlot(measure =) selects the numeric result column explicitly (gain.R2/gain.RMSE or contribution/importance).
PRECAST outputs must match Seurat cell identities.
Spatial coordinate contract v3 preserves axis settings across subsetting and renaming. Rerun coordinate-dependent results created with v2.
Spatial point and pie plots match network and boundary orientation by default. SpatialExperiment exports use raw coordinates.
Spatial integration and SpatialEcoTyper match images to samples, and SpotSweeper restores the original cell order.
Neighborhood summaries distinguish zero counts from untested cells and honor the saved analysis scope.
RunMonocle2() skips dispersion fitting unless requested by feature_type = "Disp" or show_plot = TRUE. Monocle 2.9.3 fixes the sparse-matrix limit in dispersion fitting.
perf:
Speed up RunMonocle2() ordering without changing pseudotime, trajectory states, or the root cell.
Remove pbmc_celltypist_sub, visium_human_pancreas_results_sub, visium_human_pancreas_pair_sub, and xenium_human_pancreas_boundaries_sub. The examples now reuse pbmcmultiome_sub and visium_human_pancreas_sub and compute results when needed.
docs:
Refresh Spatial Analysis tutorials with a Visium example, platform-specific imports, and SpatialExperiment/Giotto conversion.
scop 0.9.1
compatibility:
Remove the CaSpER option from RunCNV() because it crashes on R >= 4.5. Use copykat, fastCNV, scevan, infercnv, or numbat.
feat:
Speed up Seurat-compatible preprocessing and integration while retaining Seurat fallbacks. SCTransform(vst.flavor = "v2") accepts additional regression designs and latent.data.
Added CellScoringPlot() for paired group/score UMAPs, score distributions, threshold proportions, and complete multi-program layouts from CellScoring() results.
Extend CellRank and Palantir workflows with MAGIC, fate and transition summaries, trend modules, and module enrichment.
Add spatial network overlays for SpatialCellChat, SpaTalk, and COMMOT.
Validate the five supported RunCNV() methods against their reference workflows.
Remove RunSpatialQM(), the RunSemla*() wrappers, and the BASS and SpatialMNN options in RunSpatialIntegration(). PRECAST remains available. Remove the SPATA2 option and converters; RunSpatialGradientFeatures() retains its C++ backend.
RunMERINGUE() supports backend = "cpp" for faster permutation tests; use backend = "r" to run the MERINGUE implementation.
Extend DorotheaPlot() with comparison, activity, and target-gene views.
Reuse Scanpy and scVelo results from converted AnnData objects in plotting and downstream analyses.
fix:
RunCellRank() retries fate calculations without PETSc and defaults to schur_method = "brandts". "krylov" remains available when its dependencies are installed (#380, @christinejay990202-dev).
CellRank plots can use saved transitions and trend modules; driver enrichment selects the gene-ID column that matches the input.
Coordinate-contract validation now covers unified CCC plots for SpatialCellChat, COMMOT, and SpaTalk without rejecting coordinate-independent SpatialDWLS proportions. Explicit coordinate_space = "legacy_display" analysis preserves its historical lowres-to-hires fallback; current display plotting remains strict about the selected scale.
Spatial coordinate contract v2 now reads full-resolution VisiumV1/VisiumV2 coordinates, restores the imagerow/imagecol order that Seurat’s standard VisiumV2 loader stores positionally as centroid x/y, preserves explicit generic FOV x/y, normalizes only explicitly named legacy image row/column coordinates, and applies exactly one selected lowres or hires display transform. SpatialCoordinates(), HE-overlay point/pie/network plots, and their public wrappers gain an appended image.scale argument; variadic wrappers keep it named-only after .... Raw SpatialCellChat analysis no longer requires an available display scale, and coordinate-independent producers no longer claim a coordinate-contract version. Users no longer need to modify Seurat @scale.factors slots. Coordinate-dependent stored results created under an older or unknown contract must be rerun.
RunSlingshot() / CellDimPlot(lineages=) no longer fail with scale$guide == "none" on ggplot2 >= 3.5 when ggnewscale is older than 0.5.0. Colour/fill scales now keep a character guide, legend overrides go through guides(), ggnewscale is pinned to >= 0.5.2, and a failed lineage plot no longer discards the Slingshot result.
RunGSEA() / RunEnrichment() no longer fail with “replacement has 0 rows, data has N” when the cached database carries an empty version. The KEGG REST API dropped the Release line from /info/<org>, so PrepareDB() now resolves the KEGG version from the release-notes page when the info endpoint does not report it (retrieval-date fallback; HPO hardened the same way), and the enrichment writers tolerate missing versions.
RunSpaTalk() now reuses stored RunRCTD() weights through SpaTalk method 2 and records the deconvolution source.
RunLIANA() now preserves the field set returned by LIANA’s official consensus mode: rank consensus no longer gains all-NA aggregate/significance placeholders, aggregate consensus no longer gains all-NA magnitude/specificity placeholders, and deterministic ligand-receptor display identifiers are completed during SCOP/LIANA export.
RunCNV() resolves bundled backend annotations for copykat, fastCNV and numbat.
RunCNV(numbat) prefers the plain seg column over seg_label when reading joint_post output, so segment identifiers are not polluted with the (loh) suffix.
RunCNV() numbat extraction is vectorized (direct index assignment with duplicate averaging instead of row-by-row aggregate/strsplit, plus split()-partitioned bin statistics): a 300-seg x 2000-cell joint_post extraction drops from ~16s to ~1.3s (~12x) with bit-identical results.
visium_mouse_brain_slices_sub rebuilt with the current SeuratObject so bundled VisiumV2 images can be subset again.
RunSpotSweeper() detects upstream SpotSweeper::localVariance breakage on SpatialExperiment colData and degrades gracefully.
RunSpatialIntegration(PRECAST) writes the raw coordinates expected by CreatePRECASTObject.
RunLIANA() recognizes logfc_comb (and other liana method score columns) as the interaction score.
Exported theme_scop / theme_spatial are listed in the pkgdown reference index.
DorotheaPlot(plot_type = "volcano") plots every tested TF, caps Wilcoxon underflow on the y-axis, colors points by direction, and labels significant TFs. "targets" labels only significant genes so leader lines no longer pile at x = 0.
scop 0.9.0
feat:
New optional-backend wrappers: RunCHOIR() for significance-based hierarchical clustering and RunCell2fate() for RNA-velocity modeling, both with pinned backend provenance, strict result validation, metadata writeback, and resumable artifacts.
Added RunCell2location() for official Python cell2location reference-signature learning and spatial abundance mapping, with manifest-validated resume, signature reuse, and Cell2locationPlot() visualizations.
Added RunCNV() as a unified CNV workflow with optional copykat, infercnv, SCEVAN, and fastCNV backends, standardized srt@tools[["CNV"]] storage, and CNVPlot() visualizations; added RunESTIMATE() for stromal/immune/tumor-purity scoring with EstimateScorePlot() / EstimateGenePlot().
Added RunSpatialCellChat() as a SpatialCellChat v3 producer for cell-, spot-, and composition-level communication, with raw-to-micron coordinate contracts and schema-v1 provenance; GetCCCObject() and SpatialCellChatPlot() provide stored-result access.
Spatial analysis framework: added spatial contract schema v1 (SpatialCoordinates(), GetSpatialResult(), GetSpatialGraph()), a shared spatial method registry (ListSpatialMethods(), SpatialBackendStatus(), SpatialResultInfo()), strict raw-coordinate defaults, and sparse BiocNeighbors-backed graph kernels for SmoothClust, spatial-variable-feature, and spatial-neighborhood paths.
Speed up preprocessing, marker detection, reduction, trajectory inference, gene-set scoring, and spatial graph calculations.
RunMetabolism() now builds gene sets via PrepareDB() by default with species-aware conversion; PrepareDB() accepts local single-file database sources (MSigDB, CORUM, JASPAR, TRRUST, CellChat, and more); RunSCENIC() gained a genome parameter for hg38/hg19 reference selection.
RunSpatialNeighborhood() defaults to observed-neighborhood summaries; the standard spatial workflow records per-stage requested/completed/skipped/failed state and reports partial completion.
Spatial analysis, plotting, and framework conversion now require explicit image selection for multi-image objects; distance-sensitive producers default to raw acquisition coordinates (coordinate_space = "legacy_display" remains available).
data:
Added visium_human_pancreas_sub, a Visium human pancreas spatial example dataset (GSE254829) with spatial image data and CODA-derived annotations, for spatial analysis.
Add RunBulk() for differential expression, deconvolution, and cell-type-specific differential expression, with method-specific settings and standard result storage.
Bulk results work with existing enrichment and GSEA plots.
Added explicit Remotes entries for mengxu98/thisplot and mengxu98/thisutils so source installs can resolve the minimum imported versions required by SCOP.
RunLIANA() stores consensus alongside earlier results and aggregates resources separately.
RunCCC() adds more methods while keeping CellChat, CellphoneDB, and LIANA as defaults. Plot methods separately or compare support and within-method ranks.
Unified communication results respect context filters and significance thresholds. skip_failed = TRUE records errors and continues with available methods.
fix:
Reduce memory use in gene-set scoring, cell QC, graph operations, reductions, and standard workflows by keeping sparse data or accessing only needed features.
Fix Seurat v4 layer selection and PCA centering. Reject integration methods that require a v5 assay when given a v4 object.
RunIntegration(): Added early detection for v5-only integration methods (CCA, RPCA, fastMNN5, Harmony5, scVI5) to provide a clear, actionable error message when used with Seurat v4 Assay objects, rather than failing deep in the call stack.
PrepareEnv() supports mamba and micromamba. It checks for Python conflicts before switching interpreters and keeps support for packages that require older setuptools.
PrepareEnv(): The default modules = NULL environment no longer includes scomm; install it explicitly with modules = "scomm" because the TensorFlow/scOMM stack conflicts with the default JAX/scVI stack through incompatible ml-dtypes requirements.
Reduce memory use during preprocessing, cluster reordering, and marker filtering; retain feature selection from the requested layer.
Use backend = "cpp" by default for metabolism, GSVA, cell scoring, and enrichment where supported. Use backend = "r" for the previous behavior.
Expand C++ scoring to ssGSEA, Z-score, PLAGE, GSVA and optional AUCell; cpp_chunk_size controls GSVA memory use.
CellScoring(method = "AUCell"): Fixed score-name assignment when only one feature list is scored, avoiding vector dropping before metadata column names are applied.
RunMetabolism(method = "VISION"): Fixed signature construction so in-memory gene sets are passed as VISION::Signature objects instead of being interpreted as file paths.
Added Coralysis_integrate() and exposed Coralysis through RunIntegration(), following the official Seurat v5 compatible workflow via SingleCellExperiment.
Added h5ad_to_srt() for reading .h5ad files directly into Seurat objects via scanpy.read_h5ad(), with automatic CSR/float64 coercion to avoid reticulate conversion issues. Layers that fail conversion are gracefully skipped and reported.
adata_to_srt(): Improved robustness of layer conversion — each layer is now wrapped in tryCatch() so that individual failures no longer abort the entire conversion; skipped layers are reported as warnings.
RunCellChat(): Enhanced to support condition-specific analyses and pairwise merged comparisons via group_column and group_cmp parameters.
Added RunCellphoneDB() for running CellphoneDB cell-cell communication analysis on a Seurat object through the official Python package, with support for species conversion and results stored in srt@tools[["CellphoneDB"]].
Added RunNichenetr() and RunMultiNichenetr() for running NicheNet and MultiNicheNet analysis on Seurat objects with standardized result storage.
Added unified cell-cell communication plotting functions CCCStatPlot(), CCCHeatmap(), and CCCNetworkPlot() for CellChat, CellphoneDB, NicheNet, and MultiNicheNet results.
Remove CellChatPlot().
fix:
RunUMAP2(): Fixed reduction lookup to check existing reduction names before falling back to DefaultReduction(), avoiding errors when the exact reduction name is already present.
scop 0.8.6
feat:
Added RunGSVA() for gene set variation analysis and GSVAPlot() for visualization of GSVA results. (#146 (1)).
ListDB(): Now supports multiple species in the species parameter simultaneously and adds Species and DB columns to the output data frame for clearer identification.
Improve Python environment support on Apple Silicon.
scVI_integrate(): Unified parameter naming by renaming num_threads to cores for consistency across integration functions.
LIGER_integrate() * Migrated to the rliger 2.x workflow (rliger::runIntegration() + rliger::quantileNorm() on Seurat object) and now prepares/uses the ligerScaleData layer via rliger::scaleNotCenter() before integration. * Updated argument naming from LIGER_dims_use to liger_dims_use, and removed legacy quantile-normalization parameter compatibility mapping (ref_dataset), keeping reference as the supported interface.
scop 0.8.4
fix:
Align box and violin plots with grouped comparisons (#123, @oranges7).
scop 0.8.3
feat:
Add PreTSA support in RunDynamicFeatures() via fit_method = "pretsa", with configurable spline knots.
DE plots accept a stored result table through res (#129, 1).
PrepareEnv(): Update version parameter to specify the Python version of the conda environment. Default is "3.11-1" on Windows and "3.10-1" on macOS and Unix. (#103 (@PanSX-Dr)).
RunNMF(): Add the cores parameter for RunNMF() and optimize the printed message.
FeatureHeatmap(): Fixed group_palcolor when a named vector is passed: the function previously used only the first color for all groups because group_palcolor[[1]] on a vector returns a single element. Now when group.by has length 1, a vector is automatically wrapped as a list; when within_groups = TRUE, group_palcolor is expanded in line with group_palette.
GroupHeatmap(): Same group_palcolor fix as FeatureHeatmap(): support for named-vector input and correct expansion when within_groups = TRUE.
RunMonocle2(): New function for performing Monocle2 trajectory analysis with support for various dimensionality reduction methods (DDRTree, ICA, tSNE, SimplePPT, L1-graph, SGL-tree). Uses the fixed version of monocle2 from mengxu98/monocle.
RunMonocle3(): New function for performing Monocle3 trajectory analysis with support for cell ordering, trajectory learning, and pseudotime computation.
RunCytoTRACE(): New scop implementation for running CytoTRACE 2 analysis to predict cellular potency scores and categories (Differentiated, Unipotent, Oligopotent, Multipotent, Pluripotent, Totipotent) with support for human and mouse species.
CytoTRACEPlot(): New function for visualizing CytoTRACE 2 analysis results.
adata_to_srt(): Removed automatic removal of “X_” prefix from dimensionality reduction names in obsm keys. The function now preserves original reduction names as they are stored in AnnData objects.
RunSCVELO(): Fixed PAGA computation error by replacing scv.tl.paga with sc.tl.paga (scanpy implementation) for better stability. The function now uses the same PAGA implementation as RunPAGA() function.
RunCellRank(): Fixed GPCCA Schur decomposition error by adding fallback mechanism. When brandts method fails with “subspace_angles” error, the function automatically tries krylov method. If both methods fail, it automatically switches to CFLARE estimator for more robust computation.
RunCellRank(): Fixed recover_dynamics error by ensuring velocity_graph and velocity_graph_neg are properly set before calling scv.tl.recover_dynamics() for latent time computation.
data:
Reducing the size of pancreas_sub example dataset.
RunDEtest(): Fixed error when comparing one cluster against multiple clusters using group1 and group2 parameters. (#111 (@zhaoxiaoyan9225)).
AnnotateFeatures(): Fixed bug where the function would fail when processing GTF file annotations due to column name matching issues during data naming. The function now correctly handles column name intersections when merging annotation data.
scop 0.7.6
feat:
RunDM(): Added automatic PCA-based dimensionality reduction when using many features (>1000) to speed up diffusion map computation. The npcs parameter can be used to control the number of principal components used for pre-processing.
PrepareEnv() uses uv for Python packages, with pip as a fallback.
scop 0.6.6
Maintenance release.
scop 0.6.5
feat:
PrepareEnv() configures Python thread limits and accepts required conda Terms of Service automatically, improving environment stability and setup. (#85 (@SJTU-wyk)).
Fixed SingleCellExperiment object creation in RunScmap() and RunSingleR() functions: changed from coercing SummarizedExperiment to directly constructing SingleCellExperiment objects.
scop 0.5.3
feat:
PrepareDB(): Changed default Ensembl_version parameter from 103 to NULL for more flexible version handling.
scop 0.5.1
Maintenance release.
scop 0.5.0
feat:
RunCellChat(): New function to perform CellChat analysis for investigating cell-to-cell communication with support for human, mouse, and zebrafish species.
CellChatPlot(): New function to visualize CellChat analysis results with various plot types and customization options.
deps:
Added CellChat package dependency with remote repository jinworks/CellChat.
scop 0.4.0
feat:
RunProportionTest(): New function to perform Monte-carlo permutation test for quantifying cell proportion differences between conditions.
ProportionTestPlot(): New function to generate proportion test plots with customizable significance thresholds and visualization options.
scop 0.3.4
Maintenance release.
scop 0.3.3
Maintenance release.
scop 0.3.2
feat:
GetFeaturesData() and AddFeaturesData(): Enhanced argument clarity, added input validation, and standardized return values for Seurat, Assay, and Assay5 objects.
EnrichmentPlot() and GSEAPlot(): Removed conditional font face styling (face = ifelse() logic) for better text rendering consistency. Set the default value of lineheight from 0.5 to 0.7.
scop 0.3.0
feat:
Fix crashes and improve Apple Silicon support for Python-based trajectory, embedding, and doublet detection workflows.
Rename function: palette_scop() to palette_colors().
scop 0.2.4
feat:
Rename functions: check_srt_merge() to CheckDataMerge(), check_srt_list() to CheckDataList and check_data_type() to CheckDataType.
scop 0.2.2
Maintenance release.
scop 0.2.0
feat:
Added remove_python() function for easy remove Python packages.
fix:
Corrected an issue in py_to_r2() function (intrinsic function), which ensures that Python-dependent functions like RunPAGA() and RunSCVELO() function run correctly.
scop 0.1.9
feat:
Update CellScoring() and AddModuleScore2() functions. Now, new parameters cores and verbose have been added.