Skip to content

Battlefield

Bioc current

Swiss-army toolkit for selecting niche fronts and invasive margins in spatial transcriptomics data

v1.0.0 · software · CeCILL | file LICENSE

Release Lineage

Entered 3.23 · Apr 29, 2026

Current · Requires R 4.6

1.0 In 1 of 49 releases 3.23

Description

Battlefield is a Swiss-army toolkit originally developed to define and extract spatial spots from specific tissue regions—such as front regions, niche borders, invasive margins, and cluster interfaces—using spatial transcriptomics data or clustered tissue maps. It has since been extended to support trajectory selection and layer inspection, and now provides a collection of low-level utilities for spatial transcriptomics analysis. These utilities are primarily intended to be reused within higher-level analytical packages. It is designed to work with sequencing-based platforms such as Visium at several resolutions and Visium HD(binned).

Test coverage

Line coverage

Expression

Tests / Examples

Functions

33 31 exported

Complexity

4.3 avg / 13 max

Call network

33 nodes / 20 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

7,351

Files

65

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,076 (41.8%)Tests 1,321 (18%)Docs 2,332 (31.7%)Vignettes 622 (8.5%)

API

Exported functions

31

Internal functions

3

Recent export changes

v3.23+31 add_borders_to_spe, add_layers_to_spe, add_trajectories_to_spe +28 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.43

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.6

System requirements

C++ standard

License

CeCILL | file LICENSE

License flags

not SPDX, not OSI

History

Versions

1

First release

2026-04-28

Latest release

2026-04-28

Avg cadence

Cold removal rate

Dep drift

0

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

Documentation

Documentation
READMEYes · 286 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
97%
Return-value docs
100%
References docs
0%

Topics

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("Battlefield")
Villemin, J., & European Research Council. (2026). Battlefield: Swiss-army toolkit for selecting niche fronts and invasive margins in spatial transcriptomics data (Version 1.0.0) [Computer software]. https://bioconductor.org/packages/Battlefield

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 Battlefield version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-08-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-23, 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