Abbreviated groups are used to represent (sub)structures with a text abbreviation and are useful tools for drawing large, complex structures or structures which have the same substructure, that is, functional groups.
MarvinSketch contains a default library of commonly abbreviated groups which can be accessed through Insert > Group. To display the available abbreviation groups in the upper left corner of the canvas, start typing the name of the abbreviation groups.
To insert an abbreviated group, follow the steps below.
{info} Group abbreviations are case sensitive, for example, typing either NO or no leads to the nitrosyl (NO) functional group. On the other hand, typing No displays the atom symbol of nobelium. Abbreviations having a number as a first character can be displayed by typing the entire abbreviation or by navigating to Insert > Group.
If the cursor is placed over an atom, the atom automatically changes into the abbreviated group. To expand an S-group before placing it to the canvas, press Shift before clicking the mouse button. The following group-related context menu actions are available in MarvinSketch:
{info} Marvin gives priority to the user-defined abbreviated groups and overwrites the default groups after redefinition.
To create a group, follow the steps below.
Step 1 and Step 2 are interchangeable.
To add an attachment point to an abbreviated group, right-click an atom of the abbreviated group and select Add S-group Attachment from the context menu. Alternatively, you can select the desired atom and navigate to Atom > Add S-group Attachment.
The attachment point is marked by a number in a green rectangle. The display of the attachment points can be switched on or off by using View > Advanced > S-group Attachments.
There is no limit on how many attachment points can be added to an abbreviated group. The added attachment points are numbered in the order of their creation. Similarly, an atom of the abbreviated group can have more attachment points. Bonds are connected to group atoms through their first free attachment point (except amino acids).
Only attachment points not involved in bonds are marked by numbers in the expanded abbreviated group. To remove an attachment point, select the Remove S-group Attachment option either from the context menu or from the Atom menu. If the selected atom has more than one attachment point, they are deleted in descending order.
To add abbreviated groups to the templates, select the group to be added, and click Add to My Templates on the context menu. The structure is added to the Advance Template toolbar.
The Atom Label Editor can be used to change the characters to bold, italic, super- and subscript and insert symbols. Color, font type, and size can be set by choosing Format from the context menu.
MarvinSketch stores its default groups in the following formatted TXT file:
default.abbrevgroup
You can create your group file. While assembling a .abbrevgroup
file you must strictly follow the abbreviated group file format.
The newly defined file must be named user.abbrevgroup
and must be stored in the ChemAxon folder of your home directory in your file system.
The process of creating user-defined abbreviated groups is described in the following steps:
user.abbrevgroup
file, then create it in your ChemAxon folder and paste the text into it. If you already have the file, simply paste the text into it.The label of the abbreviated groups can be formatted, by adding the graphicalMarvinProperty::FormattedLabel
property to the abbreviated group atom.
Example:
i-Bu CC(C)C 1 abbrevAtomProperties=graphicalMarvinProperty::FormattedLabel.\ii\n\-Bu
{primary} In the property name the ’:’ character must be replaced to : because the : character has a special meaning in the
abbrevAtomProperties
value.
Numbers are automatically subscripted unless "\n" is used or at the start of a string. Charges (+, -, ++, --, 3+, and so on) are automatically superscripted at end of string or if the following character is a closing parenthesis.
Allowed control sequences in the abbreviated group name are as follows:
{primary} Block restriction: [format]{[text]} Besides the default abbreviated groups, you can also set up user-defined groups (or redefine the default ones).
Examples: