{"id":20810672,"url":"https://github.com/rscherrer/brachypode","last_synced_at":"2026-04-19T16:02:29.074Z","repository":{"id":40481853,"uuid":"291950238","full_name":"rscherrer/brachypode","owner":"rscherrer","description":"Individual-based simulation of a facilitated plant in a patchy landscape","archived":false,"fork":false,"pushed_at":"2025-02-28T16:22:31.000Z","size":20365,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T21:07:52.279Z","etag":null,"topics":["adaptation","adaptive-dynamics","climate-change","ecological-facilitation","evolution","simulation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rscherrer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-01T09:08:48.000Z","updated_at":"2024-10-02T16:18:55.000Z","dependencies_parsed_at":"2024-12-19T00:29:55.210Z","dependency_job_id":null,"html_url":"https://github.com/rscherrer/brachypode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rscherrer%2Fbrachypode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rscherrer%2Fbrachypode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rscherrer%2Fbrachypode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rscherrer%2Fbrachypode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rscherrer","download_url":"https://codeload.github.com/rscherrer/brachypode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158904,"owners_count":20245664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adaptation","adaptive-dynamics","climate-change","ecological-facilitation","evolution","simulation"],"created_at":"2024-11-17T20:26:58.594Z","updated_at":"2025-12-25T16:27:14.903Z","avatar_url":"https://github.com/rscherrer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brachypode\n\nThis is the repository for a program simulating the evolution of an annual grass species in a semi-arid patchy environment.\n\n## Model description\n\nThis is an agent-based simulation where sessile individuals dwel in a metapopulation consisting of multiple demes, and each deme contains a facilitated and an unfactilitated habitat patch (faciltiated patches are basically the undergrowth of nurse shrubs). The individuals possess genes that determine some level of tolerance against the harsh conditions encountered outside of the shrubs, which trade off with reproductive output. See manuscript for more details.\n\n## Build\n\nYou can use the CMake files provided here to build the program, for example by using this [setup](https://github.com/rscherrer/setupp).\n\n## Usage\n\nThis program is a command-line interface program. Assuming the name of the executable is `brachypode`, use the following command in the terminal from the working directory to run a simulation with default parameter values:\n\n```shell\n./brachypode\n```\n\nTo run a simulation with custom parameters, use:\n\n```shell\n./brachypode parameters.txt\n```\n\nwhere `parameters.txt` is a text file containing a list of parameter names and values.\n\n### Parameters\n\nThe file `parameters.txt` should look like:\n\n```\ntype 1\npopsize 10\npgood 3 0.8 0.6 0.5 0.3 0.1\nmaxgrowths 1 2\nstress 4 0\nzwidths 1 2\ncapacities 100 10000\nsteep 2\ndispersal 0.1\nmutation 0.0001\nnchrom 1\nnloci 50\neffect 0.1\nallfreq 0.5\nxmax 5\nymax 5\ntradeoff 1\nselfing 0.95\nrecombination 1\ntend 100\ntsave 20\nseed 12345\nsow 1\nloadarch 0\nsavepars 1\nsavelog 0\nsavearch 1\ntalkative 0\nchoose 0\n```\n\nand should be present within the working directory where the simulation is launched. Click [here](doc/PARAMETERS.md) for a detailed description of the parameters and their meaning.\n\n### Genetic architecture\n\nFor parameters that have to do with the genetic architecture of the evolving traits in this simulation, see [here](doc/ARCHITECTURE).\n\n### Output\n\nThe user can choose which variables to save from the simulation. Those have to be encoded in the `whattosave.txt` file provided that parameter `choose` is set to `1` within the `parameters.txt` file, as explained [here](doc/OUTPUT.md). Output data are saved into binary files with the `.dat` extension, which can be read by the custom-made [R](https://www.r-project.org/) package [brachypoder](https://github.com/rscherrer/brachypoder).\n\n## Links\n\n* [brachypoder](https://github.com/rscherrer/brachypoder): package to read the simulations in R\n* [brachypode-results](https://github.com/rscherrer/brachypode-results): generated data and analyses of the results\n* [brachypode-ms](https://github.com/rscherrer/brachypode-ms): manuscript\n* [brachypode-nb](https://github.com/rscherrer/brachypode-approx): Mathematica notebooks used for some derivations\n\n## Permissions\n\nCopyright (c) Raphaël Scherrer, 2024 (open source license will be added upon publication). This code comes with no guarantee whatsoever.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frscherrer%2Fbrachypode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frscherrer%2Fbrachypode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frscherrer%2Fbrachypode/lists"}