Battlefield
Bioc currentSwiss-army toolkit for selecting niche fronts and invasive margins in spatial transcriptomics data
Release Lineage
Entered 3.23 · Apr 29, 2026
Current · Requires R 4.6
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.
Call graph
Open 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
API
Exported functions
31
Internal functions
3
Recent export changes
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
- Examples that run
- 100%
- Documented parameters
- 97%
- Return-value docs
- 100%
- References docs
- 0%
Topics
People
- Jean-Philippe Villemin author maintainer
- European Research Council fnd
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("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.
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.