# iupac/dissociation-constants architecture

> Architecture diagram of the GitHub repository iupac/dissociation-constants, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iupac/dissociation-constants
- Repository: https://github.com/iupac/dissociation-constants

## Overview

This repository publishes a curated, high-confidence aqueous pKa dataset and demonstrates its digitization workflow: OCR and table cleanup, conversion to computer-readable chemistry data, then final curation. The README documents the notebook sequence and major translation tools, but no source excerpts were provided; edges below therefore reflect documented relationships only, not inspected code. The OCR and chemical-identifier services are external dependencies, and the report describes methodology rather than executing it.

Main entry points: [`jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb`](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb) (Name translation), [`jupyter_notebooks/3_further_process_data.ipynb`](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/3_further_process_data.ipynb) (Final data processing), [`jupyter_notebooks/1_automatically_process_messy_OCR_demo.ipynb`](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/1_automatically_process_messy_OCR_demo.ipynb) (OCR table cleanup), [`iupac_high-confidence_v2_4.csv`](https://github.com/iupac/dissociation-constants/blob/main/iupac_high-confidence_v2_4.csv) (High-confidence pKa data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_processing["Data processing"]
  node_scan["Sample scan"]
  node_textract["Amazon Textract"]
  node_ocr_sample["OCR sample data<br/>[data.csv]"]
  node_ocr_cleanup["OCR table cleanup"]
  node_table_analysis["Scanned-work analysis"]
  node_final_processing["Final data processing"]
end

subgraph group_chemistry["Chemical translation"]
  node_name_translation["Name translation"]
  node_molconvert["Chemaxon Molconvert"]
  node_opsin["OPSIN"]
  node_pubchem["PubChem"]
  node_cir["Chemical Identifier Resolver"]
end

subgraph group_published["Dataset and references"]
  node_dataset[("High-confidence pKa data")]
  node_method_codes["Method code mapping"]
  node_reference_codes["Reference code mapping"]
  node_digitization_report["Digitization report"]
end

node_curator(("Data curator"))

node_scan -->|"OCR input"| node_textract
node_textract -->|"produces OCR"| node_ocr_sample
node_textract -->|"provides OCR output"| node_ocr_cleanup
node_curator -->|"runs demo"| node_ocr_cleanup
node_curator -->|"runs notebook"| node_table_analysis
node_curator -->|"runs notebook"| node_final_processing
node_table_analysis -->|"translates names"| node_name_translation
node_name_translation -.->|"uses translation aid"| node_molconvert
node_name_translation -.->|"uses translation aid"| node_opsin
node_name_translation -.->|"uses translation aid"| node_pubchem
node_name_translation -.->|"uses translation aid"| node_cir
node_final_processing -->|"produces dataset"| node_dataset
node_curator -->|"reviews and curates"| node_dataset

click node_scan "https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/data_sample/textbook_original_scan.pdf"
click node_ocr_sample "https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/data_sample/data.csv"
click node_ocr_cleanup "https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/1_automatically_process_messy_OCR_demo.ipynb"
click node_table_analysis "https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb"
click node_final_processing "https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/3_further_process_data.ipynb"
click node_name_translation "https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb"
click node_dataset "https://github.com/iupac/dissociation-constants/blob/main/iupac_high-confidence_v2_4.csv"
click node_method_codes "https://github.com/iupac/dissociation-constants/blob/main/method_translation.csv"
click node_reference_codes "https://github.com/iupac/dissociation-constants/blob/main/reference_code_translation.csv"
click node_digitization_report "https://github.com/iupac/dissociation-constants/blob/main/IUPAC_pK_DataDigitizationReport.pdf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scan,node_textract,node_ocr_sample,node_ocr_cleanup,node_table_analysis,node_final_processing toneBlue
class node_name_translation,node_molconvert,node_opsin,node_pubchem,node_cir toneAmber
class node_dataset,node_method_codes,node_reference_codes,node_digitization_report toneMint
class node_curator toneIndigo
```

## Components

### Data processing

- [Sample scan](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/data_sample/textbook_original_scan.pdf): `jupyter_notebooks/data_sample/textbook_original_scan.pdf`
- **Amazon Textract**
- [OCR sample data](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/data_sample/data.csv): `jupyter_notebooks/data_sample/data.csv`
- [OCR table cleanup](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/1_automatically_process_messy_OCR_demo.ipynb): `jupyter_notebooks/1_automatically_process_messy_OCR_demo.ipynb`
- [Scanned-work analysis](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb): `jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb`
- [Final data processing](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/3_further_process_data.ipynb): `jupyter_notebooks/3_further_process_data.ipynb`

### Chemical translation

- [Name translation](https://github.com/iupac/dissociation-constants/blob/main/jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb): `jupyter_notebooks/2_combine_and_analyze_scanned_work_serjeant.ipynb`
- **Chemaxon Molconvert**
- **OPSIN**
- **PubChem**
- **Chemical Identifier Resolver**

### Dataset and references

- [High-confidence pKa data](https://github.com/iupac/dissociation-constants/blob/main/iupac_high-confidence_v2_4.csv): `iupac_high-confidence_v2_4.csv`
- [Method code mapping](https://github.com/iupac/dissociation-constants/blob/main/method_translation.csv): `method_translation.csv`
- [Reference code mapping](https://github.com/iupac/dissociation-constants/blob/main/reference_code_translation.csv): `reference_code_translation.csv`
- [Digitization report](https://github.com/iupac/dissociation-constants/blob/main/IUPAC_pK_DataDigitizationReport.pdf): `IUPAC_pK_DataDigitizationReport.pdf`

### Other components

- **Data curator**

## Connections

- Sample scan → Amazon Textract: OCR input (evidence: `README.md`)
- Amazon Textract → OCR sample data: produces OCR (evidence: `README.md`)
- Amazon Textract → OCR table cleanup: provides OCR output (evidence: `README.md`)
- Data curator → OCR table cleanup: runs demo (evidence: `README.md`)
- Data curator → Scanned-work analysis: runs notebook (evidence: `README.md`)
- Data curator → Final data processing: runs notebook (evidence: `README.md`)
- Scanned-work analysis → Name translation: translates names (evidence: `README.md`)
- Name translation → Chemaxon Molconvert: uses translation aid (evidence: `README.md`)
- Name translation → OPSIN: uses translation aid (evidence: `README.md`)
- Name translation → PubChem: uses translation aid (evidence: `README.md`)
- Name translation → Chemical Identifier Resolver: uses translation aid (evidence: `README.md`)
- Final data processing → High-confidence pKa data: produces dataset (evidence: `README.md`)
- Data curator → High-confidence pKa data: reviews and curates (evidence: `README.md`)
