mmtfPyspark.utils.columnarStructure module

columnarStructure.py

Provides efficient access to structure information in the form of atom-based arrays. Data are lazily initialized as needs.

class ColumnarStructure(structure, firstModelOnly=True)[source]

Bases: object

Column based data structure to efficiently access structure information

Attributes

structure (mmtfStructure) mmtf structure
firstModelOnly (bool) use only the first model in a structure if True

Methods

get_alt_loc_list()
get_atom_names()
get_atom_to_chain_indices()
get_atom_to_group_indices()
get_b_factors()
get_chain_ids()
get_chain_names()
get_chain_to_atom_indices()
get_chain_to_entity_index() Returns an array that maps a chain index to an entity index
get_chain_to_group_indices()
get_chem_comp_types()
get_elements()
get_entity_indices()
get_entity_types()
get_group_names()
get_group_numbers()
get_group_to_atom_indices()
get_group_types()
get_indices()
get_num_atoms()
get_num_chains()
get_num_groups()
get_num_models()
get_occupancies()
get_sequence_positions()
get_x_coords()
get_y_coords()
get_z_coords()
is_polymer()
get_alt_loc_list()[source]
get_atom_names()[source]
get_atom_to_chain_indices()[source]
get_atom_to_group_indices()[source]
get_b_factors()[source]
get_chain_ids()[source]
get_chain_names()[source]
get_chain_to_atom_indices()[source]
get_chain_to_entity_index()[source]

Returns an array that maps a chain index to an entity index

Returns:

array

index that maps chain index to an entity index

get_chain_to_group_indices()[source]
get_chem_comp_types()[source]
get_elements()[source]
get_entity_indices()[source]
get_entity_types()[source]
get_group_names()[source]
get_group_numbers()[source]
get_group_to_atom_indices()[source]
get_group_types()[source]
get_indices()[source]
get_num_atoms()[source]
get_num_chains()[source]
get_num_groups()[source]
get_num_models()[source]
get_occupancies()[source]
get_sequence_positions()[source]
get_x_coords()[source]
get_y_coords()[source]
get_z_coords()[source]
is_polymer()[source]