Package biana :: Package BianaObjects :: Module PDB' :: Class PDB
[hide private]
[frames] | no frames]

Class PDB

source code


Instance Methods [hide private]
 
__init__(self, name, resolution=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_get_dssp_results(self)
Executes the program dssp to get the accessibility
source code
 
_get_sorted_chains(self)
Returns a list with the chain names sorted
source code
 
_get_sorted_residues(self, chain_name) source code
 
_parse_dssp_results(self, fp) source code
 
add_atom(self, chain_name, residue_num, residue_type=None, atomObject=None)
Atom object can be None in order to indicate that it must be added a residue but no atoms information
source code
 
add_residue(self, chain_name, residue_num=0, atoms_initial_list=[], residue_type=None, hssp_conservation=None, hssp_entropy=None, hssp_exposure=None, hssp_norm_entropy=None, hssp_variability=None, dssp=None, residue_object=None)
To add residue.
source code
 
filter_residues(self, binary_list)
Returns a new PDB object with the residues filtered by binary_list
source code
 
get_accessibility(self, chain_name) source code
 
get_chain_names(self) source code
 
get_chain_num_atoms(self, chain_name) source code
 
get_conservation(self, chain_name) source code
 
get_contacting_pairs_indices(self, pdb2, chains1, chains2, type='min', cutoff=5.0)
Returns the indices!!! Not the residue nums!!!!
source code
 
get_distances(self, pdb2, chains1, chains2, type='min', fragments1=None, fragments2=None)
"type" can be "min", "mean", "ca" or "cb"
source code
 
get_dssp(self, chain_name) source code
 
get_dssp_accessibility(self, chain_name) source code
 
get_dssp_as_horiz(self, chain_name)
Returns the dssp result in psi-pred nomenclature
source code
 
get_dssp_ss(self, chain_name) source code
 
get_entropy(self, chain_name) source code
 
get_in_pdb_format(self)
Gets a string with the pdb atoms in PDB format
source code
 
get_name(self) source code
 
get_norm_entropy(self, chain_name) source code
 
get_num_atoms(self) source code
 
get_num_residues(self, chain_name=None) source code
 
get_pdb_summary(self) source code
 
get_rel_dssp_accessibility(self, chain_name) source code
 
get_residues(self, chain_name) source code
 
get_sequence(self, chain_name=None)
Returns a dictionary with chains as keys and sequence string as values
source code
 
get_variability(self, chain_name) source code
 
safe_traceback(self) source code
 
set_resolution(self, resolution) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
read_pdb_file(pdbFile, fragments=[], merge_fragments=False, chain_value='A')
merge_fragments is used to reenumerate residues in fragments and consider all the fragments as a single chain
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, resolution=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

add_residue(self, chain_name, residue_num=0, atoms_initial_list=[], residue_type=None, hssp_conservation=None, hssp_entropy=None, hssp_exposure=None, hssp_norm_entropy=None, hssp_variability=None, dssp=None, residue_object=None)

source code 

To add residue. Chain_name is mandatory always. residue_num and atoms_initial_list are mandatory only if residue_object is not specified

if residue_object is specified, the rest of parameters except chain_name are not used

filter_residues(self, binary_list)

source code 

Returns a new PDB object with the residues filtered by binary_list

The PDB must contain a single chain

get_distances(self, pdb2, chains1, chains2, type='min', fragments1=None, fragments2=None)

source code 

"type" can be "min", "mean", "ca" or "cb"

"fragments" is used to determine which fragments are going to be used to calculate distances
            TODO!!!

For the moment, it returns a dictionary with the wcm of the different chain combinations

read_pdb_file(pdbFile, fragments=[], merge_fragments=False, chain_value='A')
Static Method

source code 

merge_fragments is used to reenumerate residues in fragments and consider all the fragments as a single chain

"chain_value" is used only when merging fragments