{"id":15502362,"url":"https://github.com/hughjonesd/why-natural-selection","last_synced_at":"2025-04-22T23:13:39.749Z","repository":{"id":39259512,"uuid":"263847399","full_name":"hughjonesd/why-natural-selection","owner":"hughjonesd","description":"  Code for the paper \"Human capital mediates natural selection in contemporary humans\" ","archived":false,"fork":false,"pushed_at":"2025-01-20T20:35:50.000Z","size":73531,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T23:13:33.801Z","etag":null,"topics":["economics","fertility","genetics","natural-selection"],"latest_commit_sha":null,"homepage":"","language":"R","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/hughjonesd.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-05-14T07:36:59.000Z","updated_at":"2025-01-20T20:35:54.000Z","dependencies_parsed_at":"2025-03-04T15:42:45.831Z","dependency_job_id":null,"html_url":"https://github.com/hughjonesd/why-natural-selection","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughjonesd%2Fwhy-natural-selection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughjonesd%2Fwhy-natural-selection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughjonesd%2Fwhy-natural-selection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughjonesd%2Fwhy-natural-selection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hughjonesd","download_url":"https://codeload.github.com/hughjonesd/why-natural-selection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337949,"owners_count":21414104,"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":["economics","fertility","genetics","natural-selection"],"created_at":"2024-10-02T09:09:29.786Z","updated_at":"2025-04-22T23:13:39.733Z","avatar_url":"https://github.com/hughjonesd.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# why-natural-selection\n\nCode for the paper \"Human capital mediates natural selection in \ncontemporary humans\" by Abdel Abdellaoui and David Hugh-Jones.\n\n# The paper\n\nThe published version is in *Behavior Genetics* 52(4), available at https://link.springer.com/article/10.1007/s10519-022-10107-w\n\nThe current version is available at https://github.com/hughjonesd/why-natural-selection/blob/master/why-natural-selection.pdf.\n\n# BGA poster\n\nThe BGA poster is available [here](https://github.com/hughjonesd/why-natural-selection/blob/master/BGA%20poster.pdf).\n\n# To download\n\nFrom your command line, run:\n\n```\ngit clone https://github.com/hughjonesd/import-ukbb-data.git\ngit clone https://github.com/hughjonesd/why-natural-selection.git\n```\n\n# The data\n\nData is stored separately. To get UK Biobank data you'll need to\nmake an application to UK Biobank (or join our application). Other data is\npublicly available, so we can share it.\n\nWe also use weights from \n\nAlten, Sjoerd van, Benjamin W Domingue, Titus Galama, and Andries Marees. 2021. \n“The Effects of Demographic-Based Selection Bias on GWAS Results in the UK Biobank.” \n\nThank you to Sjoerd and coauthors for their kindness in providing these!\nYou'll need their code to recreate the weights. \n\n# To run\n\n\n1. Start R within the project directory. This should automatically\n   download the `{renv}` package.\n\n2. Run `renv::restore()` to download the appropriate R packages.\n\n3. Edit directory locations in `_drake.R`.\n\n4. Within R, run\n\n```r\nr_make()\n```\n\nThis will take some time to run, depending on your machine. It will rebuild\nthe PDF `why-natural-selection.pdf`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughjonesd%2Fwhy-natural-selection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhughjonesd%2Fwhy-natural-selection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughjonesd%2Fwhy-natural-selection/lists"}