How To Use Basic MarvinSketch Functions

Table Of Contents

Create New Molecule

A new, blank molecule is created when you first launch MarvinSketch. You can immediately begin working with this molecule. A MarvinSketch window can hold only one molecule at a time, so all work you do within the canvas is considered part of the same molecule. You can create new, blank molecule at any time during your session by choosing File > New from the menu bar. This will open a new molecule and discard any unsaved changes to the molecule you were previously working with.
The application allows you to work with multiple molecules in multiple windows by choosing File > New > New Window .

Open an Existing Molecule File

You can open existing molecule files by choosing File > Open on the menu bar. This will load your saved molecule file into Marvin and discard any unsaved changes to the molecule you were previously working with.

You can also Paste existing structures from other windows to the open molecule. This will add the new structure to the currently open molecule, it does not create a new molecule.

Save Molecule

Save Molecule File

You can save the molecule to any of the supported file formats. This will allow you to open and work with this molecule later. The default behavior of the Save button is to save the molecule to the same file it was opened from, in the same format. If you want to change the file name or format, choose Save As. If you are working with a new molecule, Save will function the same as Save As.

Save Image

The Save Image choice in the File menu allows you to save an image of the molecule in the sketcher. Marvin supports the following image formats: JPEG, PNG, PPM, POVRay, and SVG. A saved image cannot be opened for later editing in Marvin.

Print

  You can print an image of the current molecule by choosing File > Print.

How to Work with Multipage Molecular Document

How to create a multipage molecular document

Multipage molecular documents help to work with large drawings by dividing them into pages. You can create a multipage molecular document by choosing File > Document Settings...

document settings from menu

document settings dialog

After setting the Multipage document checkbox enabled, the following controls will automatically appear on the Marvin Sketch interface:


parts of the statusbar

How to navigate in multipage molecular documents

The navigation statusbar and the Pages menu are available only if the Multipage document checkbox is set. The statusbar contains information about the current page number in a textfield and the number of all pages on a label. It also contains a collection of buttons to aid your quick navigation in the document. You can go the the first, previous, next, and last page using them. Alternatively you can go directly to a specific page by entering a number in the text field and pressing enter.


Statusbar Elements

First page button

Clicking on the First page button allows you to go to the first page of multipage molecular document.

Previous page button

Clicking on the Previous page button allows you to go to the previous page of multipage molecular document.

Current page field

The Current page textfield shows you the number of current page and allows you to go to a specific page of multipage molecular document by entering a number in the text field and pressing enter.

Next page button

Clicking on the button allows you to go to the next page of multipage molecular document.

Last page button

Clicking on the Last page button allows you to go to the last page of multipage molecular document.

All pages label

The All pages label shows you the total number of pages in multipage molecular document.



All the navigation possibilities: go to first, previous, next, last, specific pages are available from the Pages menu too with some automatic page zooming functions. Pages > Fit page height adjusts the height of the current page to the height of the canvas. Pages > Fit page width adjusts the width of the current page to the width of the canvas. Pages > Fit page adjusts the current page so that the whole current page will be placed centralized within the canvas.

How to Draw Structures

You can create structures using atoms, bonds, and templates.

Atoms

  1. Select an atom from the little periodic table, the Periodic Table pop-up window, or by shortcut.

  2. Move the mouse into the molecule canvas. You will see the symbol of the selected item at the tip of your cursor. It can be placed in the molecule by left-clicking on the desired location.

  3. You can replace any atom in the molecule by placing a new atom on top of it.

Bonds

  1. Select a bond type using the Bond toolbar button or by shortcut.

  2. To link two existing atoms, click on one then drag the cursor to the other.

  3. To draw a bond from a single atom, simply click the atom. A carbon atom will be added at the other end of the bond.

  4. If you add a bond to empty canvas space, a carbon atom will be added to each end of the bond.

  5. You can replace any bond in the molecule by placing a new bond type on top of it.

  6. Bond types can also be changed using the Bond pop-up menu. Single bonds can be changed to Double or Triple by left-clicking on them.

Templates

MarvinSketch provides several predefined chemical structures, called templates (e.g., cyclopenthane, cyclohexan, benzene). Some templates are accessible directly from the toolbar. The remainder can be accessed via separate pop-up windows. The full list of MarvinSketch templates is available through the Templates menu.

  1. Select a template using the Templates Menu or Templates toolbar area.

  2. Place the template in the molecule by left-clicking on the desired location.

Reactions

How to Draw Reactions

You can place a reaction arrow on the canvas at any time, even on a blank canvas. Reaction errors are indicated by a red box around the reaction arrow. Only one reaction is allowed per molecule.

  1. Select the React button. You will see the reaction arrow on the tip of the cursor when you move the mouse into the canvas area.

  2. Click the location of the tail of the arrow.

  3. Drag the mouse and release at the location of the head.

Once you have placed a reaction arrow on the canvas, MarvinSketch considers each part of the molecule in relation to the reaction. All parts of the molecule that are behind the arrow are considered reactants. Everything in front of the arrow is a product. Anything placed along the arrow is considered an agent. The validity of the drawn reaction will automatically be checked by Marvin. See Reactions for more information on using and disabling this feature.

How to Map Reactions

The arrow tool provides the easiest manual way to map corresponding reactant and product atoms. Select the arrow tool, hold down the left mouse button on a reactant atom, and drag it to the corresponding product atom. The same map number is added to both atoms marking, that they represent the same atom on the two sides of the reaction scheme. There are also keyboard shortcuts for mapping. Type m8, for example, and click on an atom. Atom map 8 is assigned to that atom.

Marvin contains an automapper tool as well (available from the Edit/Atom Mapping/Auto Map menu) assigning map numbers to all selected atoms of a reaction automatically.

Map numbers of the selected atoms can be removed by the Edit/Atom Mapping/Clear Map menu item, or by typing m0 for the selected atoms.

How to Draw R-group queries

An R-group query describes a set of derivatives in with one query structure. Draw the root structure and place some R atoms either from the "More" dialog, from the popup menu or by typing a corresponding label such as "R1" on the keyboard. Draw the variable R-group ligands and select those substituting the R1 atom. If you type "R1" now, the selected groups will be marked with "R1". Additional R-group conditions (Occurence, RestH, If-then) can be set in the R-logic dialog available from the Edit/Attributes menu.

To draw the attachment points for the R-definitions, you can use menu "Group -> Attachment point" from the atom popup menu, or alternatively, when you draw the R-definitions and the mouse cursor still shows "R1", clicking on an atom of the definition will toggle the attachment point on that atom. (Please note that divalent R-groups must have two attachment points defined.)

Step by step example

  1. Draw the root structure first.
  2. Move the cursor to the atom where you would like to place the R-group. (In this example, we place R-groups on terminal carbon atoms.) When the atom is highlighted (blue circle around the atom label), type the shortcut of the required R-group ID (e.g. R1). Alternative solution is selecting the ID from R-group sub-menu of the popup menu by pressing right mouse button over the atom.
  3. Draw an alternative ligand with an R-group connection: Move the cursor to an empty place on the canvas (take care that nothing is selected) then press the shortcut of the next R-group (R2). The "in hand" object changes to the ID of the R-group (R2). (In this example, we add a ligand to terminal oxigene atom.) Move the cursor over the atom (the terminal oxigene) where you would like to add the new ligand and push the left mouse button. Then drag the mouse. You will see that the new bond is display and its orientation moves with the cursor. Release the mouse button when the bond stands in the right direction.
  4. Draw new compounds to the canvas (separately from the root structure). These will be the R-group definitions. (In this example, we draw the compounds for the first R-group definition to the right side. Below the root structure, we place the second R-group definition.)
  5. Now, we defines the R-groups definitions. To do this, select those compounds that the first R-group should contain (three compounds on the right side). After the selection, press the shortcut of the R-group ID (R1). The ID and equal sign (R1=) will display beside the selected set and the "in hand" object will be the R-group ID.
  6. Define attachment point to R-group members. Move the cursor to the proper atom in the first compound (where you would like place the attachment point). (Since the first compound is include only one node, the choice is not too difficult.) Over the atom, take a left mouse click to commit the attachment point. Repeat this operation on the other compounds of the R-group. (In this example, by the third compound, we select the left side oxigene atom to attachment point.) Alternatively, you can define R-group attachment points via the popup menu (by selecting Attachment point option from the R-group menu on any node of a compound in any R-group definition
  7. Creating the second R-group is similar to the first one. Repeat the last two steps (do R2 instead of R1) on the two rested compounds (below the root structure).
  8. You can define additional conditions, such as occurence, rest H and if-then expressions to R-groups that you can set in in the R-logic dialog. To do this, select R-logic option from the Attributes sub-menu of Edit menu. After setting the condition in the R-logic dialog, press the OK button to commit it.

How to Draw S-groups

Component, Unordered Mixture and Ordered Mixture S-groups

These features can be expressed by brackets (S-groups) of type component, unordered mixture (also called mixture) and ordered mixture (also called formulation). A component here is a set of atoms contained by a component bracket.

Ordered and unordered mixtures

An unordered mixture (denoted by "mix" at the bottom of right bracket) consists of several unordered components (denoted by "c" at the bottom of right bracket). For these types of mixtures, the order of addition during the preparation is not important. Example:

Ordered mixtures, on the other hand contain ordered components, which define the order of addition. Example:

To draw an unordered component

  1. Draw the structures that form the mixture.
  2. To define a structure as a component in a mixture, first select the structure.
  3. Choose "Create Group..." from the local menu (right mouse click on the selected structure).
  4. In the "Create Group" dialog choose "Component (c)" from the "Type" combobox.
  5. The "Order" field should be empty or should contain "none". If the "Order" field already contains a number, just delete it (you can type in "none" as well).
  6. Click OK.

To draw an ordered component

  1. Draw the structures that form the mixture.
  2. To define a structure as a component in a mixture, first select the structure.
  3. Choose "Create Group..." from the local menu (right mouse click on the selected structure).
  4. In the "Create Group" dialog choose "Component (c)" from the "Type" combobox.
  5. If this is the first component of the mixture, click the "Order" field and enter "1" in place of "none". If the "Order" field already contains a number Marvin will automatically increment the "Order" field for subsequent components.
  6. Click OK.

To draw a mixture

  1. Create and select the components to form the mixture.
  2. Choose "Create Group..." from the local menu (right mouse click on the selected components).
  3. In the "Create Group" dialog choose the type ("Ordered mixture(f)" or "Unordered mixture(for)") from the "Type" combobox.
  4. Click OK.

To change the type of a mixture

  1. Select the mixture to change the type.
  2. Choose "Ungroup" from the local menu (right mouse click on the selected mixture).
  3. Change the type of the included components.
  4. Select the components to create the new mixture.
  5. Create the new mixture from the selected components.

To add a new component to a mixture

  1. Select the mixture to add the new component.
  2. Choose "Ungroup" from the local menu (right mouse click on the selected mixture).
  3. Create the new component to add.
  4. Select the new and old components and create a mixture again.

To delete a component from a mixture

  1. Select the mixture to delete the component from.
  2. Choose "Ungroup" from the local menu (right mouse click on the selected mixture).
  3. Delete the component.
  4. Select the remaining components and create a mixture again.

How to Draw Graphic Objects and Text Boxes

To draw a (poly)line, rectangle or text box, use the Insert menu. Point the mouse to the desired position on the canvas, click and hold the left button, move the mouse and release the button. After placing a text box, you can immediatelly use the keyboard to type a text.

To change the contents of a text box, choose Select mode, click on the box, then use the keyboard.

The shape of an object is changeable or resizeable by dragging one of its points to do it.

How to Draw a Link atom

You can draw link atoms using the popup menu in two ways:

  1. Right-click on the atom to bring up the popup menu. Select the required repetition number from the "Link node" submenu. Marvin will find out the outer (non-repeating) bonds for you.
  2. Select the atom you would like to be the link node and two neighbouring bonds for outer (non-repeating) bonds. Right-click anywhere on the canvas to bring up the popup menu. Select the required repetition number from the "Link node" submenu.

Marvin will advise you if it is not possible to create a link node for the specified configuration (for example at ring fusions).

Outer (non-repeating) bonds will be denoted by brackets crossing them, and the repetition numbers will be put on the atom. All portion of the molecule connected to the link atom through non-outer bonds are supposed to repeat together with the atom. See examples below.

Molecule with link node Meaning

To edit a link node repetition number or change outer bonds, repeat the drawing steps above. To make a link atom ordinary atom again, select "Off" from the "Link node" submenu.

How to Select a Structure

  1. Set Selection mode on by clicking the Select button.

    1. To select a single atom, click on it.

    2. To select two joined atoms, click on the bond that links them.

    3. To select a rectangular region, click at one corner of the desired region and drag the mouse to the opposite corner. While the mouse button is pressed down, a guide will be displayed to aid you.

    4. To select a non-rectangular region, use the lasso select function.

      1. Click anywhere on the canvas and release the mouse button.

      2. Draw the region with your mouse (leaving all mouse buttons unpressed). A blue guide line will appear where you have drawn. A pink line will connect the start and end points.

      3. When you have finished drawing the region, click the mouse. In the event that you have not closed the region, the pink line will be used to close it for you.

You can unselect all by clicking an empty area of the canvas.

How to Delete a Structure

Using the Erase button:

  1. Set Erase mode on by clicking the Erase button.

    1. To erase a single atom or bond, click on it.

    2. To erase a rectangular region, click at one corner of the desired region and drag the mouse to the opposite corner. While the mouse button is pressed down, a guide will be displayed to aid you.

    3. To select a non-rectangular region, use the lasso erase function.

      1. Click anywhere on the canvas and release the mouse button.

      2. Draw the region with your mouse (leaving all mouse buttons unpressed). A blue guide line will appear where you have drawn. A pink line will connect the start and end points.

      3. When you have finished drawing the region, click the mouse. In the event that you have not closed the region, the pink line will be used to close it for you.

Using Selection mode:

  1. Select a portion of the structure.

  2. Click the Cut button or use the DELETE button on your keyboard.

Using pop-up menus:

  1. Right click on an atom or bond.

  2. Select Remove from the pop-up menu.

How to Work with Structures

Visually Editing the Structure

You can edit a molecule using the methods described in How To Draw Structures and How To Delete A Structure.

Editing the Source

You can alter a molecule by directly editing its source in the Edit Source Window. You can view and edit the source in any of the supported file formats. To change format, simply select the desired one from the Format Menu. To reload the molecule described by the text in this window into the MarvinSketch canvas (including any changes you may have made), select File > Import. This will close the Edit Source Window.

Cleaning

Marvin allows you to clean your molecule in either 2D or 3D. Cleaning will calculate new coordinates for the atoms. Generating conformers and choosing the favored one is also supported (in the Swing version). You can initiate cleaning via the Edit > Clean submenu.

Aromatic Rings

You can toggle the display of rings as aromatic using the Edit > Bonds submenu.

Structure Display Options

There is a wide range of functions related to the display of the molecules. These settings can be found in the View menu and the Preferences dialog. Additionally, you can move, rotate, and zoom in/out on the structure.

Moving and Rotating

You can move or rotate a selected structure.

  1. Select the part of the structure you wish to move.

    1. Moving the selection:

      1. Move the mouse pointer toward the center of the selected structure until a blue rectangle appears.

      2. Translate the selection by dragging the mouse.

    2. Rotating the selection:

      1. Move the mouse pointer toward the "edge" until a blue gear appears.

      2. Rotate the selection by dragging the mouse.

Scaling

You can set the magnification of the molecule on the Canvas by the Zoom buttons. When a molecule is loaded into the sketcher it is scaled automatically to fit the window.

For more information, see Structure Display Options common to MarvinSketch and MarvinView.

Saving Display Options

Launching Other Windows

2D and 3D Viewer Windows

Choosing View >Open 2D Viewer or Open 3D Viewer launches a MarvinView window containing the current molecule from the Sketcher.

Sketcher Window

When working with applets within a web page, it may be helpful to view your work in a MarvinSketch window outside of the html.
To open your work in a separate Sketch window from applets, choose View > Sketcher Window. .

Copying Files Between Programs (Cut/Copy/Paste and Drag & Drop)

MarvinSketch supports transfer of data between Marvin and other chemical drawing applications, between multiple Marvin windows, and to/from the desktop and file manager.
See Cut/Copy/Paste and Drag & Drop Functionality for more information.

Shortcuts

The table below contains a list of available shortcuts in MarvinSketch.

Keyboard shortcut

Function

CTR+A

Select all

CTR+C

Copy

CTR+X

Cut

CTR+V

Paste

CTR+Y

Redo

CTR+Z, ALT+BACKSPACE

Undo

CTR+L

Copy as SMILES

CTR+O

File open (if available)

CTR+S

Save to file (if available)

CTR+Shift+S

Save as... (if available)

CTR+P

Print (if available)

CTR+M

Display Periodic Table (More window)

CTR+N

Create a new window

CTR+W

Close current window

CTR+Q

Exit from the application

CTR+F

Select conformer

CTR+2

Clean in 2D

CTR+3

Clean in 3D

F5

Exit from transformation mode and return to the Normal Sketching mode.

F6

Switch on the Zoom mode.

F7

Enter into the Rotate in 3D mode.

F8

Switch on the Zoom/Rotate mode.

-

Negative charge

+

Positive charge

1

Single bond

2

Double bond

3

Triple bond

4

Aromatic bond

12

Single or double bond

14

Single or aromatic bond

24

Double or aromatic bond

0

Any bond

*

Any atom

Q

Hetero atom

C, N, H, ...

carbon, nitrogen or hydrogen atom. For the other elements, type the mark of the element, e.g.: Cl for Chlorine. (Also works in lower case: n, cl etc.)

R1, R2, ..., R32767

R-group label with specified number. To define a set of fragments as R-group, select the fragments before the shortcut. To create an attachment point in the R-group, select an atom in the R-group and type the name of the R-group (e.g.: R5) (Also works in lower case.)
To define a set of fragments as R-group 5, select the fragments then type R5. After then, you can choose an attachment point on R-group 4, just type R5 and click on the atom.

M1, M2, ...

Atom maps for reactions. (Also in lower case.)

M0

Unmap

M= or M+

Unique atom map labels. Assigns unique atom map numbers to individual atoms picked by the mouse or to selected atoms in selection mode.

11, 22, ..., 77

Select a template. Select first, second, ..., or 7th element from the actual template list from the toolbar (if the referred index is not out of range).

abs, or1, or2, and1, and2

Stereochemical groups: abs (ABSOLUTE),\ or1,or2,...,or10,... (OR n), and1,and2,...,and10,...,&1,&2,..., &10,... (AND n)

AcAc, Acm, Ade, ...

The abbreviated group denoted by the abbreviation. You can ungroup the abbreviated group if you press the SHIFT button when you place it to the canvas. (Also in lower case.) To complete a longer name, press ENTER or END after typing the first few characters.

.a,.A,.u,.H0,H1

Special atom properties: .a (aromatic), .A (aliphatic), .u (unsaturated), .H0, .H1, ... (number of hydrogens), .h0, .h1, ... (implicit hydrogens), .X0, .X1, ... (connectivity), .D0, .D1, ... (degree), .R0, .R1, ... (rings), .r3, .r4, ... (smallest ring size), .s*, .s0, .s1, ... (substitution count), .v0, .v1, ... (valence), .rb*, .rb0, .rb1, ... (ring bond count).

Return to Top

Copyright © 1998-2007 ChemAxon Ltd.

http://www.chemaxon.com/marvin