This repository contains the Step1-Step6 preprocessing workflow, three final FAERS core graph releases, and three lightweight reference tables used to organize standardized compound-PT-SOC relationships. It does not include any downstream modeling or prediction results.
The released workflow covers only:
- case deduplication
- case-drug and case-reaction table construction
- drug term normalization and DrugBank linkage
- structure normalization to InChIKey / SMILES
- reaction normalization to MedDRA PT / primary SOC
- core graph construction and pruning
- FAERS / AERS quarterly ASCII archives:
2004Q1-2025Q4 - RxNorm:
RxNorm_full_03022026 - DrugBank:
5.1.15 - MedDRA English:
29.0 - MedDRA Chinese:
29.0
code/: final Step1-Step6 preprocessing and graph-building scriptsdocs/: English process notes, execution notes, and graph release notesfigures/: workflow and graph summary figuresgraphs/: three pruned graph archives compressed as.sqlite.gztables/: three curated reference tables for compounds, PT terms, and SOC terms
The scripts assume the repository is placed beside two user-supplied directories:
your_working_directory/
|-- FAERS-Compound-PT-SOC-Graphs/
|-- raw_data/
| `-- faers_quarterly_archives/
`-- reference_data/
|-- RxNorm_full_03022026/
|-- drugbank_5.1.15/
`-- MedDRA/
In other words:
- raw FAERS/AERS ZIP files should be placed in
../raw_data/faers_quarterly_archives/ - reference datasets should be placed in
../reference_data/
Each released core graph keeps only:
compoundptsoc
compound_has_pt_pscompound_has_pt_sspt_belongs_to_primary_soc
compound -> pt edges are weighted by n_reports, defined as the number of FAERS reports where the standardized compound and standardized PT co-occur under the given role (PS or SS).
step6_compound_pt_soc_core_ge10.sqlite.gz: keepcompound -> ptedges withn_reports >= 10step6_compound_pt_soc_core_ge20.sqlite.gz: keepcompound -> ptedges withn_reports >= 20step6_compound_pt_soc_core_ge30.sqlite.gz: keepcompound -> ptedges withn_reports >= 30
The recommended default graph is ge20, because it provides the best balance between coverage and noise control.
The repository now includes three lightweight reference tables:
tables/all_compounds_basic_info.xlsxtables/all_reactions_basic_info_bilingual.xlsxtables/all_soc_basic_info_bilingual.xlsx
These files provide the cleaned compound identifiers, bilingual PT names, and bilingual SOC names used by the released graphs.
README.mdcode/docs/figures/graphs/tables/release_manifest.json
See docs/GRAPH_RELEASES.md for the released graph summary.
This public repository still does not include the full PS/SS association matrices:
- full PS compound-PT association table
- full SS compound-PT association table
gzip -d step6_compound_pt_soc_core_ge20.sqlite.gz
