You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, the marker of ring closure bonds will locate after the marker of branching, for example C(CC)1OC1 and C1(CC)OC1. OpenBabel can accept them and yield the same structure, which can be validated by command line obabel -ismi -:'C1(CC)OC1' -osmi and obabel -ismi -:'C(CC)1OC1' -osmi, the converted SMILES expressions are C1(CC)OC1.
branched_atom ::= atom ringbond* branch*
branch ::= '(' chain ')' | '(' bond chain ')' | '(' dot chain ')'
a ringbond must always directly follow an atom specification and cannot appear after a chain.
Ideally I think pysmiles should raise an error is such a case, but I don't know when I'll have time to implement that. I'll leave the issue open until then at least.
Dear developers
In some cases, the marker of ring closure bonds will locate after the marker of branching, for example
C(CC)1OC1
andC1(CC)OC1
. OpenBabel can accept them and yield the same structure, which can be validated by command lineobabel -ismi -:'C1(CC)OC1' -osmi
andobabel -ismi -:'C(CC)1OC1' -osmi
, the converted SMILES expressions areC1(CC)OC1
.However pysmiles acting differently as following:
the number last expression is somehow been misinterpreted. would the pysmiles be permissive to this condition?
The text was updated successfully, but these errors were encountered: