Module for the manipulation of the molecule-residue-spin data
structures in the relax data store.
bool
|
|
|
bmrb_read(star)
Generate the molecule and residue spin containers from the entity
saveframe records. |
source code
|
|
|
|
|
copy_molecule(pipe_from=None,
mol_from=None,
pipe_to=None,
mol_to=None)
Copy the contents of a molecule container to a new molecule. |
source code
|
|
|
copy_residue(pipe_from=None,
res_from=None,
pipe_to=None,
res_to=None)
Copy the contents of the residue structure from one residue to a new
residue. |
source code
|
|
|
copy_spin(pipe_from=None,
spin_from=None,
pipe_to=None,
spin_to=None)
Copy the contents of the spin structure from one spin to a new spin. |
source code
|
|
int
|
|
int
|
|
int
|
count_spins(selection=None,
pipe=None,
skip_desel=True)
Function for counting the number of spins for which there is data. |
source code
|
|
MoleculeContainer instance
|
|
ResidueContainer instance
|
create_residue(res_num=None,
res_name=None,
mol_name=None)
Add a residue into the relax data store (and molecule if necessary). |
source code
|
|
|
create_pseudo_spin(spin_name=None,
spin_num=None,
res_id=None,
members=None,
averaging=None)
Add a pseudo-atom spin container into the relax data store. |
source code
|
|
SpinContainer instance
|
create_spin(spin_num=None,
spin_name=None,
res_num=None,
res_name=None,
mol_name=None)
Add a spin into the relax data store (and molecule and residue if
necessary). |
source code
|
|
tuple of int
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
int or tuple of 3 int
|
find_index(selection=None,
pipe=None,
global_index=True)
Find and return the spin index or indices for the selection string. |
source code
|
|
int
|
|
str
|
generate_spin_id(mol_name=None,
res_num=None,
res_name=None,
spin_num=None,
spin_name=None)
Generate the spin selection string. |
source code
|
|
str
|
generate_spin_id_data_array(data=None,
mol_name_col=None,
res_num_col=None,
res_name_col=None,
spin_num_col=None,
spin_name_col=None)
Generate the spin selection string from the given data array. |
source code
|
|
list of str
|
|
list of str
|
|
list of str
|
|
list of str
|
|
list of str
|
|
list of str
|
|
int
|
|
instance of the MoleculeContainer class.
|
molecule_loop(selection=None,
pipe=None,
return_id=False)
Generator function for looping over all the molecules of the given
selection. |
source code
|
|
list of numpy float arrays
|
|
|
|
|
|
|
|
|
|
|
|
str
|
|
list of int and str
|
parse_token(token,
verbosity=False)
Parse the token string and return a list of identifying numbers and
names. |
source code
|
|
instance of the ResidueContainer class. If full_info=True, the type
is the tuple (ResidueContainer, str).
|
residue_loop(selection=None,
pipe=None,
full_info=False,
return_id=False)
Generator function for looping over all the residues of the given
selection. |
source code
|
|
instance of the MoleculeContainer class.
|
|
instance of the ResidueContainer class.
|
return_residue(selection=None,
pipe=None)
Function for returning the residue data container of the given
selection. |
source code
|
|
instance of the SpinContainer class. If full_info=True, the type is
the tuple (SpinContainer, str, int, str).
|
return_spin(selection=None,
pipe=None,
full_info=False)
Function for returning the spin data container of the given
selection. |
source code
|
|
instance of the SpinContainer class (or tuple of SpinContainer and
str)
|
return_spin_from_index(global_index=None,
pipe=None,
return_spin_id=False)
Function for returning the spin data container corresponding to the
global index. |
source code
|
|
str
|
|
(int, str)
|
|
(int, str)
|
|
bool
|
|
|
|
str, int, str, int, str
|
|
bool
|
spin_in_list(spin_list,
mol_name_col=None,
res_num_col=None,
res_name_col=None,
spin_num_col=None,
spin_name_col=None,
mol_name=None,
res_num=None,
res_name=None,
spin_num=None,
spin_name=None)
Function for determining if the spin is located within the list of
spins. |
source code
|
|
tuple of 3 int
|
spin_index_loop(selection=None,
pipe=None)
Generator function for looping over all selected spins, returning the
mol-res-spin indices. |
source code
|
|
If full_info and return_id are False, SpinContainer instance. If
full_info is True and return_id is false, a tuple of (SpinContainer
instance, str, int, str). If full_info is False and return_id is
True, a tuple of (SpinContainer instance, str). If full_info and
return_id are False, a tuple of (SpinContainer instance, str, int,
str, str)
|
spin_loop(selection=None,
pipe=None,
full_info=False,
return_id=False)
Generator function for looping over all the spin systems of the given
selection. |
source code
|
|
3-tuple of str or None
|
tokenise(selection)
Split the input selection string returning the mol_token, res_token,
and spin_token strings. |
source code
|
|
|
|