{
  "_id": "6ad32d706814ce853b658426",
  "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-10-17 08:06:52 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>",
  "_user": "storeylab",
  "_type": "src",
  "_file": "bnpsd_1.3.14.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/7558e48c37484e24384d40b4ac9495b8abf5e91f3d8245e5ff7a0e1e9191965c",
  "_filesize": 894074,
  "_sha256": "7558e48c37484e24384d40b4ac9495b8abf5e91f3d8245e5ff7a0e1e9191965c",
  "_expires": "2027-01-25T08:10:22.000Z",
  "_created": "2026-10-17T08:06:52.000Z",
  "_published": "2026-10-17T08:10:24.574Z",
  "_buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117348597285,
      "time": 107,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12094548981"
    },
    {
      "job": 117348597270,
      "time": 112,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12095445112"
    },
    {
      "job": 117348597280,
      "time": 84,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12094887163"
    },
    {
      "job": 117348597268,
      "time": 102,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12094956991"
    },
    {
      "job": 117348083880,
      "time": 168,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12095275728"
    },
    {
      "job": 117348597335,
      "time": 87,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12095385343"
    },
    {
      "job": 117348597381,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12095131445"
    },
    {
      "job": 117348597370,
      "time": 93,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12095280851"
    },
    {
      "job": 117348597287,
      "time": 67,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12093924453"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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": 9,
  "_contributors": [
    {
      "user": "alexviiia",
      "count": 104,
      "uuid": 12603341
    }
  ],
  "_userbio": {
    "uuid": 8007641,
    "type": "organization",
    "name": "Storey Lab",
    "followers": 21,
    "description": "Storey Lab at Princeton University"
  },
  "_downloads": {
    "count": 401,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bnpsd"
  },
  "_mentions": 2,
  "_devurl": "https://github.com/storeylab/bnpsd",
  "_searchresults": 47,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/bnpsd.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.626340367375042,
  "_indexed": true,
  "_nocasepkg": "bnpsd",
  "_universes": [
    "storeylab",
    "alexviiia"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:08:42.000Z",
      "distro": "resolute",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/c444a438731be241c097f2827b8076e6edefa3bd2b3b3383114c2de612c1f242",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:08:44.000Z",
      "distro": "resolute",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/76ff142240b80eec73c9fe924033c263ab297664e8bd1c394038a819607fdb56",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:09:37.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/cee070c4ceb3e22c3b0027584dd44625b22ecd50636a70fee611c768a492b6ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:09:43.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/725b2522173914c6480b688d33125f0459c676821a3b8b2ee297276792494535",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:08:36.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/4a5ef452fc47a96ee8f5037e5c93272f6daa350682849f091743036ae1a3a116",
      "status": "success",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:08:11.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/0bd4586c87ba48ee7813ded194763b5712bca17ecadffc5d66405bf6a085f832",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:08:18.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/2fb54cbcb1f2fd5a7d5c02dd55d36b665c0e688ac4e5c3eb6b7b2594a75a986f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-10-17T08:07:53.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/dd82c6300a4db2b59df3d244589170b6be87082fab402523c22afc4248731f1e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/39015973992"
    }
  ]
}