molecular-format-conversion
Summary
Convert raw chemical structures from heterogeneous input formats (SMILES, SDF, or other molecular representations) into a standardized canonical format for downstream processing in retention time prediction and molecular identification workflows. This skill ensures consistent molecular representation across diverse data sources collected into the RepoRT repository.
When to use
When ingesting raw chemical structure data from multiple external sources (publications, databases, contributor submissions) that use different molecular file formats (SMILES strings, SDF files, or other representations), and you need to unify them into a single canonical format before applying PubChem standardization, calculating molecular descriptors, or building retention time prediction models.
When NOT to use
- Structures are already in a standardized, canonical format and have passed validation
- Input data contains only molecular properties or descriptors (no structural data)
- Raw structures are malformed or contain unrecoverable syntax errors that prevent parsing
Inputs
- Raw chemical structures in SMILES format
- Raw chemical structures in SDF format
- Raw chemical structures in other molecular file formats
Outputs
- Chemical structures in canonical output format
- Validated structures passing format conversion
- Conversion error log (structures that failed conversion)
How to apply
Load raw chemical structures in their native input format (SMILES, SDF, or other molecular representation). Apply format conversion to translate each structure into a canonical output format suitable for downstream standardization and descriptor calculation. Validate that converted structures maintain chemical validity and retain structural information without loss or corruption during the conversion process. Structures that fail conversion should be flagged and excluded from further analysis. The converted structures are then passed to the PubChem standardization step to normalize representation, remove salts, and canonicalize connectivity before retention time model development.
Related tools
- PubChem standardization (Downstream standardization procedure applied after format conversion to normalize molecular representation, remove salts, and canonicalize connectivity)
- rcdk (Post-standardization tool for calculating molecular fingerprints and chemical descriptors from converted and standardized structures)
Evaluation signals
- All structures successfully convert from input format without syntax or parsing errors
- Converted structures maintain chemical validity and can be read back into molecular software without data loss
- Canonical output format is consistent across all converted structures (e.g., all use the same SMILES canonical rules or SDF variant)
- Structures that could not be converted are logged with diagnostic error messages for manual review
- Downstream PubChem standardization step runs without format-related failures on the converted structures
Limitations
- Conversion fidelity depends on whether the source format fully encodes all structural features (e.g., stereochemistry, formal charges, isotope labels); lossy formats may degrade chemical information
- Some molecular formats (particularly loosely-defined SMILES variants) may have ambiguous or non-canonical representations that convert differently across tools, leading to standardization artifacts downstream
- No changelog or versioning information is provided for the conversion workflow, so reproducibility may be compromised if conversion tool versions or configuration drift over time
Evidence
- [other] Load raw chemical structures (SMILES, SDF, or other molecular format) from input dataset: "Load raw chemical structures (SMILES, SDF, or other molecular format) from input dataset."
- [other] Validate standardized structures for chemical validity and retain only structures that pass standardization without error: "Validate standardized structures for chemical validity and retain only structures that pass standardization without error."
- [readme] From the input data structures are standardized using the PubChem standardization: "From the input data structures are standardized using the PubChem standardization and molecular fingerprints and chemical descriptors are calculated using rcdk."
- [other] Export standardized structures to canonical output format: "Export standardized structures to canonical output format."
1---2name: molecular-format-conversion3description: Use when when ingesting raw chemical structure data from multiple external sources (publications, databases, contributor submissions) that use different molecular file formats (SMILES strings, SDF files, or other representations), and you need to unify them into a single canonical format before.4license: CC-BY-4.05---67# molecular-format-conversion89## Summary1011Convert raw chemical structures from heterogeneous input formats (SMILES, SDF, or other molecular representations) into a standardized canonical format for downstream processing in retention time prediction and molecular identification workflows. This skill ensures consistent molecular representation across diverse data sources collected into the RepoRT repository.1213## When to use1415When ingesting raw chemical structure data from multiple external sources (publications, databases, contributor submissions) that use different molecular file formats (SMILES strings, SDF files, or other representations), and you need to unify them into a single canonical format before applying PubChem standardization, calculating molecular descriptors, or building retention time prediction models.1617## When NOT to use1819- Structures are already in a standardized, canonical format and have passed validation20- Input data contains only molecular properties or descriptors (no structural data)21- Raw structures are malformed or contain unrecoverable syntax errors that prevent parsing2223## Inputs2425- Raw chemical structures in SMILES format26- Raw chemical structures in SDF format27- Raw chemical structures in other molecular file formats2829## Outputs3031- Chemical structures in canonical output format32- Validated structures passing format conversion33- Conversion error log (structures that failed conversion)3435## How to apply3637Load raw chemical structures in their native input format (SMILES, SDF, or other molecular representation). Apply format conversion to translate each structure into a canonical output format suitable for downstream standardization and descriptor calculation. Validate that converted structures maintain chemical validity and retain structural information without loss or corruption during the conversion process. Structures that fail conversion should be flagged and excluded from further analysis. The converted structures are then passed to the PubChem standardization step to normalize representation, remove salts, and canonicalize connectivity before retention time model development.3839## Related tools4041- **PubChem standardization** (Downstream standardization procedure applied after format conversion to normalize molecular representation, remove salts, and canonicalize connectivity)42- **rcdk** (Post-standardization tool for calculating molecular fingerprints and chemical descriptors from converted and standardized structures)4344## Evaluation signals4546- All structures successfully convert from input format without syntax or parsing errors47- Converted structures maintain chemical validity and can be read back into molecular software without data loss48- Canonical output format is consistent across all converted structures (e.g., all use the same SMILES canonical rules or SDF variant)49- Structures that could not be converted are logged with diagnostic error messages for manual review50- Downstream PubChem standardization step runs without format-related failures on the converted structures5152## Limitations5354- Conversion fidelity depends on whether the source format fully encodes all structural features (e.g., stereochemistry, formal charges, isotope labels); lossy formats may degrade chemical information55- Some molecular formats (particularly loosely-defined SMILES variants) may have ambiguous or non-canonical representations that convert differently across tools, leading to standardization artifacts downstream56- No changelog or versioning information is provided for the conversion workflow, so reproducibility may be compromised if conversion tool versions or configuration drift over time5758## Evidence5960- [other] Load raw chemical structures (SMILES, SDF, or other molecular format) from input dataset: "Load raw chemical structures (SMILES, SDF, or other molecular format) from input dataset."61- [other] Validate standardized structures for chemical validity and retain only structures that pass standardization without error: "Validate standardized structures for chemical validity and retain only structures that pass standardization without error."62- [readme] From the input data structures are standardized using the PubChem standardization: "From the input data structures are standardized using the PubChem standardization and molecular fingerprints and chemical descriptors are calculated using rcdk."63- [other] Export standardized structures to canonical output format: "Export standardized structures to canonical output format."