Skip to content

CARDspa

Bioc current

Spatially Informed Cell Type Deconvolution for Spatial Transcriptomics

v1.4.0 · Package record · software · GPL-3 + file LICENSE

Release Lineage

Entered 3.21 · Apr 16, 2025

Current · Requires R 4.6

1.0 In 3 of 49 releases 3.23

Description

CARD is a reference-based deconvolution method that estimates cell type composition in spatial transcriptomics based on cell type specific expression information obtained from a reference scRNA-seq data. A key feature of CARD is its ability to accommodate spatial correlation in the cell type composition across tissue locations, enabling accurate and spatially informed cell type deconvolution as well as refined spatial map construction. CARD relies on an efficient optimization algorithm for constrained maximum likelihood estimation and is scalable to spatial transcriptomics with tens of thousands of spatial locations and tens of thousands of genes.

Advisories

None published for Bioconductor

Test coverage

Line coverage

–

Expression

–

Tests / Examples

–

Functions

29 9 exported

Complexity

6.2 avg / 26 max

Call network

29 nodes / 18 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

4,997

Files

68

Compiled share

8.3%

Has compiled src

Yes

Language breakdown

R 2,525 (50.5%)C/C++/src 415 (8.3%)Tests 126 (2.5%)Docs 1,323 (26.5%)Vignettes 608 (12.2%)

API

Exported functions

9

Internal functions

15

Recent export changes

v3.21+9 CARD_deconvolution, CARD_imputation, CARD_refFree +6 more

Testing

Has tests

Yes

Test-to-code ratio

0.05

testthat edition

–

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

3.6%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.3.0

System requirements

–

C++ standard

–

License

GPL-3 + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2025-04-15

Latest release

2026-04-28

Avg cadence

189 days

Cold removal rate

–

Dep drift

1

LOC over versions

v3.21: 4,992 LOCv3.22: 4,997 LOCv3.23: 4,997 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

In the Bioconductor 3.23 release
READMEYes · 272 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structuredCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
32
Examples that run
100%9 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%
Vignettes (1)

Repository practices

Upstream repositoryBeta

Checks run against github.com/yma-lab/cardspa on 2026-10-21.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v4 (2026-10-20)

Datasets

Bundled datasets · 5
NameClassSizeAlso in
markerListlist20 elementsNo other package
sc_countdgCMatrix7,000 × 1,926No other package
sc_metadata.frame1,926 × 3No other package
spatial_countdgCMatrix11,000 × 428No other package
spatial_locationdata.frame428 × 2No other package

All of CARDspa's data objects

Topics

Maintainer
Jing Fu

Available on

CRANr2uBioconductorautoCRANCOPR

Depended on by (1)

Bioconductor (1)

People

Cite

Cite this package

Run in R for the authors' entry:

citation("CARDspa")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1038/s41587-022-01273-7.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CARDspa version 1.4.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy