Migration Corridors and Genetic Range Shifts from Landscape Genetic Data
Overview
Models genetic connectivity along migration corridors and forecasts how it shifts under climate change, following Maier et al. (2022) doi:10.1038/s41437-022-00561-x. Least cost corridors are built from accumulated cost surfaces and used as weights to summarize raw environmental layers between sites; each group of environmental features can choose its own corridor bandwidth; and pairwise predictions of differentiation and directional migration are mapped back onto the landscape as magnitude and net-direction surfaces. Includes readers for common genotype formats (STRUCTURE, GENEPOP, VCF, GenAlEx, FSTAT and PLINK files, and 'adegenet' objects), pairwise fixation indices, and the directional differentiation of Sundqvist et al. (2016) doi:10.1002/ece3.2096.
- The package description no longer starts with "Tools for", and file formats are no longer quoted (CRAN request).
- The example data no longer raise warnings with older GDAL and PROJ libraries: the sites are stored as GeoPackage 1.2, and the example coordinate system names its datum (WGS84) explicitly. Coordinates and values are unchanged.
- New
rank_resistance()compares candidate resistance surfaces by how well least cost distance through each explains genetic distance (mixed models with source and destination as random effects), with straight-line distance as a baseline. The tutorial uses it in step 2. fit_connectivity()andselect_bandwidth()now keep both directions of a pair (A to B and B to A) in the same cross-validation fold. Before, a pair could be predicted from its own reverse, which inflated cross-validated R2 and could favor overfit settings.
From NEWS.md in the release
Install
Health
- OK10 OKNow
- OK6 OK2026-10-23
Documentation
- Help pages
- 24 (1 internal)includes a package overview page
- Examples that run
- 50%11 run in a plain check · 11 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 84%
- Return-value docs
- 100%
- Help pages citing references
- 17%
Downloads
Repository
Repository github.com/paulmaier/corridor is linked, but repository-practices checks have not run for it yet.
Dependencies
Code & Tests
Datasets
People & History
- 0.2.0Latest2026-10-22 · current release ·
8 days in CRAN's queue
Listed in CRAN's incoming queue from 2026-10-14 15:39 to 2026-10-22 12:59 UTC, in 48 readings. - RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-10-22
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 4.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("corridoR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1038/s41437-022-00561-x.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
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.