Skip to content

fix molecule sanitization in reader.py - #45

Merged
sfluegel05 merged 6 commits into
devfrom
fix/molecule-sanitization
Aug 3, 2026
Merged

fix molecule sanitization in reader.py#45
sfluegel05 merged 6 commits into
devfrom
fix/molecule-sanitization

Conversation

@sfluegel05

@sfluegel05 sfluegel05 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The _sanitize_molecule function gets called, but the result is not used (#40 ). This leads to missing values for some of the properties (AtomHybridization gets set to unspecified).

This does not affect model training because the training dataset does not use SMILES string, but passes molecule objects (which have been created from sanitized molfiles).

To avoid future discrepancies between training and inference, I moved the SMILES to mol conversion to chebi_utils. This gives us the chance to update the chebai and chebifier repositories as well which both have their own SMILES-processing functionality.

Todo

@aditya0by0 aditya0by0 linked an issue Aug 3, 2026 that may be closed by this pull request
@sfluegel05
sfluegel05 marked this pull request as ready for review August 3, 2026 14:01
@sfluegel05
sfluegel05 merged commit e344140 into dev Aug 3, 2026
1 check passed
@sfluegel05
sfluegel05 deleted the fix/molecule-sanitization branch August 3, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potential bug in reader.py

1 participant