Difference between revisions of "File formats/Export"
AngelHerraez (talk | contribs) (show() chemical) |
AngelHerraez (talk | contribs) (→show() chemical function) |
||
Line 119: | Line 119: | ||
| XML-compliant version of ChemDraw's native file format | | XML-compliant version of ChemDraw's native file format | ||
| <code>cerius</code> | | <code>cerius</code> | ||
− | | | + | | Cerius II from Accelrys/MSI |
|- | |- | ||
− | | <code> | + | | <code>[https://www.charmmtutorial.org/index.php/CHARMM:The_Basics#Molecule_Metadata charmm]</code> |
| CHARMM (Chemistry at HARvard Macromolecular Mechanics) | | CHARMM (Chemistry at HARvard Macromolecular Mechanics) | ||
| <code>[[File_formats/Coordinates#CIF|cif]]</code> | | <code>[[File_formats/Coordinates#CIF|cif]]</code> | ||
Line 129: | Line 129: | ||
|- | |- | ||
| <code>ctx</code> | | <code>ctx</code> | ||
− | | | + | | Gasteiger group |
| <code>gjf</code> | | <code>gjf</code> | ||
− | | | + | | Gaussian input |
| <code>[[File_formats/Coordinates#GROMACS|gromacs]]</code> | | <code>[[File_formats/Coordinates#GROMACS|gromacs]]</code> | ||
− | | | + | | GROMACS |
|- | |- | ||
| <code>hyperchem</code> | | <code>hyperchem</code> | ||
Line 147: | Line 147: | ||
| Sybyl, Tripos | | Sybyl, Tripos | ||
| <code>sybyl2</code> | | <code>sybyl2</code> | ||
− | | | + | | Sybyl, Tripos |
|- | |- | ||
| <code>[http://onlinelibrarystatic.wiley.com/marvin/help/formats/mrv-doc.html mrv]</code> | | <code>[http://onlinelibrarystatic.wiley.com/marvin/help/formats/mrv-doc.html mrv]</code> | ||
Line 164: | Line 164: | ||
|- | |- | ||
| <code>[[File_formats/Coordinates#XYZ|xyz]]</code> | | <code>[[File_formats/Coordinates#XYZ|xyz]]</code> | ||
− | | | + | | the traditional XYZ format |
| | | | ||
| | | |
Revision as of 21:02, 16 November 2018
Contents
Exporting or saving molecular model files from Jmol
Although Jmol was designed as a viewer, it has now capabilities to save files for the displayed molecular model (or a subset of it).
write
command
Jmol can export the currently selected set of atoms to a file in
- XYZ format
- PDB format
- MOL v2000 format (single model)
- MOL v3000 format (single model)
- SDF v2000 format (single or multiple models)
The last 3 are according to the official format specification from MDL-Accelrys-Symyx.
The syntax (see reference documentation) is like this:
All of the above commands will save the original cooordinates of each atom as they were in the input file.
There is also the choice (only in MOL format) of saving the transformed coordinates as they are in the current state of the model:
write()
function
This function in the Jmol Scripting Language allows to place the output of the write command into a variable, rather than saving to a file. The data can later be loaded using load var a
.
See also show()
below, as an alternative.
First parameter in the function is the format, second if needed is some qualifier, both matching what would be used in the command.
Common examples:
show() chemical
function
The same information that would be exported to a file may be put into a variable using this function.
- Note: If only a subset of the full model has been selected, only the currently selected atoms will be included in the exported model. Since the procedure involves a query to the NCI CACTVS Resolver, and their server tries to interpret it as a full molecule, the result may then not be what you expect. Example:
select _N; show("chemical pdb")
returns pdb-formatted data for ammonia, no matter which was the original molecule with several N atoms. - Note: available since Jmol version 14.6.0
Formats available are:
alc
|
Alchemy (Tripos) | cdxml
|
XML-compliant version of ChemDraw's native file format | cerius
|
Cerius II from Accelrys/MSI |
charmm
|
CHARMM (Chemistry at HARvard Macromolecular Mechanics) | cif
|
Crystallographic Information File | cml
|
Chemical Markup Language |
ctx
|
Gasteiger group | gjf
|
Gaussian input | gromacs
|
GROMACS |
hyperchem
|
HIV / HIN format from Hyperchem | jme
|
from the JME/JSME Molecular Editor | maestro
|
from Schrödinger |
mol
|
Symyx MDL | mol2
|
Sybyl, Tripos | sybyl2
|
Sybyl, Tripos |
mrv
|
Marvin format, from ChemAxon | pdb
|
from Protein DataBank, but nonstandard | sdf
|
Symyx MDL |
sdf3000
|
Symyx MDL, V3000 | sln
|
SYBYL Line Notation | smiles
|
SMILES string |
xyz
|
the traditional XYZ format |
The syntax is like this:
x = show("chemical xyz") x = show("chemical mol") x = show("chemical hyperchem")
etc.
These are available:
File > Save > Save a copy of file
File > Save > Save as PNG/JMOL (image+zip)
File > Save > Save JVXL isosurface
File > Export > Export PNG+JMOL image
The 2nd and 4th are equivalent and contain, packed in a single file, a snapshot PNG image, the coordinates file and the state script file.
Save isosurface
The pop-up menu entry will svae the last isosurface selected or generated. More flexibility is allowed by using the write isosurface
command.