Chemical file format explained

A chemical file format is a type of data file which is used specifically for depicting molecular data. One of the most widely used is the chemical table file format, which is similar to Structure Data Format (SDF) files. They are text files that represent multiple chemical structure records and associated data fields. The XYZ file format is a simple format that usually gives the number of atoms in the first line, a comment on the second, followed by a number of lines with atomic symbols (or atomic numbers) and cartesian coordinates. The Protein Data Bank Format is commonly used for proteins but is also used for other types of molecules. There are many other types which are detailed below. Various software systems are available to convert from one format to another.

Distinguishing formats

Chemical information is usually provided as files or streams and many formats have been created, with varying degrees of documentation. The format is indicated in three ways:
(see)

Chemical Markup Language

Chemical Markup Language (CML) is an open standard for representing molecular and other chemical data. The open source project includes XML Schema, source code for parsing and working with CML data, and an active community. The articles Tools for Working with Chemical Markup Language and XML for Chemistry and Biosciences discusses CML in more detail. CML data files are accepted by many tools, including JChemPaint, Jmol, XDrawChem and MarvinView.

Protein Data Bank Format

The Protein Data Bank Format is an obsolete format for protein structures developed in 1972.[1] It is a fixed-width format and thus limited to a maximum number of atoms, residues, and chains; this resulted in splitting very large structures such as ribosomes into multiple files. For example, the E. coli 70S was represented as 4 PDB files in 2009: 3I1M, 3I1N, 3I1O, and 3I1P. In 2014, they were consolidated into a single file, 4V6C.In 2014, the PDB format was officially replaced with mmCIF, and newer PDB structures may not have PDB files available.

Some PDB files contained an optional section describing atom connectivity as well as position. Because these files were sometimes used to describe macromolecular assemblies or molecules represented in explicit solvent, they could grow very large and were often compressed. Some tools, such as Jmol and KiNG,[2] could read PDB files in gzipped format. The wwPDB maintained the specifications of the PDB file format and its XML alternative, PDBML. There was a fairly major change in PDB format specification (to version 3.0) in August 2007, and a remediation of many file problems in the existing database.[3] The typical file extension for a PDB file was .pdb, although some older files used .ent or .brk. Some molecular modeling tools wrote nonstandard PDB-style files that adapted the basic format to their own needs.

GROMACS format

The GROMACS file format family was created for use with the molecular simulation software package GROMACS. It closely resembles the PDB format but was designed for storing output from molecular dynamics simulations, so it allows for additional numerical precision and optionally retains information about particle velocity as well as position at a given point in the simulation trajectory. It does not allow for the storage of connectivity information, which in GROMACS is obtained from separate molecule and system topology files. The typical file extension for a GROMACS file is .gro.

CHARMM format

The CHARMM molecular dynamics package[4] can read and write a number of standard chemical and biochemical file formats; however, the CARD (coordinate) and PSF (protein structure file) are largely unique to CHARMM. The CARD format is fixed-column-width, resembles the PDB format, and is used exclusively for storing atomic coordinates. The PSF file contains atomic connectivity information (which describes atomic bonds) and is required before beginning a simulation. The typical file extensions used are .crd and .psf respectively.

GSD format

The General Simulation Data (GSD) file format created for efficient reading / writing of generic particle simulations, primarily - but not restricted to - those from HOOMD-blue. The package also contains a python module that reads and writes HOOMD schema gsd files with an easy to use syntax.https://bitbucket.org/glotzer/gsd

Ghemical file format

The Ghemical software can use OpenBabel to import and export a number of file formats. However, by default, it uses the GPR format. This file is composed of several parts, separated by a tag (!Header, !Info, !Atoms, !Bonds, !Coord, !PartialCharges and !End).

The proposed MIME type for this format is application/x-ghemical.

SYBYL Line Notation

SYBYL Line Notation (SLN) is a chemical line notation. Based on SMILES, it incorporates a complete syntax for specifying relative stereochemistry. SLN has a rich query syntax that allows for the specification of Markush structure queries. The syntax also supports the specification of combinatorial libraries of ChemDraw.

Example SLNs! Description! SLN string
BenzeneC[1]H:CH:CH:CH:CH:CH:@1
AlanineNH2C[s=n]H(CH3)C(=O)OH
Query showing R sidechainR1[hac>1]C[1]:C:C:C:C:C:@1
Query for amide/sulfamideNHC=M1{M1:O,S}

SMILES

The simplified molecular input line entry system, or SMILES,[5] is a line notation for molecules. SMILES strings include connectivity but do not include 2D or 3D coordinates.

Hydrogen atoms are not represented. Other atoms are represented by their element symbols B, C, N, O, F, P, S, Cl, Br, and I. The symbol = represents double bonds and # represents triple bonds. Branching is indicated by . Rings are indicated by pairs of digits.

Some examples are

NameFormulaSMILES string
MethaneCH4C
EthanolC2H6OCCO
BenzeneC6H6C1=CC=CC=C1 or c1ccccc1
EthyleneC2H4C=C

XYZ

The XYZ file format is a simple format that usually gives the number of atoms in the first line, a comment on the second, followed by a number of lines with atomic symbols (or atomic numbers) and cartesian coordinates.

MDL number

The MDL number contains a unique identification number for each reaction and variation. The format is RXXXnnnnnnnn. R indicates a reaction, XXX indicates which database contains the reaction record. The numeric portion, nnnnnnnn, is an 8-digit number.

Other common formats

One of the most widely used industry standards are chemical table file formats, like the Structure Data Format (SDF) files. They are text files that adhere to a strict format for representing multiple chemical structure records and associated data fields. The format was originally developed and published by Molecular Design Limited (MDL). MOL is another file format from MDL. It is documented in Chapter 4 of CTfile Formats.

PubChem also has XML and ASN1 file formats, which are export options from the PubChem online database. They are both text based (ASN1 is most often a binary format).

There are a large number of other formats listed in the table below

Converting between formats

OpenBabel and JOELib are freely available open source tools specifically designed for converting between file formats. Their chemical expert systems support a large atom type conversion tables.

obabel -i ''input_format'' ''input_file'' -o ''output_format'' ''output_file''For example, to convert the file epinephrine.sdf in SDF to CML use the command

obabel -i sdf epinephrine.sdf -o cml epinephrine.cml

The resulting file is epinephrine.cml.

IOData is a free and open-source Python library for parsing, storing, and converting various file formats commonly used by quantum chemistry, molecular dynamics, and plane-wave density-functional-theory software programs. It also supports a flexible framework for generating input files for various software packages. For a complete list of supported formats, please go to https://iodata.readthedocs.io/en/latest/formats.html.

A number of tools intended for viewing and editing molecular structures are able to read in files in a number of formats and write them out in other formats. The tools JChemPaint (based on the Chemistry Development Kit), XDrawChem (based on OpenBabel), Chime, Jmol, Mol2mol[6] and Discovery Studio fit into this category.

The Chemical MIME Project

"Chemical MIME" is a de facto approach for adding MIME types to chemical streams.

This project started in January 1994, and was first announced during the Chemistry workshop at the First WWW International Conference, held at CERN in May 1994. ... The first version of an Internet draft was published during May–October 1994, and the second revised version during April–September 1995. A paper presented to the CPEP (Committee on Printed and Electronic Publications) at the IUPAC meeting in August 1996 is available for discussion.[7]
In 1998 the work was formally published in the JCIM.[8]

File extensionMIME TypeProper NameDescription
.alcchemical/x-alchemyAlchemy Format
.csfchemical/x-cache-csfCAChe MolStruct CSF
.cbin, .cascii, .ctabchemical/x-cactvs-binaryCACTVS format
.cdxchemical/x-cdxChemDraw eXchange file
.cerchemical/x-ceriusMSI Cerius II format
.c3dchemical/x-chem3dChem3D Format
.chmchemical/x-chemdrawChemDraw file
.cifchemical/x-cifCrystallographic Information File, Crystallographic Information FrameworkPromulgated by the International Union of Crystallography
.cmdfchemical/x-cmdfCrystalMaker Data format
.cmlchemical/x-cmlChemical Markup LanguageXML based Chemical Markup Language.
.cpachemical/x-compassCompass program of the Takahashi
.bsdchemical/x-crossfireCrossfire file
.csm, .csmlchemical/x-csmlChemical Style Markup Language
.ctxchemical/x-ctxGasteiger group CTX file format
.cxf, .cefchemical/x-cxfChemical eXchange Format
.emb, .emblchemical/x-embl-dl-nucleotideEMBL Nucleotide Format
.spcchemical/x-galactic-spcSPC format for spectral and chromatographic data
.inp, .gam, .gaminchemical/x-gamess-inputGAMESS Input format
.fch, .fchkchemical/x-gaussian-checkpointGaussian Checkpoint Format
.cubchemical/x-gaussian-cubeGaussian Cube (Wavefunction) Format
.gau, .gjc, .gjf, .comchemical/x-gaussian-inputGaussian Input Format
.gcgchemical/x-gcg8-sequenceProtein Sequence Format
.genchemical/x-genbankToGenBank Format
.istr, .istchemical/x-isostarIsoStar Library of Intermolecular Interactions
.jdx, .dxchemical/x-jcamp-dxJCAMP Spectroscopic Data Exchange Format
.kinchemical/x-kinemageKinetic (Protein Structure) Images; Kinemage
.mcmchemical/x-macmoleculeMacMolecule File Format
.mmd, .mmodchemical/x-macromodel-inputMacroModel Molecular Mechanics
.molchemical/x-mdl-molfileMDL Molfile
.smiles, .smichemical/x-daylight-smilesSimplified molecular input line entry specificationA line notation for molecules.
.sdfchemical/x-mdl-sdfileStructure-Data File
.elchemical/x-sketchelSketchEl Molecule
.dschemical/x-datasheetSketchEl XML DataSheet
.inchichemical/x-inchiIUPAC International Chemical Identifier (InChI)
.jsd, .jsdrawchemical/x-jsdrawJSDraw native file format
.helm, .ihelmchemical/x-helmPistoia Alliance HELM stringA line notation for biological molecules
.xhelmchemical/x-xhelmPistoia Alliance XHELM XML fileXML based HELM including monomer definitions

Support

For Linux/Unix, configuration files are available as a "chemical-mime-data" package in .deb, RPM and tar.gz formats to register chemical MIME types on a web server.[9] [10] Programs can then register as viewer, editor or processor for these formats so that full support for chemical MIME types is available.

Sources of chemical data

Here is a short list of sources of freely available molecular data. There are many more resources than listed here out there on the Internet. Links to these sources are given in the references below.

  1. The US National Institute of Health PubChem database is a huge source of chemical data. All of the data is in two-dimensions. Data includes SDF, SMILES, PubChem XML, and PubChem ASN1 formats.
  2. The worldwide Protein Data Bank (wwPDB)[11] is an excellent source of protein and nucleic acid molecular coordinate data. The data is three-dimensional and provided in Protein Data Bank (PDB) format.
  3. is a commercial database for molecular data. The data includes a two-dimensional structure diagram and a smiles string for each compound. supports fast substructure searching based on parts of the molecular structure.
  4. ChemExper is a commercial data base for molecular data. The search results include a two-dimensional structure diagram and a mole file for many compounds.
  5. New York University Library of 3-D Molecular Structures.
  6. The US Environmental Protection Agency's The Distributed Structure-Searchable Toxicity (DSSTox) Database Network is a project of EPA's Computational Toxicology Program. The database provides SDF molecular files with a focus on carcinogenic and otherwise toxic substances.

See also

External links

Notes and References

  1. Web site: wwPDB.org . wwPDB: File Format . 2024-06-13 . www.wwpdb.org . en.
  2. Chen, V.B.. 2009. KING (Kinemage, Next Generation): A versatile interactive molecular and scientific visualization program . Protein Science. 19768809. 18. 11. 2788294. 2403–2409. 10.1002/pro.250. etal.
  3. Henrick, K.. 2008. Remediation of the protein data bank archive. Nucleic Acids Research. 18073189. 36. Database issue. 2238854. D426–D433. 10.1093/nar/gkm937. etal.
  4. Brooks, B.M. . 1983 . CHARMM: A program for macromolecular energy, minimization, and dynamics calculations . J. Comput. Chem. . 4 . 2 . 187–217 . 10.1002/jcc.540040211. 91559650 . etal.
  5. SMILES, a Chemical Language and Information System: 1: Introduction to Methodology and Encoding Rules. Weininger, David. Journal of Chemical Information and Modeling. 1988. 28. 1. 31–36. 10.1021/ci00057a005. 5445756 .
  6. http://www.gunda.hu/mol2mol Mol2mol homepage
  7. http://www.ch.ic.ac.uk/chemime/ The Chemical MIME Home Page
  8. Rzepa . H. S. . Murray-Rust . P. . Whitaker . B. J. . 10.1021/ci9803233 . The Application of Chemical Multipurpose Internet Mail Extensions (Chemical MIME) Internet Standards to Electronic Mail and World Wide Web Information Exchange . Journal of Chemical Information and Modeling . 38 . 6 . 976 . 1998 .
  9. Web site: Package Search Results for "chemical-mime" Debian.
  10. Web site: Why Use SourceForge? Features and Benefits.
  11. 10.1038/nsb1203-980 . Berman, H.M. . 2003 . Announcing the worldwide Protein Data Bank . Nature Structural Biology . 10 . 12 . 980 . 14634627. etal. free .