Home | Trees | Index | Help |
|
---|
Package mmLib :: Module Structure :: Class Chain |
|
object
--+ |Segment
--+ | Chain
Method Summary | |
---|---|
__init__(self,
model_id,
chain_id,
**args)
| |
Implements the copy module deepcopy() protocol. | |
__str__(self)
| |
Adds a Fragment instance to the Chain. | |
Constructs a new Segment object so that it has a valid .chain reference. | |
Constructs and returns a list with the 3-letter residue codes for the polymer sequence. | |
get_fragment_sequence_index(self,
seq_index)
| |
Iterates over all 3-letter residue codes for the polymer sequence. | |
Remove the Fragment from the Chain. | |
Removes the current sequence mapping. | |
Sets a new ID for the Chain, updating the chain_id for all objects in the Structure hierarchy. | |
The sequence_list is a list of 3-letter residue name codes which define the polymer sequence for the chain. | |
Inherited from Segment | |
Checks for Fragment objects, or the fragment_id string. | |
Greator than or equal to operator based on chain_id. | |
Retrieve a Fragment within the Segment. | |
Greator than operator based on chain_id. | |
Iterate all Fragments contained in the Segment. | |
Less than or equal operator based on chain_id. | |
Return the number of Fragments in the Segment. | |
Less than operator based on the chain_id. | |
Adds a Atom. | |
Construct and return a sub-Segment between start_frag_id and stop_frag_id. | |
| |
| |
| |
Return the number of Fragment objects. | |
| |
| |
| |
| |
Returns the Chain object this Segment is part of. | |
Returns the atom with the same fragment_id and name as the argument atom, or None if it is not found. | |
Returns the PDB fragment uniquely identified by its fragment_id. | |
Returns the parent Model object. | |
Returns the parent Structure object. | |
| |
| |
| |
| |
| |
Return the 0-based index of the Framgent in the segment list. | |
Returns True if there are no dissagreements in the sequences of this segment and segment2. | |
Performs a in-order iteration of all atoms in the Segment, including alternate conformations. | |
| |
Iterates over all Atom objects within the Segment using the default conformation set in the parent Structure. | |
Iterates over all Bond objects attached to Atom objects within the Segment. | |
Iterates over all Fragment objects. | |
| |
| |
| |
| |
Removes a Atom object. | |
Sets the model_id of all contained objects. | |
Sort the Fragments in the Segment into proper order. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value |
Method Details |
---|
__deepcopy__(self, memo)Implements the copy module deepcopy() protocol.
|
add_fragment(self, fragment, delay_sort=False)Adds a Fragment instance to the Chain. If delay_sort is True, then the fragment is not inserted in the proper position within the chain.
|
construct_segment(self)Constructs a new Segment object so that it has a valid .chain reference.
|
construct_sequence_list(self)Constructs and returns a list with the 3-letter residue codes for the polymer sequence. |
iter_sequence(self)Iterates over all 3-letter residue codes for the polymer sequence. |
remove_fragment(self, fragment)Remove the Fragment from the Chain.
|
remove_sequence(self)Removes the current sequence mapping. |
set_chain_id(self, chain_id)Sets a new ID for the Chain, updating the chain_id for all objects in the Structure hierarchy.
|
set_sequence(self, sequence_list)The sequence_list is a list of 3-letter residue name codes which define the polymer sequence for the chain. Setting the sequence attempts to map the sequence codes to Fragment objects. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Apr 23 22:08:39 2006 | http://epydoc.sf.net |