{
  "_id": "6b02afca75ab5e50c7678039",
  "Package": "phers",
  "Type": "Package",
  "Title": "Calculate Phenotype Risk Scores",
  "Version": "1.0.5",
  "Authors@R": "c(\nperson('Jake', 'Hughey', , 'jakejhughey@gmail.com', c('aut', 'cre')),\nperson('Layla', 'Aref', , 'larefnezhad@gmail.com', 'aut'))",
  "Description": "Use phenotype risk scores based on linked clinical and\ngenetic data to study Mendelian disease and rare genetic\nvariants. See Bastarache et al. 2018\n<doi:10.1126/science.aal4043>.",
  "URL": "https://phers.hugheylab.org, https://github.com/hugheylab/phers",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Repository": "https://hugheylab.r-universe.dev",
  "Date/Publication": "2026-03-03 05:16:15 UTC",
  "RemoteUrl": "https://github.com/hugheylab/phers",
  "RemoteRef": "HEAD",
  "RemoteSha": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-22 08:59:11 UTC",
    "User": "root"
  },
  "Author": "Jake Hughey [aut, cre],\nLayla Aref [aut]",
  "Maintainer": "Jake Hughey <jakejhughey@gmail.com>",
  "_user": "hugheylab",
  "_type": "src",
  "_file": "phers_1.0.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/9c1c5f2d909253453e07ab70a8e6ec27e02e8471d858a974e7448031b07d9259",
  "_filesize": 1629996,
  "_sha256": "9c1c5f2d909253453e07ab70a8e6ec27e02e8471d858a974e7448031b07d9259",
  "_expires": "2027-03-02T09:03:04.000Z",
  "_created": "2026-11-22T08:59:11.000Z",
  "_published": "2026-11-22T09:03:06.338Z",
  "_upstream": "https://github.com/hugheylab/phers",
  "_status": "success",
  "_maintainer": {
    "name": "Jake Hughey",
    "email": "jakejhughey@gmail.com",
    "login": "jakejh",
    "description": "",
    "uuid": 2295314
  },
  "_jobs": [
    {
      "job": 137155664140,
      "time": 139,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14747866811"
    },
    {
      "job": 137155664142,
      "time": 128,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14747283279"
    },
    {
      "job": 137155664078,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14747303419"
    },
    {
      "job": 137155664066,
      "time": 131,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14747622421"
    },
    {
      "job": 137154916163,
      "time": 191,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14747462560"
    },
    {
      "job": 137155664076,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14747288363"
    },
    {
      "job": 137155664098,
      "time": 96,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14748016285"
    },
    {
      "job": 137155664088,
      "time": 99,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14747064426"
    },
    {
      "job": 137155664198,
      "time": 73,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14748150640"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383",
  "_commit": {
    "id": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
    "author": "Jake Hughey <jakejhughey@gmail.com>",
    "committer": "Jake Hughey <jakejhughey@gmail.com>",
    "message": "set dt threads to 1.\n",
    "time": 1772514975
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "BEDMatrix",
      "version": ">= 2.0.3",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.5.0",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "version": ">= 1.5.2",
      "role": "Imports"
    },
    {
      "package": "iterators",
      "version": ">= 1.0.14",
      "role": "Imports"
    },
    {
      "package": "survival",
      "version": ">= 3.3.1",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "version": ">= 1.0.17",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.0",
      "role": "Suggests"
    }
  ],
  "_owner": "hugheylab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-04",
      "n": 3
    },
    {
      "week": "2026-10",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jakejh",
      "count": 44,
      "uuid": 2295314
    },
    {
      "user": "jschoenbachler",
      "count": 21,
      "uuid": 15148457
    },
    {
      "user": "arefnel",
      "count": 3,
      "uuid": 42152281
    }
  ],
  "_userbio": {
    "uuid": 32131222,
    "type": "organization",
    "name": "Hughey Lab",
    "followers": 4
  },
  "_downloads": {
    "count": 499,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/phers"
  },
  "_devurl": "https://github.com/hugheylab/phers",
  "_rbuild": "4.6.2",
  "_assets": [
    "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/phers.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/hugheylab/phers",
  "_realowner": "hugheylab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.2",
      "date": "2022-05-10"
    },
    {
      "version": "0.0.3",
      "date": "2022-06-01"
    },
    {
      "version": "1.0.0",
      "date": "2022-12-15"
    },
    {
      "version": "1.0.2",
      "date": "2023-03-26"
    },
    {
      "version": "1.0.5",
      "date": "2026-03-03"
    }
  ],
  "_authors": [
    {
      "name": "Jake Hughey",
      "email": "jakejhughey@gmail.com",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "Layla Aref",
      "email": "larefnezhad@gmail.com",
      "role": [
        "aut"
      ]
    }
  ],
  "_exports": [
    "getDxStatus",
    "getGeneticAssociations",
    "getPhecodeOccurrences",
    "getResidualScores",
    "getScores",
    "getWeights",
    "mapDiseaseToPhecode"
  ],
  "_datasets": [
    {
      "name": "demoSample",
      "title": "Sample table of demographic information",
      "object": "demoSample",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "person_id",
        "sex",
        "dob",
        "first_visit_date",
        "last_visit_date"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "diseaseDxIcdMap",
      "title": "Mapping of diseases and diagnostic ICD codes",
      "object": "diseaseDxIcdMap",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "disease_id",
        "disease_name",
        "icd",
        "flag",
        "icd_name"
      ],
      "rows": 81,
      "table": true,
      "tojson": true
    },
    {
      "name": "diseaseHpoMap",
      "title": "Mapping of Mendelian diseases and their clinical features",
      "object": "diseaseHPOMap",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "disease_id",
        "disease_name",
        "hpo_term_id",
        "hpo_term_name"
      ],
      "rows": 75084,
      "table": true,
      "tojson": true
    },
    {
      "name": "hpoPhecodeMap",
      "title": "Mapping of HPO terms and phecodes",
      "object": "HPOPhecodeMap",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "hpo_term_id",
        "hpo_term_name",
        "phecode",
        "phecode_name"
      ],
      "rows": 4189,
      "table": true,
      "tojson": true
    },
    {
      "name": "icdPhecodeMap",
      "title": "Mapping of ICD codes and phecodes",
      "object": "ICDPhecodeMap",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "icd",
        "flag",
        "icd_name",
        "phecode",
        "phecode_name"
      ],
      "rows": 156641,
      "table": true,
      "tojson": true
    },
    {
      "name": "icdSample",
      "title": "Sample table of ICD occurrences",
      "object": "icdSample",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "person_id",
        "icd",
        "flag",
        "entry_date"
      ],
      "rows": 64,
      "table": true,
      "tojson": true
    },
    {
      "name": "preCalcWeights",
      "title": "Pre-calculated weights for calculating phenotype risk scores",
      "object": "preCalcWeights",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "phecode",
        "pred",
        "w"
      ],
      "rows": 1865,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "demoSample",
      "title": "Sample table of demographic information",
      "topics": [
        "demoSample"
      ]
    },
    {
      "page": "diseaseDxIcdMap",
      "title": "Mapping of diseases and diagnostic ICD codes",
      "topics": [
        "diseaseDxIcdMap"
      ]
    },
    {
      "page": "diseaseHpoMap",
      "title": "Mapping of Mendelian diseases and their clinical features",
      "topics": [
        "diseaseHpoMap"
      ]
    },
    {
      "page": "getDxStatus",
      "title": "Identify cases and controls for Mendelian diseases",
      "topics": [
        "getDxStatus"
      ]
    },
    {
      "page": "getGeneticAssociations",
      "title": "Perform association tests between phenotype risk scores and genotypes",
      "topics": [
        "getGeneticAssociations"
      ]
    },
    {
      "page": "getPhecodeOccurrences",
      "title": "Map ICD code occurrences to phecode occurrences",
      "topics": [
        "getPhecodeOccurrences"
      ]
    },
    {
      "page": "getResidualScores",
      "title": "Calculate residual phenotype risk scores",
      "topics": [
        "getResidualScores"
      ]
    },
    {
      "page": "getScores",
      "title": "Calculate phenotype risk scores",
      "topics": [
        "getScores"
      ]
    },
    {
      "page": "getWeights",
      "title": "Calculate phecode-specific weights for phenotype risk scores",
      "topics": [
        "getWeights"
      ]
    },
    {
      "page": "hpoPhecodeMap",
      "title": "Mapping of HPO terms and phecodes",
      "topics": [
        "hpoPhecodeMap"
      ]
    },
    {
      "page": "icdPhecodeMap",
      "title": "Mapping of ICD codes and phecodes",
      "topics": [
        "icdPhecodeMap"
      ]
    },
    {
      "page": "icdSample",
      "title": "Sample table of ICD occurrences",
      "topics": [
        "icdSample"
      ]
    },
    {
      "page": "mapDiseaseToPhecode",
      "title": "Map diseases to phecodes via HPO terms",
      "topics": [
        "mapDiseaseToPhecode"
      ]
    },
    {
      "page": "preCalcWeights",
      "title": "Pre-calculated weights for calculating phenotype risk scores",
      "topics": [
        "preCalcWeights"
      ]
    }
  ],
  "_readme": "https://github.com/hugheylab/phers/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "BEDMatrix",
    "checkmate",
    "codetools",
    "crochet",
    "data.table",
    "foreach",
    "iterators",
    "lattice",
    "Matrix",
    "survival"
  ],
  "_score": 3.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "phers",
  "_universes": [
    "hugheylab",
    "jakejh"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.5",
      "date": "2026-11-22T09:01:17.000Z",
      "distro": "resolute",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/abce93ba7503d8734ee2fe345b06eadea9a197f1f58cab1951c41d80a0f5cb20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.0.5",
      "date": "2026-11-22T09:01:12.000Z",
      "distro": "resolute",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/159ef532606ee913762f596bfef8c02eee06315cf790797a3ed7f7a8191a463d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.5",
      "date": "2026-11-22T09:02:20.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/0b1dd99925f4e6a786b9cad4244039a1595a258b590a5a064fd4397b46e2e4c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.0.5",
      "date": "2026-11-22T09:01:48.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/a44c37447a6dfc9579fec1bc2e2e4dfc0af44696244a46d222871bce544da543",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.5",
      "date": "2026-11-22T09:01:16.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/06299da08df457ca731b2a4b0de65c23fa8d0ff5e6b2cb7e465406d1ac5d9847",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.5",
      "date": "2026-11-22T09:00:29.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/81e1da100ed6033ca5172d25c2cc8b32b640f1f8468c153bdbbc46cfe6b9aaec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.5",
      "date": "2026-11-22T09:00:35.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/c123cec05d1697cd81875a2abc5dfbfa789371b38f6f3d719b70be32d14c0060",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.0.5",
      "date": "2026-11-22T09:00:22.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/9bab9ddd006f80c53a5f5ccea317956d3e3cd31a206e8fe6c5bb0ce0a7e76ca5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/45005108383"
    }
  ]
}