Skip to content

Merging translocation, new genetics and spatial demography#89

Merged
JetteReeg merged 379 commits intodevelopfrom
transloc_new_genetics_spatial_demog_merge
Dec 16, 2025
Merged

Merging translocation, new genetics and spatial demography#89
JetteReeg merged 379 commits intodevelopfrom
transloc_new_genetics_spatial_demog_merge

Conversation

@JetteReeg
Copy link
Collaborator

The transloc_new_genetics_spatial_demog branch includes:

  • all changes introduced in the new genetic module (regular merges of new_genetics into transloc_new_genetics_spatial_demog_merge)
  • translocation feature:
    • introduces a new class for management features. So far it only holds translocation of individuals.
    • Individuals with given characteristics in a given cell or patch are randomly selected and translocated/added to a different given cell or patch
  • spatial demography:
    • the three demographic rates fecundity, development and survival can vary spatially for models using habitat suitability maps.
    • in the transition matrix, the user sets the maximal rates.
    • in habitat maps, the user defines the factors for each cell, which are applied to the maximal demographic rates. (similar to the effect of habitat quality on the K_DensDep parameter)
    • there can be up to 3sexesstages additional maps/layers provided
    • each stage and sex is assigned a layer number, which are used for spatially varying rates. If a rate is not spatially varying, the user assigns -9 (batch) or NA (R-pkg).
    • this feature was first published in Malchow et al (2022), who developed it for the R-pkg and will be incorporated in the next release

Additional changes:

  • the R-pkg version now allows all spatial inputs to be parsed as Rcpp matrices. This function is specifically suited for bayesian calibration

As the changes are major and quite complex, I will do the main work locally, avoiding automatic merges, but wanted to have an office pull request for documentation.

JetteReeg and others added 29 commits May 7, 2025 09:20
…merge

updating parts of the genetics while keeping changes done for adding spatially varying demography.
solved conflicts in Individual.cpp, Population.cpp and Landscape.cpp (concerning CELLSIZE parameter of asci files)
added new function to read in demographic scaling functions
adapted readLandscape() and readLandChange() functions to hand over scaling layer files

Still need to update the repo with the new_genetics + develop branch
…genetics_spatial_demog_merge

Solved merge conflicts and compiling issues after the merge it now runs, but there is still an issue as RangeShiftR tutorials cannot be replicated.
number of steps (path->total) was not incremented;
Changed different initialisation of individuals; pSpecies is also needed
spatial demog. feature requires the reproduction() and survival0() functions to include a localScaling vector + needed global variable nDSLayer
…merge

Solved conflicts in Individual.cpp, testIndividual.cpp and testPopulation.cpp
Several changes were not considered during the last merge, I manually compared and edited the files. Hopefully GitHub Actions now run without issues.
demographic scale layers were not parsed
RangeShifter version in CMakeLists.txt to 3.0.0
Parameter Output File
@JetteReeg JetteReeg merged commit dbc2a1a into develop Dec 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants