MCPcopy Index your code

hub / github.com/google-deepmind/alphafold3 / functions

Functions889 in github.com/google-deepmind/alphafold3

↓ 157 callersMethodget
( # pyrefly: ignore[bad-override] self, key: str, default: None | Mapping[str, Sequence[str]] = None
src/alphafold3/constants/chemical_components.py:101
↓ 64 callersMethoditems
Returns the mapping from column names to column values.
src/alphafold3/structure/table.py:119
↓ 54 callersMethodzeros
Return Vec3Array corresponding to zeros of given shape.
src/alphafold3/jax/geometry/vector.py:114
↓ 33 callersMethodkeys
(self)
src/alphafold3/constants/chemical_components.py:112
↓ 29 callersMethodcopy_and_update
Performs a shallow copy but with specified fields updated.
src/alphafold3/structure/structure.py:1141
↓ 27 callersFunction_pad_to
Pads an array to a given shape. Wrapper around np.pad(). Args: arr: numpy array to pad shape: target shape, use None for axes that should s
src/alphafold3/model/features.py:69
↓ 25 callersMethodconvert
(data)
src/alphafold3/model/confidence_types.py:210
↓ 24 callersFunction_default
( candidate_value: np.ndarray | None, default_value: Sequence[Any] | np.ndarray, dtype: Any, )
src/alphafold3/structure/structure_tables.py:78
↓ 20 callersMethodpath
Returns the path to a given test data. Args: data_name: the name of the test data file relative to data_dir. If not set, this will
src/alphafold3/common/testing/data.py:40
↓ 19 callersMethodapply_array_to_column
Returns a sliced column array using a key array or a boolean mask.
src/alphafold3/structure/table.py:155
↓ 16 callersMethodget_column
Gets a column by name.
src/alphafold3/structure/table.py:131
↓ 16 callersMethodsanitised_name
Returns sanitised version of the name that can be used as a filename.
src/alphafold3/common/folding_input.py:1025
↓ 15 callersMethoditems
(self)
src/alphafold3/constants/chemical_components.py:106
↓ 15 callersMethodvalues
(self)
src/alphafold3/constants/chemical_components.py:109
↓ 14 callersMethoddot
Compute dot product between 'self' and 'other'.
src/alphafold3/jax/geometry/vector.py:94
↓ 13 callersMethodnorm
Compute Norm of Vec3Array, clipped to epsilon.
src/alphafold3/jax/geometry/vector.py:98
↓ 12 callersMethodcompute_features
Compute the msa features.
src/alphafold3/model/features.py:426
↓ 11 callersFunction_validate_keys
Validates that the JSON doesn't contain any extra unwanted keys.
src/alphafold3/common/folding_input.py:55
↓ 11 callersMethodmake_empty
(cls)
src/alphafold3/structure/bonds.py:54
↓ 10 callersMethodcopy_and_update
Returns a copy of this table with the specified changes applied. Args: **new_column_by_column_name: New values for the specified columns.
src/alphafold3/structure/table.py:402
↓ 10 callersMethodfilter
Filters the structure by field values and returns a new structure. Predicates are specified as keyword arguments, with names following the pa
src/alphafold3/structure/structure.py:1481
↓ 10 callersFunctiontile_for_models
(arr: np.ndarray)
src/alphafold3/structure/structure_tables.py:496
↓ 9 callersFunction_get_change_indices
(arr: np.ndarray)
src/alphafold3/structure/structure.py:228
↓ 9 callersMethodas_dict
( self, key_prefix: str | None = None, )
src/alphafold3/model/atom_layout/atom_layout.py:361
↓ 9 callersMethodfrom_dict
Creates GatherInfo from a given dictionary.
src/alphafold3/model/atom_layout/atom_layout.py:373
↓ 9 callersMethodnum_residues
Returns the number of residues in this Structure. Args: count_unresolved: Whether to include unresolved (empty) residues. Returns:
src/alphafold3/structure/structure.py:662
↓ 8 callersMethodapply_index
Returns a sliced table using an index (!= key) array.
src/alphafold3/structure/table.py:146
↓ 8 callersMethodcopy_and_pad_to
Copies and pads the layout to the requested shape. Args: shape: new shape for the atom layout Returns: a copy of the atom layout
src/alphafold3/model/atom_layout/atom_layout.py:146
↓ 8 callersMethodcopy_and_remap
Returns a copy of the table with the specified columns remapped. Args: **mapping_by_col: Each kwarg key should be the name of one of this t
src/alphafold3/structure/table.py:414
↓ 8 callersMethodfrom_json
Loads the input from the AlphaFold JSON string.
src/alphafold3/common/folding_input.py:1121
↓ 7 callersFunction_first_model_string_array
(col: str)
src/alphafold3/structure/parsing.py:1354
↓ 7 callersMethodchain_res_name_sequence
A mapping from internal chain ID to a sequence of residue names. The residue names are the full residue names rather than single letter codes
src/alphafold3/structure/structure.py:2133
↓ 7 callersMethodchain_single_letter_sequence
Returns a mapping from chain ID to a single letter residue sequence. Args: include_missing_residues: Whether to include residues that have
src/alphafold3/structure/structure.py:1977
↓ 7 callersMethodcross
Compute cross product between 'self' and 'other'.
src/alphafold3/jax/geometry/vector.py:87
↓ 7 callersMethodload
( self, data_name: str | os.PathLike[str], mode: Literal['rt'] = 'rt' )
src/alphafold3/common/testing/data.py:57
↓ 7 callersMethodto_a3m
Returns the MSA in the A3M format.
src/alphafold3/data/msa.py:255
↓ 7 callersMethodunstack
Unstacks a multi-model structure into a list of Structures. This method is the inverse of `stack`. Example usage: ``` strucs = multi
src/alphafold3/structure/structure.py:2240
↓ 6 callersMethod__init__
( self, config: Config, global_config: model_config.GlobalConfig, *, name )
src/alphafold3/model/network/modules.py:102
↓ 6 callersMethod_atom_mask
Boolean label indicating if each atom is from entities or not.
src/alphafold3/structure/structure.py:685
↓ 6 callersFunction_get_poly_seq_scheme_col
(col: str)
src/alphafold3/structure/parsing.py:1439
↓ 6 callersMethodfilter_to_entity_type
Filters the structure to only include the selected entity types. This convenience method abstracts away the specifics of mmCIF entity type na
src/alphafold3/structure/structure.py:1641
↓ 6 callersFunctionfront_or_empty
(values: Sequence[str])
src/alphafold3/constants/chemical_components.py:137
↓ 6 callersMethodget_row_by_key
Gets the row with specified key value.
src/alphafold3/structure/table.py:210
↓ 6 callersMethodmake_empty
(cls)
src/alphafold3/structure/structure_tables.py:122
↓ 6 callersMethodto_mmcif_dict
Returns an Mmcif representing the structure.
src/alphafold3/structure/structure.py:2952
↓ 5 callersMethod_cascade_delete
Performs a cascade delete operation on the structure's tables. Cascade delete ensures all the tables are consistent after any table fields ar
src/alphafold3/structure/structure.py:1426
↓ 5 callersFunction_read_file
Reads a maybe compressed (gzip, xz, zstd) file from the given path. Args: path: The path to the file to read. This can be either absolute path,
src/alphafold3/common/folding_input.py:61
↓ 5 callersFunction_requested_models_float_array
(col: str)
src/alphafold3/structure/parsing.py:1357
↓ 5 callersFunction_unwrap
Unwrap an object from a zero-dim np.ndarray.
src/alphafold3/model/features.py:105
↓ 5 callersMethodapply_to_point
Applies Rot3Array to point.
src/alphafold3/jax/geometry/rotation_matrix.py:141
↓ 5 callersMethodfilter
Filters the table using mask and/or predicates and returns a new table. Predicates can be either: 1. A constant value, e.g. `'CA'`. In this
src/alphafold3/structure/table.py:342
↓ 5 callersMethodfilter_out
Returns a new structure with the specified elements removed.
src/alphafold3/structure/structure.py:1637
↓ 5 callersMethodfrom_alphafoldserver_dict
Constructs Ligand from the AlphaFoldServer JSON dict.
src/alphafold3/common/folding_input.py:851
↓ 5 callersMethodfrom_empty
Creates an empty Msa containing just the query sequence.
src/alphafold3/data/msa.py:238
↓ 5 callersFunctionget_array_fields
(cls, return_values=False)
src/alphafold3/jax/geometry/struct_of_array.py:183
↓ 5 callersMethoditer_chains
Iterates over the chains in the structure.
src/alphafold3/structure/structure.py:846
↓ 5 callersMethoditerrows
Yields rows from the table. This can be used to easily convert a table to a Pandas dataframe: ```py df = pd.DataFrame(table.iterrows())
src/alphafold3/structure/table.py:234
↓ 5 callersMethodpolymer_auth_asym_id_to_label_asym_id
Mapping from author chain ID to internal chain ID, polymers only. This mapping is well defined only for polymers (protein, DNA, RNA), but not
src/alphafold3/structure/structure.py:2019
↓ 4 callersFunction_get_branch_scheme_col
(col: str)
src/alphafold3/structure/parsing.py:1498
↓ 4 callersFunction_get_nonpoly_scheme_col
(col: str)
src/alphafold3/structure/parsing.py:1483
↓ 4 callersFunction_get_string_array_default
(cif: mmcif.Mmcif, key: str, default: list[str])
src/alphafold3/structure/parsing.py:1012
↓ 4 callersMethod_iter_residue_ranges
Iterator for (start, end) pairs from an array of start indices.
src/alphafold3/structure/structure.py:814
↓ 4 callersFunction_value_is_missing
(value: Collection[Any] | str | None)
src/alphafold3/structure/chemical_components.py:34
↓ 4 callersFunctionadaptive_layernorm
Adaptive LayerNorm.
src/alphafold3/model/network/diffusion_transformer.py:32
↓ 4 callersMethodfrom_dict
Constructs Ligand from the AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:865
↓ 4 callersMethodget_atom_indices
Returns the indices of the from/dest atoms in the atom_key array.
src/alphafold3/structure/bonds.py:63
↓ 4 callersMethoditer_atoms
Iterates over the atoms in the structure.
src/alphafold3/structure/structure.py:725
↓ 4 callersMethodmake_filter_mask
Returns a boolean array of rows to keep, or None if all can be kept. Args: mask: See `Table.filter`. apply_per_element: See `Table.fi
src/alphafold3/structure/table.py:277
↓ 4 callersMethodnormalized
Return unit vector with optional clipping.
src/alphafold3/jax/geometry/vector.py:109
↓ 4 callersMethodseek
(self, pos: int, whence: int = os.SEEK_SET, /)
src/alphafold3/model/params.py:135
↓ 4 callersMethodto_ccd_sequence
Converts to a sequence of CCD codes.
src/alphafold3/common/folding_input.py:644
↓ 4 callersFunctiontransition_block
Transition Block.
src/alphafold3/model/network/diffusion_transformer.py:87
↓ 4 callersFunctionweighted_mean
(mask, value, axis)
src/alphafold3/model/confidences.py:239
↓ 4 callersMethodwith_column_names
Returns a view of this table with mapped column names.
src/alphafold3/structure/table.py:271
↓ 3 callersMethod_apply_atom_index_array
Applies index_arr to the atom table using NumPy-style array indexing. Args: index_arr: A 1D NumPy array that will be used to index into the
src/alphafold3/structure/structure.py:898
↓ 3 callersFunction_convert_str_array
(gather: GatherInfo, arr: np.ndarray)
src/alphafold3/model/atom_layout/atom_layout.py:421
↓ 3 callersMethod_iter_atom_ranges
Iterator for (start, end) pairs from an array of start indices.
src/alphafold3/structure/structure.py:805
↓ 3 callersFunction_output
(name: str)
run_alphafold_data_test.py:58
↓ 3 callersFunction_to_optional_float
(values: Sequence[str | None])
src/alphafold3/structure/chemical_components.py:42
↓ 3 callersFunctionadaptive_zero_init
Adaptive zero init, from AdaLN-zero.
src/alphafold3/model/network/diffusion_transformer.py:63
↓ 3 callersMethodadd_residues
Adds a residue (and its chain) to the tables.
src/alphafold3/structure/parsing.py:889
↓ 3 callersMethodapply_to_point
Apply Rigid3Array transform to point.
src/alphafold3/jax/geometry/rigid_matrix_vector.py:126
↓ 3 callersMethodcopy_and_update_globals
Returns a shallow copy with the global columns updated.
src/alphafold3/structure/structure.py:1332
↓ 3 callersMethodfilter
Returns a new Templates object with only the hits that pass all filters. This also filters on query_release_date and max_template_date. Args
src/alphafold3/data/templates.py:610
↓ 3 callersMethodfrom_a3m
Parses the single A3M and builds the Msa object.
src/alphafold3/data/msa.py:208
↓ 3 callersMethodfrom_inference_result
Instantiates an AtomConfidence from a structure. Args: inference_result: Inference result from AlphaFold. Returns: Scores in Ato
src/alphafold3/model/confidence_types.py:112
↓ 3 callersFunctionget_bond_layout
Get bond_layout for all bonds between two sets of chain types. There is a mask (all_mask) that runs through this script, and each bond pair needs
src/alphafold3/model/pipeline/inter_chain_bonds.py:211
↓ 3 callersFunctionget_fields
(cls_or_instance, filterfn, return_values=False)
src/alphafold3/jax/geometry/struct_of_array.py:172
↓ 3 callersFunctionget_shard_size
( num_residues: int, shard_spec: Sequence[tuple[int | None, int | None]] )
src/alphafold3/model/network/modules.py:36
↓ 3 callersMethodget_transforms
Returns the transforms required to generate the given assembly.
src/alphafold3/structure/bioassemblies.py:231
↓ 3 callersMethodget_value_by_index
(self, column_name: str, index: int)
src/alphafold3/structure/table.py:166
↓ 3 callersMethodinverse
Returns inverse of Rot3Array.
src/alphafold3/jax/geometry/rotation_matrix.py:133
↓ 3 callersMethodrename_chain_ids
Returns a new structure with renamed chain IDs (label_asym_ids). The chains' auth_asym_ids will be updated to be identical to the chain ID si
src/alphafold3/structure/structure.py:2624
↓ 3 callersMethodto_dict
Converts Ligand to an AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:900
↓ 3 callersMethodto_mmcif
Returns an mmCIF string representing the structure. Args: coords_decimal_places: The number of decimal places to keep for atom coor
src/alphafold3/structure/structure.py:2971
↓ 3 callersFunctionweighted_nanmean
Nan-mean with weighting -- empty slices return NaN.
src/alphafold3/model/confidences.py:333
↓ 2 callersMethod_abs_to_rel
(self, pos: int)
src/alphafold3/model/params.py:115
↓ 2 callersFunction_assert_all_arrays_have_same_shape
Checks that given attributes of the object have the expected shape.
src/alphafold3/model/atom_layout/atom_layout.py:1092
↓ 2 callersMethod_build_profile
Builds a HMM for the aligned sequences given as an MSA string. Args: msa: A string with the aligned sequences, in A3M or STO format.
src/alphafold3/data/tools/hmmbuild.py:98
↓ 2 callersFunction_compute_ptm
Computes the pTM metrics from PAE.
src/alphafold3/model/model.py:183
next →1–100 of 889, ranked by callers