Skip to contents

scop (development version)

  • compatibility:
    • 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.
    • RunscTenifoldKnk() drops backend and replaces qc_min_cells with qc_min_pct. RunCellRank(), RunPalantir(), and RunSCENICPlus() drop allow_approximate. Use DynamicHeatmap(), DynamicPlot(), or EnrichmentPlot() for views removed from CellRankPlot().
    • 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.
    • Prevent conflicting pandas installs in PrepareEnv() (#561, @River366; #562,
      1. 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:
  • 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.
    • ScaleData() supports Assay5 cell subsets; SPARK-X retains sparse input.
  • deps:
    • Require thisutils >= 0.5.2.
  • data:
    • 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 RunCOMMOT(), COMMOTPlot(), RunSpaTalk(), and SpaTalkPlot() for spatial communication analysis and visualization.
    • 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.
    • Add RunIntegrationBenchmark() and IntegrationBenchmarkPlot(). Replace LISIPlot() with IntegrationBenchmarkPlot(plot_type = "box").
    • Extend SCENIC and SCENICPlus plots with activity, coverage, regulatory networks, and overlap views.
  • change:
  • 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.
    • RunRCTD() extracts per-spot all_weights from spacexr >= 2.2 doublet_mode = "multi" results.
    • 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

scop 0.8.9

  • feat:
    • Add loom_to_srt() without requiring Python, preserving velocity layers, and loom_to_adata() for AnnData output.
    • 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.

scop 0.8.8

  • fix:
    • Added optional wrappers for RunDorothea(), RunBayesSpace(), and RunscTenifoldKnk().
    • 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.
    • DynamicHeatmap() shows term names for custom enrichment databases instead of fallback IDs (#160, 1; thanks to @Pineapple-wen6).
    • RunIntegration(): Improved ChromatinAssay handling by standardizing ATAC reductions after integration, avoiding non-interactive small-batch blocking, clipping TFIDF/rlsi anchor dims to available cells, auto-switching Harmony5 to legacy Harmony, and rejecting unsupported Seurat / RPCA ATAC paths with explicit messages.
  • deps:
    • Require thisplot >= 0.3.8 and thisutils >= 0.4.5.

scop 0.8.7

scop 0.8.6

  • feat:
  • fix:
  • data:
    • Removed the example datasets ifnb_sub, ref_scHCL, and ref_scZCL.

scop 0.8.5

scop 0.8.4

  • fix:
    • Align box and violin plots with grouped comparisons (#123, @oranges7).

scop 0.8.3

scop 0.8.2

scop 0.8.1

scop 0.8.0

  • feat:
    • 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.

scop 0.7.9

scop 0.7.8

  • feat:
    • 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.
  • fix:
    • Stop forwarding the unsupported plot_format parameter in RunPalantir() (#114, @Moonerss).
    • 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.

scop 0.7.7

  • feat:
  • fix:
    • 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.

scop 0.7.5

scop 0.7.3

  • feat:
    • RunCellTypist(): New function for cell type annotation using the CellTypist method.
    • CellTypistModels(): New function for downloading and managing CellTypist pre-trained models.

scop 0.7.2

Maintenance release.

scop 0.7.1

scop 0.7.0

  • feat:
    • PrepareEnv() uses uv for Python packages, with pip as a fallback.

scop 0.6.6

Maintenance release.

scop 0.6.5

scop 0.6.2

  • feat:
    • CellChatPlot(): Adjusted the size of saved figures for better file size optimization.

scop 0.6.1

scop 0.6.0

  • feat:
    • Cache Python environment setup and prepare the environment automatically for trajectory workflows.
    • cluster_within_group2(): New function for clustering within groups.
  • fix:
    • Removed RunMonocle() function and related documentation (RunMonocle2.Rd, RunMonocle3.Rd).
    • Replaced custom theme functions with thisplot::theme_this() (exported as theme_scop()).
    • Removed palette_list data object.
  • deps:
    • Added thisplot to Imports for theme and utility functions.
    • Added ggsankey to Suggests for Sankey diagram support.
    • Removed unused dependencies: Biobase, BiocGenerics, concaveman, DDRTree, glmGamPoi, hexbin, monocle, png, ragg, tidyr.

scop 0.5.5

scop 0.5.4

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.
    • CellCorHeatmap(): - Renamed parameters: query_cell_annotation → query_annotation, ref_cell_annotation → ref_annotation. - Improved error message formatting through cli formatting. - Simplified variable assignments and improved readability.

scop 0.3.1

  • feat:
    • 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.

scop 0.2.9

Maintenance release.

scop 0.2.7

  • feat:
  • data:
    • Delete lifemap data, including: lifemap_cell, lifemap_compartment and lifemap_organ.
    • Reconstructed the sample data for both panc8_sub and pancreas_sub, retaining only the basic Seurat object.

scop 0.2.6

  • feat:
    • Added remove_r() function for easy remove R packages.
    • Rename function: RemovePackages() to remove_python().
    • Delete useless import packages: BBmisc, BiocManager, covr, devtools, promises and withr.

scop 0.2.5

  • feat:
    • 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:
  • 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.

scop 0.1.5

scop 0.1.4

  • feat:
    • Update PrepareEnv() function for easy add or update a conda environments and install Python packages.
    • Added ListEnv() and RemoveEnv() functions for easy management of conda environment and Python packages.

scop 0.1.3

scop 0.0.9

  • fix:
    • The default Python version is now set to 3.10-1.

scop 0.0.6

scop 0.0.5

  • data:
    • Updated the pancreas_sub and panc8_sub test datasets to the Seurat v5 object format.

scop 0.0.1

  • feat:
    • Initial release.