Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Disconnected parts: the number of '.'-separated parts of RDKit's canonical SMILES (0 for no atoms), version 1.0.0

molecule.fragments@1.0.0: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

What this page can and cannot show

Level: Tested, not reference-checked. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.

Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.

Every version of this method · Every method · What the levels mean

Version 1.0.0

Level: Tested, not reference-checked. Reference kind: not recorded. This level uses the apps' wider definition on the levels page. molecule.fragments@1.0.0

What this page can and cannot show

What was checked

Unit-tested through molecule_descriptors' handler: the section 3.7 salts (sodium chloride 2, diammonium thiosulfate 3), mixtures and a hydrate, ring closures across '.' (section 3.7.1's ethane, propane and 1-bromo-2,3-dichlorobenzene, each 1), single components, and the empty SMILES (0 parts, as section 2.2's grammar allows; the tool refuses empty input). Not yet compared with Python RDKit's GetMolFrags across the library.

Cases: no case set is linked to molecule.fragments@1.0.0.

What was not checked

The count has yet to be compared with Python RDKit's GetMolFrags across the library. No published case set names molecule.fragments@1.0.0. No person has worked these cases or read these sources; the reading and checks recorded here were made by AI sessions.

Equations

Parse the whole SMILES with RDKit. Count the dot-separated parts of the canonical SMILES it writes. An empty canonical SMILES has zero parts.

Source: James CA and contributors. OpenSMILES specification, version 1.0., section 2.2 (Grammar), 3.4 (Rings), 3.7–3.7.1 (Disconnected Structures and Other Uses of Ring Numbers and Dot Bond), 4.3.4 (Starting Atom and Branches), Version 1.0, updated 2026-04-02 09:14:17 BST; read in full on 2026-11-26 by an AI-assisted session; not yet checked by a person.

Constants

Constants: none used.

Worked example

Worked example: one case of molecule.fragments@1.0.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • smiles = C1.C1

Steps

  1. count-parts: components(CC) = 1 = 1, gives result.descriptors.fragments.value.

The working, as the case writes it:

The matching ring-closure marks bond the two carbons. The connected structure is ethane, written CC without a dot.

Answer

  • result.descriptors.fragments.value = 1

Where these values came from: the source's own worked example, OpenSMILES 1.0, sections 3.4, 3.7.1 and 4.3.4, read 26 November 2026.; OpenSMILES 1.0, section 3.7.1, ethane row, and section 4.3.4, dot example.

The build has not run this example through the tool.

Worked by an AI session on 2026-11-26. No person has yet worked this case.

What it refuses, and its input ranges

  • INVALID_STRING: The submitted SMILES is empty or contains only whitespace.
  • NO_ATOMS: The parsed molecule contains no atoms.

Changes

No correction is logged for molecule.fragments@1.0.0.

Tools that use it

Cite this version

Disconnected parts: the number of '.'-separated parts of RDKit's canonical SMILES (0 for no atoms). Drybench; molecule.fragments@1.0.0; https://www.drybench.com/methods/m/molecule.fragments/1.0.0 (accessed [date]).