Difference between revisions of "File formats/Export"
AngelHerraez (talk | contribs) (→show() chemical function) |
AngelHerraez (talk | contribs) (→show() chemical function) |
||
Line 118: | Line 118: | ||
! <code>[https://www.cambridgesoft.com/services/documentation/sdk/chemdraw/cdx/IntroCDXML.htm cdxml]</code> | ! <code>[https://www.cambridgesoft.com/services/documentation/sdk/chemdraw/cdx/IntroCDXML.htm cdxml]</code> | ||
| XML-compliant version of ChemDraw's native file format | | XML-compliant version of ChemDraw's native file format | ||
− | + | ! <code>cerius</code> | |
| Cerius II from Accelrys/MSI | | Cerius II from Accelrys/MSI | ||
|- | |- | ||
− | + | ! <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> | |
| Crystallographic Information File | | Crystallographic Information File | ||
− | + | ! <code>cml</code> | |
| Chemical Markup Language | | Chemical Markup Language | ||
|- | |- | ||
− | + | ! <code>ctx</code> | |
| Gasteiger group | | Gasteiger group | ||
− | + | ! <code>gjf</code> | |
| Gaussian input | | Gaussian input | ||
− | + | ! <code>[[File_formats/Coordinates#GROMACS|gromacs]]</code> | |
| GROMACS | | GROMACS | ||
|- | |- | ||
− | + | ! <code>hyperchem</code> | |
| HIV / HIN format from Hyperchem | | HIV / HIN format from Hyperchem | ||
− | + | ! <code>[[File_formats/Chemical_Structure#JME|jme]]</code> | |
| from the JME/JSME Molecular Editor | | from the JME/JSME Molecular Editor | ||
− | + | ! <code>[https://sites.google.com/a/srscicomp.com/maestro/data-analysis/data-file-format maestro]</code> | |
| from Schrödinger | | from Schrödinger | ||
|- | |- | ||
− | + | ! <code>[[File_formats/Coordinates#MOL_and_SD_.28Symyx_MDL.29|mol]]</code> | |
| Symyx MDL | | Symyx MDL | ||
− | + | ! <code>mol2</code> | |
| Sybyl, Tripos | | Sybyl, Tripos | ||
− | + | ! <code>sybyl2</code> | |
| Sybyl, Tripos | | Sybyl, Tripos | ||
|- | |- | ||
− | + | ! <code>[http://onlinelibrarystatic.wiley.com/marvin/help/formats/mrv-doc.html mrv]</code> | |
| Marvin format, from ChemAxon | | Marvin format, from ChemAxon | ||
− | + | ! <code>pdb</code> | |
| from Protein DataBank, but nonstandard | | from Protein DataBank, but nonstandard | ||
− | + | ! <code>[[File_formats/Coordinates#MOL_and_SD_.28Symyx_MDL.29|sdf]]</code> | |
| Symyx MDL | | Symyx MDL | ||
|- | |- | ||
− | + | ! <code>[[File_formats/Coordinates#MOL_and_SD_.28Symyx_MDL.29|sdf3000]]</code> | |
| Symyx MDL, V3000 | | Symyx MDL, V3000 | ||
− | + | ! <code>[https://pubs.acs.org/doi/abs/10.1021/ci7004687 sln]</code> | |
| SYBYL Line Notation | | SYBYL Line Notation | ||
− | + | ! <code>[[File_formats/Chemical_Structure#SMILES|smiles]]</code> | |
| SMILES string | | SMILES string | ||
|- | |- | ||
− | + | ! <code>[[File_formats/Coordinates#XYZ|xyz]]</code> | |
| the traditional XYZ format | | the traditional XYZ format | ||
| | | |
Revision as of 23:26, 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.