{
  "_id": "6ab376183d719c1f8408fa22",
  "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-09-23 06:28:24 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/974f566d85bae695ee0fccc6c86201e711f9904db0217666e08290220ddaf5f2",
  "_filesize": 1630755,
  "_sha256": "974f566d85bae695ee0fccc6c86201e711f9904db0217666e08290220ddaf5f2",
  "_expires": "2027-01-01T06:47:50.000Z",
  "_created": "2026-09-23T06:28:24.000Z",
  "_published": "2026-09-23T06:47:52.703Z",
  "_jobs": [
    {
      "job": 107070650286,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10734849523"
    },
    {
      "job": 107070650162,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10735532192"
    },
    {
      "job": 107070650267,
      "time": 135,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10736681361"
    },
    {
      "job": 107070650287,
      "time": 113,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10735528312"
    },
    {
      "job": 107069855844,
      "time": 197,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10735446912"
    },
    {
      "job": 107070650357,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10735472189"
    },
    {
      "job": 107070650268,
      "time": 100,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10734834425"
    },
    {
      "job": 107070650218,
      "time": 98,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10735612026"
    },
    {
      "job": 107070650196,
      "time": 95,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10735567145"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111",
  "_status": "success",
  "_upstream": "https://github.com/hugheylab/phers",
  "_commit": {
    "id": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
    "author": "Jake Hughey <jakejhughey@gmail.com>",
    "committer": "Jake Hughey <jakejhughey@gmail.com>",
    "message": "set dt threads to 1.\n",
    "time": 1772514975
  },
  "_maintainer": {
    "name": "Jake Hughey",
    "email": "jakejhughey@gmail.com",
    "login": "jakejh",
    "description": "",
    "uuid": 2295314
  },
  "_distro": "resolute",
  "_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": 246,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/phers"
  },
  "_devurl": "https://github.com/hugheylab/phers",
  "_searchresults": 1,
  "_rbuild": "4.6.1",
  "_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"
    }
  ],
  "_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-09-23T06:30:44.000Z",
      "distro": "resolute",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/05893639f8bcc739a44e2782b3eb8a119455ec64b5fdf60e9b2c0a0b41295b59",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.5",
      "date": "2026-09-23T06:30:47.000Z",
      "distro": "resolute",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/76897f6d2d183b8a64ce2dec9fc18c4c03dc93b952a683a3012a2a0e527f2cb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.5",
      "date": "2026-09-23T06:46:41.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/50cb320fad5dabc87b301a253deeb8d3fcffe8315842374a4b862e1e0790ea7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.5",
      "date": "2026-09-23T06:38:42.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/017a9287ce0dcb9f164ea0bc8d55e5961c07549ddc195600bcee1563be3a8f4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.5",
      "date": "2026-09-23T06:30:44.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/63d47d6b540f2a5e34d44f195fb9ada5dbefed298f1776411bcd07e7cbfe618c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.5",
      "date": "2026-09-23T06:29:48.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/2a09f02a1590fb47ccfaa88c254ff47a5d047e0fe9f6489b6ed095e73aef304e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.5",
      "date": "2026-09-23T06:29:48.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/b8f4b91429003259dd33a44c0f8c19d0ef05f9009b3f96746a58c974074c6925",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.5",
      "date": "2026-09-23T06:29:55.000Z",
      "commit": "7cf555bc2bae2a96409fcceb4620f1727cd1a18f",
      "fileid": "https://r2.ropensci.org/baebdf7b8cbc48cba249bb581074719adce31df325339ddf16374e6fb5dfd39b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugheylab/actions/runs/35826650111"
    }
  ]
}