|
__init__(self)
Initialise the structural object. |
source code
|
|
tuple consisting of the atom number (int), atom name (str), element
name (str), and atomic position (Numeric array of len 3)
|
_bonded_atom(self,
attached_atom,
index,
mol)
Find the atom named attached_atom directly bonded to the atom located
at the index. |
source code
|
|
|
|
str or None
|
|
tuple of int and array of str
|
|
list of str
|
|
tuple of int and array of str
|
|
list of str
|
|
list of str
|
|
list of str
|
|
list of str
|
_parse_pdb_ss(self,
lines,
read_mol=None,
helices=None,
sheets=None)
Loop over and parse the PDB secondary structure records. |
source code
|
|
list of str
|
|
list of str
|
|
tuple of int and array of str
|
|
tuple of int and list of str
|
|
int
|
|
dict of str
|
_residue_data(self,
res_nums=None,
res_names=None)
Convert the residue info into a dictionary of unique residues with
numbers as keys. |
source code
|
|
|
|
list of str
|
|
|
|
|
|
|
|
str
|
|
list or None
|
_trim_helix(self,
helix=None,
trim_res_list=[ ] ,
res_data=None)
Trim the given helix based on the list of deleted residue numbers. |
source code
|
|
list or None
|
_trim_sheet(self,
sheet=None,
trim_res_list=[ ] ,
res_data=None)
Trim the given sheet based on the list of deleted residue numbers. |
source code
|
|
|
add_atom(self,
mol_name=None,
atom_name=None,
res_name=None,
res_num=None,
pos=[ None, None, None] ,
element=None,
atom_num=None,
chain_id=None,
segment_id=None,
pdb_record=None,
sort=False)
Add a new atom to the structural data object. |
source code
|
|
|
add_coordinates(self,
coord=None,
mol_names=None,
res_names=None,
res_nums=None,
atom_names=None,
elements=None,
set_mol_name=None,
set_model_num=None)
Add a set of coordinates to the structural object. |
source code
|
|
ModelContainer instance
|
|
|
|
bool
|
are_bonded(self,
atom_id1=None,
atom_id2=None)
Determine if two atoms are directly bonded to each other. |
source code
|
|
bool
|
are_bonded_index(self,
mol_index1=None,
atom_index1=None,
mol_index2=None,
atom_index2=None)
Determine if two atoms, given as indices, are directly bonded to each
other. |
source code
|
|
tuple consisting of optional molecule name (str), residue number
(int), residue name (str), atom number (int), atom name(str), element
name (str), and atomic position (array of len 3).
|
atom_loop(self,
selection=None,
str_id=None,
model_num=None,
mol_name_flag=False,
res_num_flag=False,
res_name_flag=False,
atom_num_flag=False,
atom_name_flag=False,
element_flag=False,
pos_flag=False,
mol_index_flag=False,
index_flag=False,
ave=False)
Generator function for looping over all atoms in the internal relax
structural object. |
source code
|
|
list of numpy arrays (or a tuple if return_name or return_warnings
are set)
|
bond_vectors(self,
attached_atom=None,
model_num=None,
mol_name=None,
res_num=None,
res_name=None,
spin_num=None,
spin_name=None,
return_name=False,
return_warnings=False)
Find the bond vector between the atoms of 'attached_atom' and
'atom_id'. |
source code
|
|
|
|
|
connect_atom(self,
mol_name=None,
index1=None,
index2=None)
Connect two atoms in the structural data object. |
source code
|
|
|
delete(self,
model=None,
selection=None,
verbosity=1)
Deletion of structural information. |
source code
|
|
bool
|
empty(self)
Report if the structural data structure is empty or not. |
source code
|
|
|
from_xml(self,
str_node,
dir=None,
file_version=1)
Recreate the structural object from the XML structural object node. |
source code
|
|
ModelContainer instance
|
|
MolContainer instance or None
|
|
bool
|
|
bool
|
load_gaussian(self,
file_path,
set_mol_name=None,
set_model_num=None,
verbosity=False)
Method for loading structures from a Gaussian log file. |
source code
|
|
bool
|
load_pdb(self,
file_path,
read_mol=None,
set_mol_name=None,
read_model=None,
set_model_num=None,
alt_loc=None,
verbosity=False,
merge=False)
Method for loading structures from a PDB file. |
source code
|
|
bool
|
load_xyz(self,
file_path,
read_mol=None,
set_mol_name=None,
read_model=None,
set_model_num=None,
verbosity=False)
Method for loading structures from a XYZ file. |
source code
|
|
|
mean(self)
Calculate the mean structure from all models in the structural data
object. |
source code
|
|
list of int
|
|
ModelContainer container
|
model_loop(self,
model=None)
Generator method for looping over the models in numerical order. |
source code
|
|
int
|
|
int
|
|
str
|
one_letter_codes(self,
mol_name=None,
selection=None)
Generate and return the one letter code sequence for the given
molecule. |
source code
|
|
|
pack_structs(self,
data_matrix,
orig_model_num=None,
set_model_num=None,
orig_mol_num=None,
set_mol_name=None,
file_name=None,
file_path=None,
file_path_abs=None,
helices=None,
sheets=None,
verbosity=1,
merge=False)
From the given structural data, expand the structural data data
structure. |
source code
|
|
|
rotate(self,
R=None,
origin=None,
model=None,
selection=None)
Rotate the structural information about the given origin. |
source code
|
|
Internal_selection instance
|
selection(self,
atom_id=None,
inv=False)
Convert the atom ID string into a special internal selection object
for speed. |
source code
|
|
|
|
|
target_mol_name(self,
set=None,
target=None,
index=None,
mol_num=None,
file=None)
Add the new molecule name to the target data structure. |
source code
|
|
|
translate(self,
T=None,
model=None,
selection=None)
Displace the structural information by the given translation vector. |
source code
|
|
|
to_xml(self,
doc,
element)
Prototype method for converting the structural object to an XML
representation. |
source code
|
|
|
|
|
write_pdb(self,
file,
model_num=None)
Method for the creation of a PDB file from the structural data. |
source code
|
|
|
|