I would like to request adding support for monoatomic groups in the GroupGrammar class.
Currently, the system effectively handles multi-atom groups by converting them to GroupSELFIES, but monoatomic groups (e.g., [C], [F], [N]) are treated separately as individual tokens outside the GroupGrammar vocabulary. This leads to challenges when attempting to extract the full molecular connectivity between groups and individual atoms.
Required Feature:
Introduce monoatomic groups (e.g., fragC, fragF, fragN, etc.) to the GroupGrammar.vocab to ensure that atoms like ["B", "C", "N", "O", "P", "S", "F", "Cl", "Br", "I", "Li", "Na", "K", "Rb", "Cs", "Fr", "Be", "Mg", "Ca", "Sr", "Ba", "Ra"] can also be processed as groups.
Allow these monoatomic groups to be added dynamically or to be included in the essential grammar set, similar to how groups like frag65, frag66, etc., are treated.
Motivation:
The main issue arises when trying to extract the molecular connectivity between the subgraphs represented by GroupSELFIES. GroupSELFIES, in essence, represents the original molecular graph by grouping atoms into subgraphs (i.e., groups). The connectivity between group tokens is clearly defined, but for monoatomic tokens like [C], the connectivity remains unclear. This inconsistency makes it difficult to extract subgraph-to-subgraph connectivity in a unified way.
Adding support for monoatomic groups would allow all atoms, even single atoms like [C] and [F], to be treated as subgraphs, ensuring that the connections between subgraphs can be easily traced and understood.
Example:
Here is an example where monoatomic atoms are treated separately from the defined groups. Ideally, atoms like [C] and [F] should be included as monoatomic groups within GroupGrammar.vocab to clarify their connectivity:
1, 2, and 3 are the parts which show a monoatomic group (i.e., [C], [F], and [C]) being treated as a part of a group, which is the behavior we want to implement.
Therefore, monomolecular group tokens, such as 4, 5, and 6, are also represented as connections.
You can also see that the "GROUPS" has a single-member group defined, such as 7, 8, and 9.
To this end,
The monoatomic group must be defined in the GroupGrammar.vocab
When converting graphs to group_selfies, you must be able to match monoatomic groups with group tokens.
Conclusion:
By adding support for monoatomic groups, the molecular connectivity between all subgraphs (whether complex groups or individual atoms) can be traced uniformly, greatly simplifying tasks such as graph extraction, reconstruction, and representation.
Thank you for considering this request! Looking forward to your feedback.
Hello, thanks for your wonderful work!
I would like to request adding support for monoatomic groups in the
GroupGrammar
class.Currently, the system effectively handles multi-atom groups by converting them to
GroupSELFIES
, but monoatomic groups (e.g., [C], [F], [N]) are treated separately as individual tokens outside theGroupGrammar
vocabulary. This leads to challenges when attempting to extract the full molecular connectivity between groups and individual atoms.Required Feature:
Introduce monoatomic groups (e.g.,
fragC
,fragF
,fragN
, etc.) to theGroupGrammar.vocab
to ensure that atoms like["B", "C", "N", "O", "P", "S", "F", "Cl", "Br", "I", "Li", "Na", "K", "Rb", "Cs", "Fr", "Be", "Mg", "Ca", "Sr", "Ba", "Ra"]
can also be processed as groups. Allow these monoatomic groups to be added dynamically or to be included in the essential grammar set, similar to how groups likefrag65
,frag66
, etc., are treated.Motivation:
The main issue arises when trying to extract the molecular connectivity between the subgraphs represented by
GroupSELFIES
.GroupSELFIES
, in essence, represents the original molecular graph by grouping atoms into subgraphs (i.e., groups). The connectivity between group tokens is clearly defined, but for monoatomic tokens like[C]
, the connectivity remains unclear. This inconsistency makes it difficult to extract subgraph-to-subgraph connectivity in a unified way.Adding support for monoatomic groups would allow all atoms, even single atoms like
[C]
and[F]
, to be treated as subgraphs, ensuring that the connections between subgraphs can be easily traced and understood.Example:
Here is an example where monoatomic atoms are treated separately from the defined groups. Ideally, atoms like
[C]
and[F]
should be included as monoatomic groups withinGroupGrammar.vocab
to clarify their connectivity:In this example:
1, 2, and 3
are the parts which show a monoatomic group (i.e.,[C]
,[F]
, and[C]
) being treated as a part of a group, which is the behavior we want to implement.4, 5, and 6
, are also represented as connections.7, 8, and 9
. To this end,GroupGrammar.vocab
graphs
togroup_selfies
, you must be able to match monoatomic groups with group tokens.Conclusion:
By adding support for monoatomic groups, the molecular connectivity between all subgraphs (whether complex groups or individual atoms) can be traced uniformly, greatly simplifying tasks such as graph extraction, reconstruction, and representation.
Thank you for considering this request! Looking forward to your feedback.