{
  "_id": "6afae46669eab6fdff2d4aa2",
  "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-11-16 10:30:01 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/cc9bbb2420bdc19ca606e3bd65bf8f8e7807eb488f21625324c5a21365e80001",
  "_filesize": 893044,
  "_sha256": "cc9bbb2420bdc19ca606e3bd65bf8f8e7807eb488f21625324c5a21365e80001",
  "_expires": "2027-02-24T11:09:24.000Z",
  "_created": "2026-11-16T10:30:01.000Z",
  "_published": "2026-11-16T11:09:26.077Z",
  "_upstream": "https://github.com/storeylab/bnpsd",
  "_status": "success",
  "_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
  },
  "_jobs": [
    {
      "job": 133237921453,
      "time": 110,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14217545211"
    },
    {
      "job": 133237921575,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14216982507"
    },
    {
      "job": 133237921515,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14221061502"
    },
    {
      "job": 133237921708,
      "time": 115,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14220631861"
    },
    {
      "job": 133236351738,
      "time": 179,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14215819022"
    },
    {
      "job": 133237921619,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14217157097"
    },
    {
      "job": 133237921642,
      "time": 72,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14217266326"
    },
    {
      "job": 133237921637,
      "time": 67,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14216383645"
    },
    {
      "job": 133237921604,
      "time": 54,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14217101150"
    }
  ],
  "_buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 23,
    "description": "Storey Lab at Princeton University"
  },
  "_downloads": {
    "count": 539,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bnpsd"
  },
  "_mentions": 2,
  "_devurl": "https://github.com/storeylab/bnpsd",
  "_rbuild": "4.6.2",
  "_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": 4.954242509439325,
  "_indexed": true,
  "_nocasepkg": "bnpsd",
  "_universes": [
    "storeylab",
    "alexviiia"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.14.9000",
      "date": "2026-11-16T10:31:54.000Z",
      "distro": "resolute",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/c2bb7645107dcbe42a2c47ed12e89630cece1e703ac1282872b2aa4487a194f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.3.14.9000",
      "date": "2026-11-16T10:31:55.000Z",
      "distro": "resolute",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/95f5ae8334142ff9d76a4e7fa00890e2bbb503487cd3f1f9183f6c7f70de2918",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.14.9000",
      "date": "2026-11-16T11:07:14.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/84b3a850f9a3176ef532ca03533e1875417bbf15d60d4373d097e80aa46356a5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.3.14.9000",
      "date": "2026-11-16T11:08:32.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/97763028b26997a841f7b3abac9eb11d3b79b7786314acab089f7a56cd78bdb9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.14.9000",
      "date": "2026-11-16T10:31:59.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/83df129f85e15590d46aa3c2145bb018bdcf705753fbe71d76b16618126e4369",
      "status": "success",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-11-16T10:31:11.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/5337624e82846aca3625b1866c9b8275ee5da07425682c208bebff19ee7be26a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-11-16T10:31:07.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/2a876ae75f394b2b24e66e7d0a51d86b56c0382596dd83616c76a87834ece348",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.3.14.9000",
      "date": "2026-11-16T10:30:59.000Z",
      "commit": "c101b07810bfdddab10b99322cf688821414ff31",
      "fileid": "https://r2.ropensci.org/14778a23be301affa0102e58cf14de0db9544c1b431dd44bbccf6397a1ca2b38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/storeylab/actions/runs/43848948917"
    }
  ]
}