# Integrated DrugMatrix and TG-GATEs Toxicogenomics Data Resource

## Overview

This release combines treatment-level toxicogenomics and apical toxicology data from DrugMatrix and Open TG-GATEs into a common analysis matrix. It is intended for computational toxicology, toxicogenomics, machine-learning, and data-integration applications. The data are being distributed through the Chemical Effects in Biological Systems (CEBS) resource so that users can download the complete matrix, work with source-oriented flat files, or query the SQLite delivery to create smaller analysis sets.

The merged resource contains:

- Gene-expression responses from multiple DrugMatrix platforms and tissues.
- Rat in vivo liver and kidney Affymetrix data from TG-GATEs.
- Clinical pathology endpoints, including hematology and clinical chemistry.
- Histopathology findings represented as treatment-group average severity scores.
- Harmonized clinical-pathology and histopathology terminology.
- Chemical identifiers, structures, fingerprints, structural alerts, QSAR predictions, and read-across results.

**Release DOI:** `[INSERT CEBS RELEASE DOI]`

## Source datasets and coverage

### DrugMatrix

DrugMatrix contains short-term rat toxicology studies with gene expression, clinical chemistry, hematology, and histopathology. A study in this release is represented by a chemical, dose, and treatment duration. DrugMatrix gene-expression data in the merged resource include:

- **Codelink RU1:** bone marrow, brain, heart, intestine, kidney, liver, spleen, and thigh muscle.
- **Affymetrix RG230 2.0:** heart, kidney, liver, and thigh muscle.
- **BioSpyder Whole Transcriptome:** S1500+ TempO-Seq measurements extrapolated to whole-transcriptome values with Sciome GeniE. The resource includes the DrugMatrix tissue collections represented by this platform.

DrugMatrix treatment-to-control pairings are platform-specific. Affymetrix and Codelink ratios were obtained from the DrugMatrix database and use the source database's temporally matched treatment/control assignments. For the S1500+/GeniE data, treated and control samples were paired within tissue during processing. Control assignments changed across successive versions and platforms of DrugMatrix, so values for the same chemical-dose-duration condition may not be identical across platforms.

### Open TG-GATEs

The TG-GATEs portion of this release is restricted to **rat in vivo liver and kidney** studies, including single- and repeat-dose designs. Gene expression was measured on the Affymetrix Rat Genome 230 2.0 array. TG-GATEs includes explicit dose levels (`Control`, `Low`, `Middle`, and `High`) and time-/experiment-matched control groups.

Only the rat in vivo liver and kidney component of TG-GATEs is represented in the merged matrix; TG-GATEs in vitro studies are not part of this integration.

## Unit of analysis and matrix organization

Each non-identifier column in the main matrix represents one **chemical-dose-duration study condition**. Column names use a compact form similar to:

```text
CHEMICAL-DURATION-DOSE
```

Examples include `BISPHENOL A-.25d-100mg/kg` and `ACETAMINOPHE-4d-0.0mg/kg`. Chemical names may be abbreviated to maintain consistent identifiers. Dose units are retained in the study name where available.

The compressed matrix header contains **6,265 fields**:

1. `feature_name` - a human-interpretable identifier that encodes the endpoint, tissue, platform, gene/probe, clinical-pathology term, or histopathology term.
2. `assay_pathology_probe` - the internal feature key used to connect matrix values with feature annotations and database records.
3. **6,263 study columns** - one column per chemical-dose-duration condition.

The matrix is sparse because not every endpoint, tissue, or expression platform was measured for every study. A blank cell means that the feature value is unavailable for that study; it should not be interpreted as zero or as evidence of no effect.

The SQLite table `complete_matrix_rows` provides the same integrated data in long form and adds fields such as `converted_name`, `dsstox_substance_id`, `dataset_collection`, `dose_level`, `data_source`, `chemical_duration`, `chemical_dose`, `probe_type`, `probe_description`, `tissue`, `platform`, and `platform_probe_id`.

The companion feature-annotation file, `Matrix probe IDs and annotations for DM+TG datat.txt`, contains one record for each of the 375,224 matrix features. Its `assay-pathology-probe` column joins to `assay_pathology_probe` in the main matrix, and `assay-pathology-probe-Fixed` corresponds to the expanded `feature_name`. The remaining fields identify the probe type, description, tissue, platform, platform-specific probe identifier where available, and annotation index.

## Value definitions and processing

### Gene expression

Gene-expression effects are represented as **log10 treated/control ratios**.

- **TG-GATEs:** Affymetrix data were RMA normalized. Because RMA expression is on a log2 scale, values were converted out of log2 space before calculating log10 ratios against the designated experiment-matched controls.
- **DrugMatrix Affymetrix and Codelink:** log10 ratios were taken from the processed DrugMatrix database and retain its platform-specific, temporally based treatment/control pairings.
- **DrugMatrix S1500+/GeniE:** S1500+ measurements were extrapolated to whole-transcriptome expression using Sciome GeniE, followed by tissue-specific treated/control comparisons.

A positive value indicates higher expression in treated animals than controls, a negative value indicates lower expression, and zero indicates no difference on the ratio scale.

### Clinical pathology

Clinical pathology includes hematology and clinical chemistry. Values are **log10 treated/control ratios**.

- **TG-GATEs:** ratios use the designated controls matched to the experiment.
- **DrugMatrix:** the denominator is the mean value across the available control animals used for the corresponding DrugMatrix clinical-pathology comparison.

The mapping table supplied with this release links TG-GATEs abbreviations such as `RBC`, `ALT`, and `BUN` to the corresponding DrugMatrix endpoint names.

### Histopathology

Histopathology values are **average severity scores for the treatment group**. They are not ratios to control. TG-GATEs treatment groups generally contain five animals, whereas DrugMatrix treatment groups generally contain three animals; users should consult source metadata when exact group size is important.

TG-GATEs source findings were mapped to harmonized DrugMatrix histopathology names. The mapping table contains 350 TG-GATEs source terms: 252 have a DrugMatrix mapping and 98 remain unmapped. Blank mapped values in that file are intentional indicators that no harmonized DrugMatrix term was assigned.

### Relative dose

TG-GATEs provides relative dose categories directly. Comparable `Low`, `Middle`, and `High` categories were assigned to DrugMatrix treatment conditions to support cross-source modeling. The absolute administered dose and duration should still be retained in analyses because relative-dose categories are chemical-specific.

## Identifiers and joins

Accessory chemical files use `dsstox_substance_id` (DTXSID) as their primary chemical identifier. The chemical annotation file supplies CAS Registry Numbers, preferred names, DTXCIDs, InChI, InChIKey, SMILES, molecular formula, and mass fields.

Feature identifiers in `Matrix probe IDs and annotations for DM+TG datat.txt` are case-sensitive. Both identifier columns are unique when case is preserved, but case-insensitive software can collapse distinct identifiers that differ only by capitalization. Preserve the original capitalization when joining this file to the main matrix.

Within `drmat_tggat_matrix.db`, several accessory tables use internal identifiers such as `epa_id` and `smi_id`. Use database linker/annotation tables or the DTXSID in `complete_matrix_rows` rather than assuming that internal numeric identifiers are interchangeable with DTXSIDs.

## File inventory

All `.txt` files described below are tab-delimited unless otherwise noted.

### Core merged data

| File | Description |
|---|---|
| `2026_dmtg_matrix_data_rounded.txt.gz` | Gzip-compressed merged wide matrix. Rows are molecular or apical features; the first two fields are `feature_name` and `assay_pathology_probe`; the remaining 6,263 fields are study columns. Numeric values are rounded for distribution. |
| `Matrix probe IDs and annotations for DM+TG datat.txt` | Tab-delimited feature dictionary with 375,224 rows and eight columns: `assay-pathology-probe`, `assay-pathology-probe-Fixed`, `Probe Type`, `Probe Description`, `Tissue`, `Platform`, `Platform Probe IDs`, and `Index`. Join `assay-pathology-probe` to the main matrix's `assay_pathology_probe`; the fixed identifier corresponds to the matrix's expanded `feature_name`. Probe types include gene expression, clinical chemistry, hematology, and histopathology. Platform-specific probe IDs are populated where available. The filename intentionally retains `datat`. |
| `drmat_tggat_matrix.db` | Approximately 58 GB SQLite database containing the long-form merged matrix, DrugMatrix and TG-GATEs metadata, chemical annotations, predictions, structural alerts, fingerprints, and companion annotation tables. This is the queryable alternative to loading the complete wide matrix. |

### Cross-dataset mapping files

| File | Description |
|---|---|
| `DM to TG Clinical Pathology Mapping.txt` | UTF-8 tab-delimited lookup containing 38 TG-GATEs clinical-pathology abbreviations and the corresponding DrugMatrix endpoint names. Columns: `tg_gates_term`, `drugmatrix_term`. |
| `DM to TG Clinical Pathology Mapping.xlsx` | Excel workbook preserved from the source mapping table. It contains the same 38 clinical-pathology mappings in a formatted worksheet. |
| `DM to TG Histopath mappings.txt` | UTF-8 tab-delimited TG-GATEs-to-DrugMatrix histopathology lookup. Columns: `tg_gates_pathology_term`, `drugmatrix_histopathology_name`. Of 350 TG-GATEs terms, 252 are mapped and 98 have a blank mapped value. |
| `DM to TG Histopath mappings.xlsx` | Excel workbook preserved from the source histopathology mapping table. It contains the same 350 source terms and mapped/unmapped results in a formatted worksheet. |

### Chemical identifiers and structures

| File | Description |
|---|---|
| `2026_ORNL_annotation_complete_chemicals.txt` | DTXSID-centered chemical crosswalk with 643 chemical records and 12 fields: DTXSID, CASRN, preferred name, DTXCID, DSSTox quality-control level, InChI, InChIKey, original SMILES, molecular weight, molecular formula, monoisotopic mass, and database-ready name. Use this file to connect matrix studies and accessory predictions to chemical structures and names. |

### Model predictions and read-across results

| File | Description |
|---|---|
| `2026_ORNL_admet_predictions.txt` | ADMET Predictor output for 636 chemicals. The file contains `dsstox_substance_id` plus 507 model, descriptor, risk, or simulation fields. Values and units are model-specific; use the companion model-description file. |
| `2026_ORNL_annotation_admet_models_description.txt` | Two-column glossary of 627 ADMET Predictor model/descriptor names and descriptions, including units, classification meanings, model limitations, and risk-score definitions where supplied by the software. Not every glossary entry is necessarily present as a column in the released prediction matrix. |
| `2026_ORNL_genra_predictions.txt` | EPA Generalized Read-Across results for 633 chemicals and 852 toxicity-effect endpoints. Calls are `pos_effect`, `no_effect`, or `no_data`. These are read-across results rather than direct experimental observations for the target chemical. |
| `2026_ORNL_leadscope_predictions.txt` | LeadScope model output for 621 chemicals and 129 model fields. Observed codes range from -1 to 1 and some values are missing. A definitive code key is not included in this release, so users should not assign active/inactive meanings without consulting the applicable LeadScope documentation and license. |
| `2026_ORNL_annotation_leadscope_models_description.txt` | Model-name, category, and subcategory lookup for 168 LeadScope models. Categories include genetic toxicity, carcinogenicity, developmental/reproductive toxicity, organ adverse effects, acute toxicity, ecotoxicity, and skin sensitization. |
| `2026_ORNL_qsur_predictions.txt` | EPA quantitative structure-use relationship (QSUR) predictions for 636 chemicals and 39 functional-use categories. Values range from 0 to approximately 1 and represent predicted probabilities of associated chemical function/use. |
| `2026_ORNL_toxp21_predictions.txt` | Tox21 assay-model predictions for 629 chemicals and 39 assay models. The filename retains `toxp21`; the contents are Tox21 predictions. Values are binary 0/1 calls with a small number of missing values. According to the project processing notes, 1 represents a predicted active call and 0 a predicted inactive call. |

### Structural-alert matrices and annotations

Structural-alert result matrices use 0 for absence and 1 for presence of an alert. Alert names and SMARTS definitions should be interpreted as supplied by the originating tool or catalog; overlapping alerts across catalogs are expected.

| File | Description |
|---|---|
| `2026_ORNL_chembl_alerts.txt` | Binary ChEMBL-derived structural-alert matrix for 436 chemicals and 184 released alert features. |
| `2026_ORNL_annotation_chembl_alerts_mapping.txt` | ChEMBL alert lookup with 936 catalog entries. Columns provide the matrix-oriented name, human-readable alert name, and SMARTS definition. The annotation catalog is larger than the subset present in the result matrix. |
| `2026_ORNL_ochem_alerts.txt` | Binary OCHEM/ToxAlerts structural-alert matrix for 636 chemicals and 1,160 alert features. |
| `2026_ORNL_annotation_ochem_alerts_mapping.txt` | OCHEM/ToxAlerts lookup with 3,180 entries containing matrix-oriented names, alert names, and SMARTS definitions. |
| `2026_ORNL_saagar_alerts.txt` | Binary Saagar structural-feature/alert matrix for 636 chemicals and 714 alert features. |
| `2026_ORNL_annotation_saagar_alerts_mapping.txt` | Saagar alert-name-to-SMARTS lookup with 834 entries. |
| `2026_ORNLtoxprint_alerts.txt` | Binary ToxPrint chemotype matrix for 635 chemicals and 423 released chemotypes. The filename intentionally lacks an underscore between `ORNL` and `toxprint`. |
| `2026_ORNL_annotation_toxprint_alerts.txt` | ToxPrint annotation list with 729 chemotype type/name combinations. Unlike the ChEMBL, OCHEM, and Saagar annotation files, this file does not contain SMARTS definitions. |

### Chemical fingerprints

| File | Description |
|---|---|
| `2026_ORNL_morgan_fingerprints.txt` | Morgan/circular fingerprints for 638 chemicals. Column `bv` is a 1,024-character binary bit vector. Bit positions are not individually annotated in this release. |
| `2026_ORNL_rdkit_fingerprints.txt` | RDKit topological fingerprints for 638 chemicals. Column `bv` is a 2,048-character binary bit vector. Bit positions are not individually annotated in this release. |

### DrugMatrix expression and sample archives

| File | Description |
|---|---|
| `drugmatrix_affymetrix_expression.zip` | ZIP archive containing `drugmatrix_affymetrix_expression.csv`, a long-form DrugMatrix Affymetrix expression table. Its nine fields are `aex_id`, `afsa_id`, `aprobe_id`, `raw_normalized`, `log10_normalized`, `log2_normalized`, `master`, `dataset_collection`, and `probeset_name`. |
| `drugmatrix_expression_data_wide.zip` | ZIP archive containing `drugmatrix_expression_data_wide.csv`, a wide normalized DrugMatrix Affymetrix expression matrix with probesets as rows and 5,587 sample-ID columns. Join sample IDs to the sample-metadata archive. |
| `drugmatrix_sample_metadata.zip` | ZIP archive containing `drugmatrix_sample_metadata.csv` and a formatted clinical-pathology mapping workbook. The CSV maps `sample_id` to the chemical-dose-duration `converted_name` and `dataset_collection` (for example, `rat heart`). The top-level mapping files in this release are the authoritative harmonization tables. |

## SQLite database guide

The SQLite database is useful when only a subset of features, studies, tissues, or accessory annotations is needed. Its principal table groups are:

- **Merged data:** `complete_matrix_rows`.
- **Source metadata:** `drugmatrix_metadata`, `tg_gates_metadata`.
- **Chemical structures and identifiers:** `chemical_annotation`, `qsar_ready_smiles`.
- **ADMET:** `admet_qsar_results_interpretation`, `admet_model_annotation`.
- **Read-across and model results:** `genra_results`, `epa_qsur_model_results`, `leadscope_qsar_results_interpretation`, `leadscope_model_annotation`, `tox21_predictions`.
- **Structural alerts:** `chembl_alerts`, `ochem_alerts`, `saagar_alerts`, `toxprint_alerts` and their corresponding annotation tables.
- **Fingerprints:** `morgan_fingerprints`, `rdkit_fingerprints`.

The database has no explicit indexes on `complete_matrix_rows`. It contains approximately 267.5 million long-form rows, so copy the database to a local drive when possible and begin with narrow projections and limits. A read-only Python example is:

```python
import sqlite3

connection = sqlite3.connect(
    "file:drmat_tggat_matrix.db?mode=ro",
    uri=True,
)

query = """
SELECT
    converted_name,
    dsstox_substance_id,
    data_source,
    dose_level,
    tissue,
    platform,
    feature_name,
    feature_value
FROM complete_matrix_rows
WHERE data_source = ?
  AND tissue = ?
  AND platform = ?
LIMIT 1000
"""

rows = connection.execute(
    query,
    ("tg-gates", "Liver", "Affymetrix RG230 2.0"),
).fetchall()
connection.close()
```

Because the table is unindexed, a restrictive `WHERE` clause reduces returned data but may not eliminate scan time. For repeated workflows, create a smaller local extract and add indexes to that copy rather than modifying the distributed database.

## Interpretation and use cautions

- **Missing values:** blanks and `no_data` are unavailable data, not negative findings and not zeros.
- **Feature-identifier case:** preserve capitalization when joining feature annotations to matrix rows; case-insensitive handling can merge otherwise distinct identifiers.
- **Cross-platform comparisons:** differences in probe definitions, tissue coverage, normalization, and treatment/control pairing can produce platform-specific effects.
- **Measured versus inferred expression:** DrugMatrix S1500+/GeniE whole-transcriptome values include model-extrapolated genes; they should be distinguished from directly measured probes in sensitivity analyses.
- **Histopathology mapping:** multiple TG-GATEs findings may map to one DrugMatrix term, and 98 TG-GATEs terms remain unmapped. Harmonization reduces vocabulary differences but does not make study designs or diagnoses identical.
- **Severity scores:** histopathology values summarize severity within a treatment group and should not be analyzed as treated/control ratios.
- **Relative dose:** `Low`, `Middle`, and `High` facilitate cross-chemical comparisons but do not replace the administered dose and duration.
- **QSAR and read-across:** model outputs are screening-level predictions. Applicability domain, confidence, training-set coverage, and endpoint-specific performance should be considered before use.
- **Structural alerts:** an alert indicates the presence of a defined substructure, not proof that the associated toxicological effect will occur.
- **Commercial outputs:** ADMET Predictor and LeadScope are commercial products. Before redistribution or publication, confirm that release and downstream use of the derived outputs comply with the applicable licenses. LeadScope code semantics should be verified against the licensed software documentation.

## References and resources

- [Chemical Effects in Biological Systems (CEBS)](https://cebs-ext.niehs.nih.gov/cebs/)
- [DrugMatrix data in CEBS](https://cebs.nci.nih.gov/cebs/paper/15670)
- [DrugMatrix ApicalXOmics interface and dataset summary](https://manticore.niehs.nih.gov/paxgene/)
- [Open TG-GATEs README](https://dbarchive.biosciencedbc.jp/data/open-tggates/LATEST/README_e.html)
- [Sciome GeniE](https://www.sciome.com/genie/)
- [EPA Generalized Read-Across (GenRA)](https://www.epa.gov/comptox-tools/generalized-read-across-genra)
- [EPA CompTox functional-use and QSUR information](https://comptox.epa.gov/dashboard/chemical/chemical-functional-use/DTXCID80371462)
- [EPA Cheminformatics Modules Manual, including ToxPrints](https://www.epa.gov/comptox-tools/cheminformatics-modules-manual)
- [RDKit fingerprint documentation](https://www.rdkit.org/docs/GettingStartedInPython.html)
- [OCHEM ToxAlerts structural-alert browser](https://ochem.eu/alerts/)
- [ADMET Predictor](https://www.simulations-plus.com/software/admetpredictor/)
- [LeadScope user manuals](https://leadscope-support.instem.com/ls-manuals/)

## Citation

When using this resource, cite the CEBS release DOI shown at the beginning of this README and cite the original DrugMatrix and Open TG-GATEs resources as appropriate for the analysis performed.
