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

Class SequenceAlignmentForm

source code

object --+
         |
        SequenceAlignmentForm

Spyder-generated class

module bio

file /home/sjoerd/Spyder-devel/bio/sequencealignment.spy

Wiki

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

Validate block

>>>            
assert hsspid == None or len(hsspid) == 4
assert format == None or format in ("PHYLIP", "CLUSTAL","FASTA", "MSF") 
if file == None and hsspid == None:
raise Spyder.core.ValidationError("You must supply either a sequence alignment file or a PDB code")
if file != None and format == None:
raise Spyder.core.ValidationError("You supplied a sequence alignment file but you didn't specify its format")
if file == None and format != None:
raise Spyder.core.ValidationError("You supplied a format for a sequence alignment file but you didn't supply one")      
if hsspid != None:
if format != None or file != None:
raise Spyder.core.ValidationError("You supplied a sequence alignment file but you also specified to use the HSSP alignment")               
>>>

Form block

>>>            
LENGTH hsspid 4               
>>>
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]
*File file
*String format
*String hsspid
Properties [hide private]

Inherited from object: __class__