{
  "_id": "6a23db16530b9bc726be660a",
  "Package": "pgenlibr",
  "Type": "Package",
  "Title": "'PLINK' 2 Binary (.pgen) Reader",
  "Version": "0.6.2",
  "Date": "2026-06-05",
  "Authors@R": "c(person(given = \"Christopher\",\nfamily = \"Chang\",\nrole = c(\"aut\", \"cre\"),\nemail = \"chrchang@alumni.caltech.edu\"),\nperson(given = \"Eric\",\nfamily = \"Biggers\",\nrole = c(\"ctb\", \"cph\"),\ncomment = \"Author of included libdeflate library\"),\nperson(given = \"Yann\",\nfamily = \"Collet\",\nrole = c(\"ctb\"),\ncomment = \"Author of included Zstd library\"),\nperson(given = \"Meta Platforms, Inc.\",\nrole = c(\"cph\"),\ncomment = \"Zstd library\"),\nperson(given = \"Evan\",\nfamily = \"Nemerson\",\nrole = c(\"ctb\", \"cph\"),\ncomment = \"Author of included SIMDe library\"),\nperson(given = \"Przemyslaw\",\nfamily = \"Skibinski\",\nrole = c(\"ctb\"),\ncomment = \"Author of included Zstd library\"),\nperson(given = \"Nick\",\nfamily = \"Terrell\",\nrole = c(\"ctb\"),\ncomment = \"Author of included Zstd library\"))",
  "Description": "A thin wrapper over 'PLINK' 2's core libraries which\nprovides an R interface for reading .pgen files.  A minimal\n.pvar loader is also included.  Chang et al. (2015)\n<doi:10.1186/s13742-015-0047-8>.",
  "Encoding": "UTF-8",
  "License": "LGPL (>= 3)",
  "Copyright": "This package includes sources of the libdeflate library\nowned by Eric Biggers, sources of the SIMDe library owned by\nEvan Nemerson, sources of the Zstd library owned by Meta\nPlatforms, Inc., and sources of the pgenlib library owned by\nChristopher Chang.",
  "BugReports": "https://github.com/chrchang/plink-ng/issues",
  "RoxygenNote": "7.3.2",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-06 08:26:18 UTC",
    "User": "root"
  },
  "Author": "Christopher Chang [aut, cre], Eric Biggers [ctb, cph] (Author\nof included libdeflate library), Yann Collet [ctb] (Author of\nincluded Zstd library), Meta Platforms, Inc. [cph] (Zstd\nlibrary), Evan Nemerson [ctb, cph] (Author of included SIMDe\nlibrary), Przemyslaw Skibinski [ctb] (Author of included Zstd\nlibrary), Nick Terrell [ctb] (Author of included Zstd library)",
  "Maintainer": "Christopher Chang <chrchang@alumni.caltech.edu>",
  "Repository": "https://chrchang.r-universe.dev",
  "Date/Publication": "2026-06-06 02:30:02 UTC",
  "RemoteUrl": "https://github.com/cran/pgenlibr",
  "RemoteRef": "HEAD",
  "RemoteSha": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
  "MD5sum": "8bed6bc8c0056413ea5352b742498e56",
  "_user": "chrchang",
  "_type": "src",
  "_file": "pgenlibr_0.6.2.tar.gz",
  "_fileid": "049b4ae07c9d5940ab425a09e1c82b2954afc0d26026939cbe4bfc5857984a68",
  "_filesize": 1611584,
  "_sha256": "049b4ae07c9d5940ab425a09e1c82b2954afc0d26026939cbe4bfc5857984a68",
  "_created": "2026-06-06T08:26:18.000Z",
  "_published": "2026-06-06T08:32:22.488Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79864213464,
      "time": 141,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7452849892"
    },
    {
      "job": 79864213452,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7452847414"
    },
    {
      "job": 79864213455,
      "time": 126,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452848373"
    },
    {
      "job": 79864213457,
      "time": 103,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452845515"
    },
    {
      "job": 79864213442,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7452845633"
    },
    {
      "job": 79864213428,
      "time": 303,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7452868005"
    },
    {
      "job": 79864213419,
      "time": 108,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452846099"
    },
    {
      "job": 79864213411,
      "time": 223,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452858764"
    },
    {
      "job": 79864065569,
      "time": 170,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452834012"
    },
    {
      "job": 79864213410,
      "time": 91,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79864213414,
      "time": 174,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7452853141"
    },
    {
      "job": 79864213416,
      "time": 165,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7452852582"
    },
    {
      "job": 79864213413,
      "time": 136,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7452849050"
    }
  ],
  "_buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/pgenlibr",
  "_commit": {
    "id": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
    "author": "Christopher Chang <chrchang@alumni.caltech.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.6.2\n",
    "time": 1780713002
  },
  "_maintainer": {
    "name": "Christopher Chang",
    "email": "chrchang@alumni.caltech.edu",
    "login": "chrchang",
    "description": "",
    "uuid": 128832
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.1",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-26",
      "n": 2
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 2
    },
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.5.2",
      "date": "2025-06-23"
    },
    {
      "name": "0.5.3",
      "date": "2025-06-25"
    },
    {
      "name": "0.5.4",
      "date": "2026-01-17"
    },
    {
      "name": "0.5.5",
      "date": "2026-03-11"
    },
    {
      "name": "0.6.0",
      "date": "2026-03-24"
    },
    {
      "name": "0.6.1",
      "date": "2026-03-28"
    },
    {
      "name": "0.6.2",
      "date": "2026-06-06"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "chrchang",
      "count": 12,
      "uuid": 128832
    }
  ],
  "_userbio": {
    "uuid": 128832,
    "type": "user",
    "name": "Christopher Chang"
  },
  "_downloads": {
    "count": 1215,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/pgenlibr"
  },
  "_devurl": "https://github.com/chrchang/plink-ng",
  "_searchresults": 91,
  "_topics": [
    "libzstd",
    "libdeflate",
    "zlib",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/pgenlibr.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_realowner": "chrchang",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.3.3",
      "date": "2023-05-24"
    },
    {
      "version": "0.3.5",
      "date": "2023-06-12"
    },
    {
      "version": "0.3.6",
      "date": "2024-05-27"
    },
    {
      "version": "0.3.7",
      "date": "2024-06-04"
    },
    {
      "version": "0.4.0",
      "date": "2025-01-17"
    },
    {
      "version": "0.5.2",
      "date": "2025-06-23"
    },
    {
      "version": "0.5.3",
      "date": "2025-06-25"
    },
    {
      "version": "0.5.4",
      "date": "2026-01-17"
    },
    {
      "version": "0.5.5",
      "date": "2026-03-11"
    },
    {
      "version": "0.6.0",
      "date": "2026-03-24"
    },
    {
      "version": "0.6.1",
      "date": "2026-03-28"
    },
    {
      "version": "0.6.2",
      "date": "2026-06-06"
    }
  ],
  "_exports": [
    "AlleleCodeBuf",
    "BoolBuf",
    "Buf",
    "ClosePgen",
    "ClosePvar",
    "GetAlleleCode",
    "GetAlleleCt",
    "GetMaxAlleleCt",
    "GetRawSampleCt",
    "GetVariantChrom",
    "GetVariantCt",
    "GetVariantId",
    "GetVariantPos",
    "GetVariantsById",
    "HardcallPhasePresent",
    "HasSparse",
    "HasSparseHardcalls",
    "IntAlleleCodeBuf",
    "IntBuf",
    "NewPgen",
    "NewPvar",
    "Read",
    "ReadAlleles",
    "ReadHardcalls",
    "ReadIntList",
    "ReadList",
    "ReadSparse",
    "ReadSparseHardcalls",
    "VariantScores"
  ],
  "_help": [
    {
      "page": "pgenlibr-package",
      "title": "PLINK 2 Binary (.pgen) Reader",
      "topics": [
        "pgenlibr-package",
        "pgenlibr"
      ]
    },
    {
      "page": "AlleleCodeBuf",
      "title": "Returns an empty two-row numeric matrix that ReadAlleles() can load to.",
      "topics": [
        "AlleleCodeBuf"
      ]
    },
    {
      "page": "BoolBuf",
      "title": "Returns a bool buffer that ReadAlleles() can load phasing information to.",
      "topics": [
        "BoolBuf"
      ]
    },
    {
      "page": "Buf",
      "title": "Returns a numeric buffer that Read() or ReadHardcalls() can load to.",
      "topics": [
        "Buf"
      ]
    },
    {
      "page": "ClosePgen",
      "title": "Closes a pgen object, releasing resources.",
      "topics": [
        "ClosePgen"
      ]
    },
    {
      "page": "ClosePvar",
      "title": "Closes a pvar object, releasing memory.",
      "topics": [
        "ClosePvar"
      ]
    },
    {
      "page": "GetAlleleCode",
      "title": "Look up an allele code.",
      "topics": [
        "GetAlleleCode"
      ]
    },
    {
      "page": "GetAlleleCt",
      "title": "Returns the effective number of alleles for a variant.  Note that if no pvar was provided to the NewPgen() call, this function may return 2 even at multiallelic variants, since the .pgen may not store allele-count information.",
      "topics": [
        "GetAlleleCt"
      ]
    },
    {
      "page": "GetMaxAlleleCt",
      "title": "Returns the maximum GetAlleleCt() value across all variants in the file.",
      "topics": [
        "GetMaxAlleleCt"
      ]
    },
    {
      "page": "GetRawSampleCt",
      "title": "Returns the number of samples in the file.",
      "topics": [
        "GetRawSampleCt"
      ]
    },
    {
      "page": "GetVariantChrom",
      "title": "Retrieve chromosome ID for given variant index.",
      "topics": [
        "GetVariantChrom"
      ]
    },
    {
      "page": "GetVariantCt",
      "title": "Returns the number of variants in the file.",
      "topics": [
        "GetVariantCt"
      ]
    },
    {
      "page": "GetVariantId",
      "title": "Convert variant index to variant ID string.",
      "topics": [
        "GetVariantId"
      ]
    },
    {
      "page": "GetVariantPos",
      "title": "Retrieve POS (base-pair coordinate on a chromosome) for given variant index.",
      "topics": [
        "GetVariantPos"
      ]
    },
    {
      "page": "GetVariantsById",
      "title": "Convert variant ID string to variant index(es).",
      "topics": [
        "GetVariantsById"
      ]
    },
    {
      "page": "HardcallPhasePresent",
      "title": "Returns whether explicitly phased hardcalls are present.",
      "topics": [
        "HardcallPhasePresent"
      ]
    },
    {
      "page": "HasSparse",
      "title": "Returns whether dosages for the variant_numth variant and given allele are represented in a sparse manner that is supported by ReadSparse(), under the current sample subset.",
      "topics": [
        "HasSparse"
      ]
    },
    {
      "page": "HasSparseHardcalls",
      "title": "Returns whether hardcalls for the variant_numth variant and given allele are represented in a sparse manner that is supported by ReadSparseHardcalls().",
      "topics": [
        "HasSparseHardcalls"
      ]
    },
    {
      "page": "IntAlleleCodeBuf",
      "title": "Returns an empty two-row integer matrix that ReadAlleles() can load to.",
      "topics": [
        "IntAlleleCodeBuf"
      ]
    },
    {
      "page": "IntBuf",
      "title": "Returns an integer buffer that ReadHardcalls() can load to.",
      "topics": [
        "IntBuf"
      ]
    },
    {
      "page": "NewPgen",
      "title": "Opens a .pgen or PLINK 1 .bed file.",
      "topics": [
        "NewPgen"
      ]
    },
    {
      "page": "NewPvar",
      "title": "Loads variant positions, IDs, and allele codes from a .pvar or .bim file (which can be compressed with gzip or Zstd).",
      "topics": [
        "NewPvar"
      ]
    },
    {
      "page": "Read",
      "title": "Loads the variant_numth variant, and then fills buf with numeric dosages in [0, 2] indicating the dosages of the first ALT (or user-specified) allele for each sample, with missing values represented by NA.",
      "topics": [
        "Read"
      ]
    },
    {
      "page": "ReadAlleles",
      "title": "Loads the variant_numth variant, and then fills acbuf with integer allele codes, where each column of the buffer corresponds to a sample. An allele code of 0 corresponds to the REF allele, 1 to the first ALT, 2 to the second ALT, etc.  Missing hardcalls are represented by a pair of NA codes.",
      "topics": [
        "ReadAlleles"
      ]
    },
    {
      "page": "ReadHardcalls",
      "title": "Loads the variant_numth variant, and then fills buf with {0, 1, 2, NA} values indicating the number of copies of the first ALT (or user-specified) allele each sample has.",
      "topics": [
        "ReadHardcalls"
      ]
    },
    {
      "page": "ReadIntList",
      "title": "Load hardcalls for multiple variants as an integer matrix.",
      "topics": [
        "ReadIntList"
      ]
    },
    {
      "page": "ReadList",
      "title": "Load dosages for multiple variants as a numeric matrix.",
      "topics": [
        "ReadList"
      ]
    },
    {
      "page": "ReadSparse",
      "title": "If HasSparse() is true, returns a sparse representation for the (variant, allele) pair.  If HasSparse() is false, the function fails.",
      "topics": [
        "ReadSparse"
      ]
    },
    {
      "page": "ReadSparseHardcalls",
      "title": "If HasSparseHardcalls() is true, returns a sparse representation for the (variant, allele) pair.  If HasSparseHardcalls() is false, the function fails.",
      "topics": [
        "ReadSparseHardcalls"
      ]
    },
    {
      "page": "VariantScores",
      "title": "Compute variant scores.",
      "topics": [
        "VariantScores"
      ]
    }
  ],
  "_readme": "https://github.com/cran/pgenlibr/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libzstd",
      "package": "libzstd1",
      "headers": "libzstd-dev",
      "source": "libzstd",
      "version": "1.5.5+dfsg2-2build1.1",
      "name": "libzstd",
      "homepage": "https://github.com/facebook/zstd",
      "description": "fast lossless compression algorithm"
    },
    {
      "shlib": "libdeflate",
      "package": "libdeflate0",
      "headers": "libdeflate-dev",
      "source": "libdeflate",
      "version": "1.19-1build1.1",
      "name": "libdeflate",
      "homepage": "https://github.com/ebiggers/libdeflate",
      "description": "fast, whole-buffer DEFLATE-based compression and decompression"
    },
    {
      "shlib": "libz",
      "package": "zlib1g",
      "headers": "zlib1g-dev",
      "source": "zlib",
      "version": "1:1.3.dfsg-3.1ubuntu2.1",
      "name": "zlib",
      "homepage": "http://zlib.net/",
      "description": "compression library - runtime"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3.441557678927462,
  "_indexed": true,
  "_nocasepkg": "pgenlibr",
  "_universes": [
    "chrchang"
  ],
  "_previous": "0.6.1",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.2",
      "date": "2026-06-06T08:28:51.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "c6599e5cf8f6d486ca75b1a9073ca06f10f0e394f4e3a3d57f89951dd1ed1429",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.2",
      "date": "2026-06-06T08:28:28.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "3ed4d203e0ff08ce5c4b4d27c52132581f859d61f37b7f82c0ff897ce3da8aea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.2",
      "date": "2026-06-06T08:28:37.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "dea3c874dc8874dc93206bc57f0f8a720324a53c64b321db543a174449387151",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.2",
      "date": "2026-06-06T08:28:11.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "bb15038755c390c411eff05d16a55214a3644a52fedc791c97b9bba4d9ca721c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.2",
      "date": "2026-06-06T08:28:18.000Z",
      "arch": "aarch64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "f9dd0ece78f739c40d5b74a4236f5bfee7526fffc9df4bb314ef11f934ab442e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.2",
      "date": "2026-06-06T08:30:51.000Z",
      "arch": "x86_64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "98531b05eb29aed841636c0f3656c94ef42726c112c9b881e99779e73191711c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6.2",
      "date": "2026-06-06T08:28:21.000Z",
      "arch": "aarch64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "2116b1377ce8460d523094c01365df3e6f3817473bc207ef449587b24f91eb34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6.2",
      "date": "2026-06-06T08:29:44.000Z",
      "arch": "x86_64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "115b5c94cad16cfd3f412e5b9522145147ecfcfd29c7dc80b5591309f392f551",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.2",
      "date": "2026-06-06T08:28:03.000Z",
      "arch": "x86_64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "ffe5deb374ae01e5a53067c2e31a3df631ff136a4338305e478455ff2660f628",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.2",
      "date": "2026-06-06T08:27:50.000Z",
      "arch": "x86_64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "608e50525f7dd14eeefcae6d5e0ffb62fc102447901aada990c535dc99d90266",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.6.2",
      "date": "2026-06-06T08:27:43.000Z",
      "arch": "x86_64",
      "commit": "61d513f8dbc7d5f86487a2280cd3f71c8d67f273",
      "fileid": "d77c96ca816af61f2b9f59758e6d39c543bdbb3281ac73e428b6493d91ecbe5e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chrchang/actions/runs/27057358323"
    }
  ]
}