Module Spyder :: Class PDBInterface
[hide private]
[frames] | no frames]

Class PDBInterface

source code

object --+
         |
        PDBInterface

Spyder-generated class

module atom

file /home/sjoerd/Spyder-devel/atom/pdb.spy

Description

Interface to specify Protein Data Bank (PDB) files

Either a file (mode "submit") or a PDB code (mode "download") is specified

The user can restrict the PDB to a specific chain, or else "All" must be specified as chain

Wiki

http://www.spyderware.nl/wiki/classes/PDBInterface

Validate block

>>>            
if not (mode != "submit" or (pdbfile != None and code == None)):
raise AtomValidationError("Please upload a PDB file, or select "Download it from the PDB" and provide a PDB code")
if not (mode != "download" or (pdbfile == None and code != None)):
raise AtomValidationError("Please provide a PDB code, or select "I am submitting it" and upload a PDB file")
if chain not in ("All", "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"):
raise AtomValidationError("Please provide a chain")               
>>>

Converters

Can be converted to:

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
String mode
String chain
*File_PDB pdbfile
*PDBCode code
Properties [hide private]

Inherited from object: __class__