Depicting Molecules In a Grid

A program that converts molecular structures into an image with a grid layout. By default the input molecules are depicted in a 3x2 grid.

Command Line Interface

A description of the command line interface can be obtained by executing the program with the –help argument.

prompt> Mols2Img --help

will generate the following output:

Simple parameter list
 -height : Height of output image
 -width : Width of output image

 image grid options :
   -cols : Number of columns
   -rows : Number of rows

 input/output options :
   -in : Input filename(s)
   -out : Output filename

 molecule display options :
   -aromstyle : Aromatic ring display style
   -atomcolor : Atom coloring style
   -atomlabelfontscale : Atom label font scale
   -atomprop : Atom property display
   -atomstereostyle : Atom stereo display style
   -bondcolor : Bond coloring style
   -bondprop : Bond property display
   -bondstereostyle : Bond stereo display style
   -hydrstyle : Hydrogen display style
   -linewidth : Default bond line width
   -protgroupdisp : Protective group display style
   -scale : Scaling of the depicted molecule
   -superdisp : Super atom display style
   -titleloc : Location of the molecule title

 prepare depiction options :
   -clearcoords : Clear and regenerate 2D coordinates of molecule(s)
   -orientation : Set the preferred orientation of 2D coordinates
   -suppressH : Suppress explicit hydrogens of molecule(s)

Examples

prompt> Mols2Img -in amino.ism -out image.png

will generate the image shown in Figure: Example of using the program with default parameters.

../_images/mols2img-01.png

Example of using the program with default parameters

Note

By default the program depicts molecules in a 3x2 grid

prompt> Mols2Img -in amino.ism -out image.png -rows 2 -cols 3

will generate the image shown in Figure: Example of using the program with user-defined number of rows and columns.

../_images/mols2img-02.png

Example of using the program with user-defined number of rows and columns

prompt> Mols2Img -in amino.ism -out image.png  -rows 2 -cols 2 -titleloc Bottom

will generate the image shown in Figure: Example of using the program with molecule titles displayed at the bottom.

../_images/mols2img-03.png

Example of using the program with molecule titles displayed at the bottom