Sections

  • Search Chrome Cow

Design a Day

Please Note

The "v3" of PBD Reader that ships with LW is actually a much older version (and poorly named) version of this plugin.

The most current version of the software, v2.85 is available here. It is far more advanced than the older version. Sorry for the confusion.

DNA Image

PDB is an abbreviation for Protein Database. It is a popular format for storing the 3D structure of proteins and other organic molecules. There is an ongoing effort to catalog and release into the public domain many of these structures.

It is not truly a 3D file format. It contains the XYZ spatial coordinates of the atoms in a molecule, but nothing else. This program will read that information, and from it place a representation of that atom (a point, a sphere, a HyperVoxel or HyperVoxle sprite).

Diclofenac

It is also capable of deriving the likely connecting points between atoms and drawing those as well.

In the documentation below, you can see the various types of rendering that are possible. You can also browse sample images in the gallery. Special thanks to Alexx for his contributions to the redesign.

Download

 PDB Reader v2.85 Intel/Mac 7.5+
 HV Text Sprites
 Docs [ PDF ]
 Sample PDBs

PDB Files on the Web

Small Organic Molecules

PDBs for Teaching Organic Chemistry

RCSB Protein Databank (The Big Database)



PDB Reader v2.85

Tested in Lscript v2.6 for Lightwave 7.5

Loading a PDB File

When you run the script, you will be prompted to load a PDB File:

Load Screen

Double-click on a file, or pick a file and click open.

The Interface

Main Interface Screen

Field Chooser

The first part of the interface sets up the reading of the PDB file.

Header Preview

The first line gives an overview of the PDB file. In this example, there are 2912 ATOM entries. A line in the PDB file that begins with the ATOM field will contain coordinate information and an chemical designation of the atom to be placed. HET entries contain the same information. A valid PDB file may have one or both of these type of entries. This PDB file will generate 3035 atoms.

CONECT entries contain information on how atoms in the file are connected to each other. Large files like this one don’t generally store explicit connection information. 5 entries for 3000+ atoms is not much information. We’ll deal with this information further on.

Field to read ATOM info: This requester highlights the field that the program will use to assign the atoms chemical name. It will usually default to the correct field. If not you will need to choose the field. Frequently, it will be a valid chemical symbol, C,H,O,N etc. Large file sometimes pack extra information in that field, and it may appear like CO3, HOH, or 8CT. If your molecule renders strangely, you may have chosen an incorrect ATOM field. Check the Create ATOM box to create these entries in Modeler.

Field to read HET info: This operates the same as the ATOM field. Check the Create HET box to create these entries in Modeler.

Field to read as Protein Group: Unless you work with large proteins, you many never see this option. This will allow to tag and color atoms by the membership in different protein groups. These groups generally go by three letter tags like TYR, ADE, and in this case, GLU. If you choose the GLU field, and check the (unfortunately truncated) Use Group Color, your atoms will be surfaced by protein group.

Scale Options

There are many ways to display molecular models. The first step in defining a look is to set the manner in which the atoms and links will scale with each other.

Scale Options

Each type of atom has inherent scale information. Hydrogen is smaller than Carbon, Carbon is smaller than sulphur, etc. Changing the Atom Scale will increase or decrease the size of the atoms, but they will still maintain their scale relative to each other. Useful values will generally be in the 0.0 - 2.0 range.

Stick Scale changes the thickness of the sticks that form the link between atoms. Useful values will generally be in the 0.3 - 1.5 range.

Scale Down Mode reduces the relative scaling between atoms. 50% halves the relative scale. Monoscale discards relative scaling for a single size. Atom Scale still controls the size of the atoms.

Display Options

This is the heart of the look your model will achieve.

Display Options

Tessellated Sphere: Choosing this option will make atoms as tessellated spheres. Smaller models will benefit from higher tessellation levels, but large (500+) models will take a long time to create at higher levels.

Segmented Spheres: Same as above, but with Modelers segmented spheres. Primarily a matter of taste.

Boxes: Atoms will be created as cubes. Very fast to create. Could be used as subdivision surfaces to create spheres quickly.

HV Particles: This is the fastest option, and provides for some interesting possibilities. It creates a point for each atom. Atom types are segregated by layer. In layout, you can apply Hyper Voxels to these points for a variety of effects, from spheres, to melded blobs, and even Text, using Hyper Voxel Sprites. This is the best solution for text label models, as the hypervoxel sprites always face the camera. I will soon be adding a standard set of HV Sprite labels for this type of use.

Text: Plots atoms using polygonal text labels. User has the choice of axis to render into when this option is chosen. Inferior to the Hyper Voxel Sprite approach.

Adaptive Tessellation: Some sort of override to the other sphere settings. Alexx…what does this do? };^)

Sticks: Clicking None will create no links between atoms. A large Atom Scale and no sticks will create a Space-Filling model
From CONECT: remember that CONECT info from the Field Chooser? If there is a reasonable number of CONECT entries for the number of atoms in the file, then the atomic bonds are probably recorded in the file. This option will attempt to display these explicit bonds.
Generate: Using exciting concepts from science, generate will scan the PDB model and determine the molecular bonds automatically. This is probably the best all around setting to use if you want to display the sticks. It has been optimized to work with large files, which rarely have explicit CONECT information.

Stick Resolution determines the number of side the connecting cylinders will have. Use the smallest value you can get away with, 3 - 5 is best for large models. A value of 1 will make a 2 point poly-line (very fast).

Warning: The biggest slowdown in this program comes from Modeler drawing primitives like spheres and cylinders. For large models, keep the resolution values low, or set aside 15 minutes to an hour to generate the models. There does not appear to be any way to speed up Modelers creation of these objects. Choose HV Particles and a stick resolution of 1 to see how fast the program calculates all the factors. Then boost the resolution, and weep at Modeler’s primitive draw speed.

Skip Hydrogen: When checked, Hydrogen is not created. For large models, hydrogen often impairs the view of the meaty bits of the molecule.

There is currently a bug in LScript that prevents the program from automatically coloring all surfaces, although the surface assignments have been made. There are controls for this function that should come on line automatically when you update to the next release of LScript. In theory.

The Color Bug Workaround

Included in the zip distribution of the PDB Reader are (2) Lightwave objects. Both of these objects contain all the surfaces created by PDB Reader, and their Shapley/CPK colors. Simply load one of these objects, which loads all the surfaces, then cut the geometry by hitting "x" to clear the layer. Don’t close the object. Now run the program. The resulting molecule should be properly surfaced. Be sure to save the object under a different name, or you’ll have to grab the template objects from the zip again.

Organization Options

The Reader can split molecules into logical groups on different layers. The HV Particles display option does this automatically.

Organization Options

The rest of the options are pretty self-explanatory. I haven’t had much use for them, but they are there for those that do.

The Log File is primarily a developer’s tool. For PDB files that have explicit CONECT info, the log will spit out all atoms pairs that share a link, and what the distance in standard units between those pairs are.

Known Issues

When generating stick connections, the sticks are generated on the last layer if the model is split by layers.

Bugs

Bug reports have been pretty quiet for the last year, but I’m sure there are a few. This isn’t a production tool, so much as a series of night and weekends I’ll never get back.

Feel free to submit bugs here .

I would strongly advise against the holding of breath until bugs are fixed. I haven’t touched the codebase in over a year, so that’s just asking for trouble.



Share This Post

del.icio.us:PDB Reader v2.85 digg:PDB Reader v2.85 wists:PDB Reader v2.85 magnolia:PDB Reader v2.85 segnalo:PDB Reader v2.85 Submit to Slashdot Submit to BoingBoing Submit to Make


17 Responses to “PDB Reader v2.85”

Pages: [2] 1 »

  1. koki Says:


    thank you veeeeeeeeeery much

  2. koki Says:


    thaaaaaaaaaaaaanks

  3. Sean Hyde-Moyer Says:


    Hmm…can do protein groups, not sure about amino acids. If you send me a sample PDB, I’ll poke through the file and see what I can come up with. Email is on the contact page.

    -S.

  4. Matt Hickey Says:


    This plugin is great! Is there any way to label specific amino acids using this script? If not, do you have any ideas for how to do this other than labeling individual atoms once I am already in Lightwave?

    Thanks,
    Matt

  5. Sean Hyde-Moyer Says:


    Jim pointed out offline that the link above to the gallery was broken. It’s now fixed, or you can check out the PDB gallery here.

    Thanks, Jim!

  6. Jim Willett Says:


    I’m just getting back into LW V9 and I too am getting no atomic data only the HETATM - I am getting models in Modeler so I’m not sure what’s going on- I’m using plug V2.85 (as well as the LW V3 of the plug). I’ll keep tinkering. My skill level is so low after a 10-year hiatus from LW that I’m basically starting over again– painful but challenging!

  7. saumesh Says:


    allow to download free

Pages: [2] 1 »

Leave a Reply

Comment Preview




All comments are subject to the Rules.