{"id":22215374,"url":"https://github.com/eggplantbren/andromedamixture","last_synced_at":"2026-02-04T08:35:16.673Z","repository":{"id":145812664,"uuid":"176883726","full_name":"eggplantbren/AndromedaMixture","owner":"eggplantbren","description":"The inference code for our Nature paper about globular clusters in M31/Andromeda.","archived":false,"fork":false,"pushed_at":"2024-10-01T21:52:33.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T03:31:51.275Z","etag":null,"topics":["andromeda","astronomy","bayesian-inference","galaxies","galaxy-formation","globular-clusters","markov-chain-monte-carlo","model-comparison","model-selection","nature"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eggplantbren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-03-21T06:30:35.000Z","updated_at":"2024-10-01T21:52:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae7cba2b-d1e0-4243-b12c-b9aa41285e68","html_url":"https://github.com/eggplantbren/AndromedaMixture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eggplantbren/AndromedaMixture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplantbren%2FAndromedaMixture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplantbren%2FAndromedaMixture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplantbren%2FAndromedaMixture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplantbren%2FAndromedaMixture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggplantbren","download_url":"https://codeload.github.com/eggplantbren/AndromedaMixture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplantbren%2FAndromedaMixture/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265791674,"owners_count":23829164,"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":["andromeda","astronomy","bayesian-inference","galaxies","galaxy-formation","globular-clusters","markov-chain-monte-carlo","model-comparison","model-selection","nature"],"created_at":"2024-12-02T21:27:25.390Z","updated_at":"2026-02-04T08:35:16.615Z","avatar_url":"https://github.com/eggplantbren.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mixture Model for Andromeda Globular Clusters\n=============================================\n\n(c) 2019 Brendon J. Brewer and Geraint F. Lewis.\n\nThis is free software\nreleased under the terms of the MIT license.\nIt was used to do the model comparison and\nparameter estimation calculations for the following paper\n(Nature, 2019, accepted):\n\n_Two major accretion epochs in M31 from two distinct populations of globular clusters_\n\nDougal Mackey, Geraint F. Lewis, Brendon J. Brewer, Annette M. N. Ferguson, Jovan Veljanoski, Avon P. Huxor, Michelle L. M. Collins, Patrick Côté, Rodrigo A. Ibata, Mike J. Irwin, Nicolas Martin, Alan W. McConnachie, Jorge Peñarrubia, Nial Tanvir, Zhen Wan\n\nInstructions to Reproduce Results in the Paper\n==============================================\n\nYou will require all the dependencies of [DNest4](https://github.com/eggplantbren/DNest4),\nplus [corner.py](https://github.com/dfm/corner.py).\nFirst, clone this repo recursively and compile the C++:\n\n```\ngit clone --recursive https://github.com/eggplantbren/AndromedaMixture\ncd AndromedaMixture\nmake\n```\n\nInstall the DNest4 Python package (unless you already have it), like this (Mac users, see the DNest4 manual for something extra you need to do):\n\n```\ncd DNest4/python\npython setup.py install\n```\n\nNow go back to the directory containing the binary, and run DNest4 with ten threads\nand a random number seed of 1 (this will run model V2, the favoured model):\n\n```\ncd ../..\n./main -t 10 -s 1\n```\n\nOnce that's finished (it produces 100,000 saved particles), run the postprocessing script:\n\n```\npython showresults.py\n```\n\nThis will produce three DNest4 plots and output the marginal likelihood to the screen\nand posterior samples to `posterior_sample.txt` (one parameter per column, see the header\nline for the meaning of each column).\nAfter closing those plots, it will produce the corner plot and save it to corner.png.\n\nChanging the rotation model\n===========================\n\nThe default rotation model is V2 from the paper. Modify lines 13 and 14 of `main.cpp`\nand re-compile by running `make` to use a different rotation model. For example, to\nuse model S1, these lines should be modified to  \n\n```\nconstexpr RotationModel rotation_model = RotationModel::S;\nconstexpr int num_components = 1;\n```\n\nTo exactly reproduce the results from the paper, don't forget to use the\ncorrect random number seed from Table 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggplantbren%2Fandromedamixture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggplantbren%2Fandromedamixture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggplantbren%2Fandromedamixture/lists"}