{
  "_id": "6a1ef670b401979e7341727f",
  "Package": "bnpsd",
  "Title": "Simulate Genotypes from the BN-PSD Admixture Model",
  "Version": "1.3.14.9000",
  "Authors@R": "c(\nperson(given = \"Alejandro\",\nfamily = \"Ochoa\",\nrole = c(\"aut\", \"cre\"),\nemail = \"alejandro.ochoa@duke.edu\",\ncomment = c(ORCID = \"0000-0003-4928-3403\")),\nperson(given = \"John D.\",\nfamily = \"Storey\",\nrole = c(\"aut\"),\nemail = \"jstorey@princeton.edu\",\ncomment = c(ORCID = \"0000-0001-5992-402X\"))\n)",
  "Description": "The Pritchard-Stephens-Donnelly (PSD) admixture model has\nk intermediate subpopulations from which n individuals draw\ntheir alleles dictated by their individual-specific admixture\nproportions.  The BN-PSD model additionally imposes the\nBalding-Nichols (BN) allele frequency model to the intermediate\npopulations, which therefore evolved independently from a\ncommon ancestral population T with subpopulation-specific FST\n(Wright's fixation index) parameters.  The BN-PSD model can be\nused to yield complex population structures.  This simulation\napproach is now extended to subpopulations related by a tree.\nMethod described in Ochoa and Storey (2021)\n<doi:10.1371/journal.pgen.1009241>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/StoreyLab/bnpsd/",
  "BugReports": "https://github.com/StoreyLab/bnpsd/issues",
  "Repository": "https://storeylab.r-universe.dev",
  "Date/Publication": "2023-07-21 19:29:42 UTC",
  "RemoteUrl": "https://github.com/storeylab/bnpsd",
  "RemoteRef": "HEAD",
  "RemoteSha": "c101b07810bfdddab10b99322cf688821414ff31",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 06:34:48 UTC",
    "User": "root"
  },
  "Author": "Alejandro Ochoa [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-4928-3403>),\nJohn D. Storey [aut] (ORCID: <https://orcid.org/0000-0001-5992-402X>)",
  "Maintainer": "Alejandro Ochoa <alejandro.ochoa@duke.edu>",
  "MD5sum": "b88b57d4f5989ccf6c6e27edecae7c58",
  "_user": "storeylab",
  "_type": "src",
  "_file": "bnpsd_1.3.14.9000.tar.gz",
  "_fileid": "15afc891996d9b8d39684c56eebf0600dcf9a51a6ee1079905ea192ee583e61d",
  "_filesize": 894170,
  "_sha256": "15afc891996d9b8d39684c56eebf0600dcf9a51a6ee1079905ea192ee583e61d",
  "_created": "2026-05-19T06:34:48.000Z",
  "_published": "2026-06-02T15:27:44.662Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79107870889,
      "time": 131,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7076491474"
    },
    {
      "job": 79107870819,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076490185"
    },
    {
      "job": 79107870940,
      "time": 360,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7076508890"
    },
    {
      "job": 79107871300,
      "time": 191,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076497341"
    },
    {
      "job": 79107870063,
      "time": 174,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076457023"
    },
    {
      "job": 79107869558,
      "time": 127,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362229720"
    },
    {
      "job": 79107870359,
      "time": 92,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7076481290"
    },
    {
      "job": 79107871088,
      "time": 75,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7076477134"
    },
    {
      "job": 79107871423,
      "time": 85,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076480389"
    }
  ],
  "_buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/storeylab/bnpsd",
  "_commit": {
    "id": "c101b07810bfdddab10b99322cf688821414ff31",
    "author": "Alejandro Ochoa Garcia <alexviiiag@gmail.com>",
    "committer": "Alejandro Ochoa Garcia <alexviiiag@gmail.com>",
    "message": "Added function `draw_all_unstructured`; cleaned up testing code by writing generic testing functions for Q, X, and AF matrices\n",
    "time": 1689967782
  },
  "_maintainer": {
    "name": "Alejandro Ochoa",
    "email": "alejandro.ochoa@duke.edu",
    "login": "alexviiia",
    "orcid": "0000-0003-4928-3403",
    "description": "Statistical geneticist, computational biologist.  Well-rounded nerd, also love languages and music.",
    "uuid": 12603341
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "ape",
      "role": "Imports"
    },
    {
      "package": "nnls",
      "role": "Imports"
    },
    {
      "package": "popkin",
      "version": ">= 1.3.9",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    }
  ],
  "_owner": "storeylab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 8,
  "_contributors": [
    {
      "user": "alexviiia",
      "count": 104,
      "uuid": 12603341
    }
  ],
  "_userbio": {
    "uuid": 8007641,
    "type": "organization",
    "name": "Storey Lab",
    "description": "Storey Lab at Princeton University"
  },
  "_downloads": {
    "count": 310,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bnpsd"
  },
  "_mentions": 2,
  "_devurl": "https://github.com/storeylab/bnpsd",
  "_searchresults": 41,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bnpsd.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/storeylab/bnpsd",
  "_realowner": "storeylab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2018-01-16"
    },
    {
      "version": "1.0.4",
      "date": "2019-02-12"
    },
    {
      "version": "1.1.1",
      "date": "2019-05-15"
    },
    {
      "version": "1.2.1",
      "date": "2020-01-10"
    },
    {
      "version": "1.2.3",
      "date": "2021-02-12"
    },
    {
      "version": "1.3.13",
      "date": "2021-08-25"
    }
  ],
  "_exports": [
    "admix_prop_1d_circular",
    "admix_prop_1d_linear",
    "admix_prop_indep_subpops",
    "coanc_admix",
    "coanc_to_kinship",
    "coanc_tree",
    "draw_all_admix",
    "draw_all_unstructured",
    "draw_genotypes_admix",
    "draw_p_anc",
    "draw_p_subpops",
    "draw_p_subpops_tree",
    "fit_tree",
    "fixed_loci",
    "fst_admix",
    "make_p_ind_admix",
    "scale_tree",
    "tree_additive",
    "tree_reindex_tips",
    "tree_reorder",
    "undiff_af"
  ],
  "_help": [
    {
      "page": "admix_prop_1d_circular",
      "title": "Construct admixture proportion matrix for circular 1D geography",
      "topics": [
        "admix_prop_1d_circular"
      ]
    },
    {
      "page": "admix_prop_1d_linear",
      "title": "Construct admixture proportion matrix for 1D geography",
      "topics": [
        "admix_prop_1d_linear"
      ]
    },
    {
      "page": "admix_prop_indep_subpops",
      "title": "Construct admixture proportion matrix for independent subpopulations",
      "topics": [
        "admix_prop_indep_subpops"
      ]
    },
    {
      "page": "bnpsd",
      "title": "A package for modeling and simulating an admixed population",
      "topics": [
        "bnpsd-package",
        "bnpsd"
      ]
    },
    {
      "page": "coanc_admix",
      "title": "Construct the coancestry matrix of an admixture model",
      "topics": [
        "coanc_admix"
      ]
    },
    {
      "page": "coanc_to_kinship",
      "title": "Transform coancestry matrix to kinship matrix",
      "topics": [
        "coanc_to_kinship"
      ]
    },
    {
      "page": "coanc_tree",
      "title": "Calculate coancestry matrix corresponding to a tree",
      "topics": [
        "coanc_tree"
      ]
    },
    {
      "page": "draw_all_admix",
      "title": "Simulate random allele frequencies and genotypes from the BN-PSD admixture model",
      "topics": [
        "draw_all_admix"
      ]
    },
    {
      "page": "draw_all_unstructured",
      "title": "Simulate random allele frequencies and genotypes from the unstructured model",
      "topics": [
        "draw_all_unstructured"
      ]
    },
    {
      "page": "draw_genotypes_admix",
      "title": "Draw genotypes from the admixture model",
      "topics": [
        "draw_genotypes_admix"
      ]
    },
    {
      "page": "draw_p_anc",
      "title": "Draw random Uniform or Beta ancestral allele frequencies",
      "topics": [
        "draw_p_anc"
      ]
    },
    {
      "page": "draw_p_subpops",
      "title": "Draw allele frequencies for independent subpopulations",
      "topics": [
        "draw_p_subpops"
      ]
    },
    {
      "page": "draw_p_subpops_tree",
      "title": "Draw allele frequencies for subpopulations related by a tree",
      "topics": [
        "draw_p_subpops_tree"
      ]
    },
    {
      "page": "fit_tree",
      "title": "Fit a tree structure to a coancestry matrix",
      "topics": [
        "fit_tree"
      ]
    },
    {
      "page": "fixed_loci",
      "title": "Identify fixed loci",
      "topics": [
        "fixed_loci"
      ]
    },
    {
      "page": "fst_admix",
      "title": "Calculate FST for the admixed individuals",
      "topics": [
        "fst_admix"
      ]
    },
    {
      "page": "make_p_ind_admix",
      "title": "Construct individual-specific allele frequency matrix under the PSD admixture model",
      "topics": [
        "make_p_ind_admix"
      ]
    },
    {
      "page": "scale_tree",
      "title": "Scale a coancestry tree",
      "topics": [
        "scale_tree"
      ]
    },
    {
      "page": "tree_additive",
      "title": "Calculate additive edges for a coancestry tree, or viceversa",
      "topics": [
        "tree_additive"
      ]
    },
    {
      "page": "tree_reindex_tips",
      "title": "Reindex tree tips in order of appearance in edges",
      "topics": [
        "tree_reindex_tips"
      ]
    },
    {
      "page": "tree_reorder",
      "title": "Reorder tree tips to best match a desired order",
      "topics": [
        "tree_reorder"
      ]
    },
    {
      "page": "undiff_af",
      "title": "Undifferentiate an allele distribution",
      "topics": [
        "undiff_af"
      ]
    }
  ],
  "_pkglogo": "https://github.com/storeylab/bnpsd/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/storeylab/bnpsd/raw/HEAD/README.md",
  "_rundeps": [
    "ape",
    "digest",
    "lattice",
    "nlme",
    "nnls",
    "Rcpp"
  ],
  "_vignettes": [
    {
      "source": "bnpsd.Rmd",
      "filename": "bnpsd.html",
      "title": "Simulate Admixed Populations with bnpsd",
      "author": "Alejandro Ochoa and John D. Storey",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The BN-PSD population structure",
        "Random allele frequencies and genotypes",
        "Simulation examples",
        "Population structure: 1D geography",
        "Draw random allele frequencies and genotypes",
        "Customizing the allele frequency and genotype pipeline",
        "Additional population structures",
        "Circular 1D geography",
        "Independent subpopulations",
        "Intermediate subpopulations related by a tree",
        "Admixture with intermediate tree structure",
        "Draw random allele frequencies and genotypes for admixture with intermediate tree structure",
        "References"
      ],
      "created": "2017-08-13 00:50:54",
      "modified": "2021-08-02 17:19:36",
      "commits": 25
    }
  ],
  "_score": 5.515873843711679,
  "_indexed": true,
  "_nocasepkg": "bnpsd",
  "_universes": [
    "storeylab",
    "alexviiia"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.14.9000",
      "date": "2026-05-19T06:36:58.000Z",
      "distro": "noble",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "234fa3d14e84bc8cf886bf6df0f31ee28a354555ad0df832f3dbc3ad4371b2ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3.14.9000",
      "date": "2026-05-19T06:36:53.000Z",
      "distro": "noble",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "33a9e161998cc969dd5dcb08f7036e76ee6e80d1b9b6552d450ff1a05f5f1a3b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.14.9000",
      "date": "2026-05-19T06:38:05.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "1454f902f5ab8f03e6a0174e2f321772ec41e3ad92f25eec909e8332bbfc0fad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.3.14.9000",
      "date": "2026-05-19T06:37:18.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "0cca4fa3f69b08e6db0f9d6ce583677628b676ea24c0aae74fd608b860bbef58",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-05-19T06:36:10.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "ff53e1608cc1182f864f70614bf85eb0b646781be7418dc61f1ea3ed1cc7a3a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-05-19T06:35:57.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "371b0c5599304b3c2332d9c9f26cc9552faf2ed89654c37e86a4594239f0d86c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-05-19T06:36:10.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "d8f3baaf36af032e9c8bb9ad8d1617ff2de5033341c62c3573e281bad0429e31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.14.9000",
      "date": "2026-06-02T15:27:20.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "ba8cfa2b21bd3ff20debffba217336e7b305086365a1e3b575fafad8b3c449b5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/26080491893"
    }
  ]
}