molviewer - Display and manipulate 3-D molecule structure

Syntax

molviewer
molviewer(File)
molviewer(pdbID)
molviewer(pdbStruct)
FigureHandle = molviewer(...)

Arguments

File

String specifying one of the following:

  • File name of a file on the MATLAB search path or in the MATLAB Current Directory

  • Path and file name

  • URL pointing to a file (URL must begin with a protocol such as http://, ftp://, or file://)

The referenced file is a molecule model file, such as a Protein Data Bank (PDB)-formatted file (ASCII text file). Valid file types include:

  • PDB

  • MOL (MDL)

  • SDF

  • XYZ

  • SMOL

  • JVXL

  • CIF/mmCIF

pdbIDString specifying a unique identifier for a protein structure record in the PDB database.

    Note   Each structure in the PDB database is represented by a four-character alphanumeric identifier. For example, 4hhb is the identifier for hemoglobin.

pdbStructA structure containing a field for each PDB record, such as returned by the getpdb or pdbread function.

Return Values

FigureHandleFigure handle to a Molecule Viewer window.

Description

molviewer opens a blank Molecule Viewer window. You can display 3-D molecular structures by selecting File > Open, File > Load PDB ID, or File > Open URL.

molviewer(File) reads the data in a molecule model file, File, and opens a Molecule Viewer window displaying the 3-D molecular structure for viewing and manipulation.

molviewer(pdbID) retrieves the data for a protein structure record, pdbID, from the PDB database and opens a Molecule Viewer window displaying the 3-D molecular structure for viewing and manipulation.

molviewer(pdbStruct) reads the data from pdbStruct, a structure containing a field for each PDB record, and opens a Molecule Viewer window displaying a 3-D molecular structure for viewing and manipulation.

FigureHandle = molviewer(...) returns the figure handle to the Molecule Viewer window.

After displaying the 3-D molecule structure, you can:

Examples

View the acetylsalicylic acid (aspirin) molecule, whose structural information is contained in the Elsevier MDL molecule file aspirin.mol.

molviewer('aspirin.mol')  

View the H5N1 influenza virus hemagglutinin molecule, whose structural information is located at www.rcsb.org/pdb/files/2FK0.pdb.gz.

molviewer('http://www.rcsb.org/pdb/files/2FK0.pdb.gz')  

View the molecule with a PDB identifier of 2DHB.

molviewer('2DHB')

View the molecule with a PDB identifier of 4hhb, and create a figure handle for the molecule viewer.

FH = molviewer('4hhb')

Use the getpdb function to retrieve protein structure data from the PDB database and create a MATLAB structure. Then view the protein molecule.

pdbstruct = getpdb('1vqx')
molviewer(pdbstruct) 

See Also

Bioinformatics Toolbox functions: evalrasmolscript, getpdb, pdbread, pdbsuperpose, pdbtransform, pdbwrite

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS