How labastar/phers works
PheRS is an R-based phenotyping tool: it turns cohort ICD-9 diagnoses into disease phenotype scores and offers a separate grid-plotting script for inspecting a selected disease across individuals. The README also identifies mapping, disease-label, and weight data files, but no source excerpts show how the scripts load or combine them, so those relationships are omitted. The documented workflow and outputs are shown; implementation details beyond the README remain unverified.
Main entry points: PheRS code.R PheRS generator · PheRS_Grid.R Disease grid plot · icd9s_sample_data.txt Sample ICD-9 data
Components 10
Phenotyping
- PheRS generator
PheRS code.R - PLINK phenotype
- Disease grid plot
PheRS_Grid.R
Data resources
- Sample ICD-9 data
icd9s_sample_data.txt - Disease phecodes
disease_to_phecodes.txt - ICD-9 phecode map
icd9_to_phecode.txt - Phecode strings
phecode_strings.txt - Discovery weights
weights_VUMC_discovery.txt
Other components
- ICD-9 cohort
- Heatmap plot
Connections 6
- ICD-9 cohort → PheRS generator: provides diagnoses
README.md - PheRS generator → PLINK phenotype: generates
README.md - ICD-9 cohort → Disease grid plot: provides diagnoses
README.md - Disease grid plot → Heatmap plot: generates
README.md - Sample ICD-9 data → PheRS generator: sample input
README.md - Sample ICD-9 data → Disease grid plot: sample input
README.md