MCPcopy Create free account

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

Functions889 in github.com/google-deepmind/alphafold3

Methodrelease_date_cutoff
(self)
src/alphafold3/data/templates.py:598
Methodremap_res_id
Returns a copy of this structure with residue IDs remapped. Example structure with 2 chains: Chain A: residues 1, 2, 3; chain B: residues 6,
src/alphafold3/structure/structure.py:2724
Functionremove_all_gapped_rows_from_all_seqs
Removes all gapped rows from all_seq feat based on selected asym_ids.
src/alphafold3/model/msa_pairing.py:292
Functionremove_invalidly_typed_feats
Remove features of types we don't want to send to the TPU e.g. strings.
src/alphafold3/model/components/utils.py:35
Methodrename_auth_asym_ids
Returns a new structure with renamed author chain IDs (auth_asym_ids). Args: new_id_by_old_id: A mapping from original auth_asym_ids to the
src/alphafold3/structure/structure.py:2601
Methodrename_chains_to_match
Returns a new structure with renamed chains to match another's. Example: This structure has chains: {'A': 'DEEP', 'B': 'MIND', 'C': 'MIND'}
src/alphafold3/structure/structure.py:2779
Methodrename_res_name
Returns a copy of this structure with residues renamed. Residue names in chemical components data will also be renamed. Args: res_name
src/alphafold3/structure/structure.py:2683
Functionreplace
(instance, **kwargs)
src/alphafold3/jax/geometry/struct_of_array.py:88
Methodres_auth_seq_id
Returns the residue auth seq ID for each atom in the structure.
src/alphafold3/structure/structure.py:552
Methodres_boundaries
The indices in the atom fields where each present residue begins.
src/alphafold3/structure/structure.py:603
Methodres_id
(self)
src/alphafold3/structure/structure.py:544
Methodres_insertion_code
Returns the residue insertion code for each atom in the structure.
src/alphafold3/structure/structure.py:559
Methodres_name
(self)
src/alphafold3/structure/structure.py:548
Methodreset_author_naming_scheme
Remove author chain/residue ids, entity info and use internal ids.
src/alphafold3/structure/structure.py:1738
Functionresidues_from_structure
Create a Residues object from a Structure object.
src/alphafold3/model/atom_layout/atom_layout.py:512
Methodresidues_table
Residues table.
src/alphafold3/structure/structure.py:412
Methodresolution
(self)
src/alphafold3/structure/structure.py:435
Functionrmsd_from_coords
Computes the *aligned* RMSD of two Mx3 np arrays of coordinates. Args: decoy_coords: [M, 3] np array of decoy atom coordinates. gt_coords:
src/alphafold3/model/scoring/alignment.py:134
Methodrna_chains
(self)
src/alphafold3/common/folding_input.py:1014
Functionrun
Launches a subprocess, times it, and checks for errors. Args: cmd: Command to launch. cmd_name: Human-readable command name to be used in l
src/alphafold3/data/tools/subprocess_utils.py:62
Functionrun_module
(*batched_args)
src/alphafold3/model/components/mapping.py:244
Methodsafe_cast_int8
(x)
src/alphafold3/model/features.py:655
Functionsample
Sample using denoiser on batch. Args: denoising_step: the denoising function. batch: the batch key: random key config: config for t
src/alphafold3/model/network/diffusion_head.py:306
Methodscale_translation
Scale translation in Rigid3Array by 'factor'.
src/alphafold3/jax/geometry/rigid_matrix_vector.py:150
Methodscan_fn
(carry, x)
src/alphafold3/model/network/template_modules.py:189
Functionscan_iteration
(outputs, i)
src/alphafold3/model/components/mapping.py:203
Methodselect
(field, default)
src/alphafold3/structure/structure.py:1186
Methodsequence
Returns a single-letter sequence, taking modifications into account. Uses 'X' for all unknown residues.
src/alphafold3/common/folding_input.py:202
Methodsequence
Returns a single-letter sequence, taking modifications into account. Uses 'N' for all unknown residues.
src/alphafold3/common/folding_input.py:511
Methodsequence
Returns a single-letter sequence, taking modifications into account. Uses 'N' for all unknown residues.
src/alphafold3/common/folding_input.py:707
MethodsetUp
(self)
run_alphafold_test.py:78
MethodsetUp
(self)
run_alphafold_data_test.py:112
Methodshape
(self)
src/alphafold3/model/atom_layout/atom_layout.py:239
Methodshape
(self)
src/alphafold3/model/atom_layout/atom_layout.py:309
Methodshape
(self)
src/alphafold3/model/atom_layout/atom_layout.py:351
Methodshape
(self)
src/alphafold3/structure/structure_tables.py:190
Functionsharded_map
Sharded vmap. Maps `fun` over axes, in a way similar to hk.vmap, but does so in shards of `shard_size`. This allows a smooth trade-off between me
src/alphafold3/model/components/mapping.py:64
Functionshuffle_msa
Shuffle MSA randomly, return batch with shuffled MSA. Args: key: rng key for random number generation. msa: MSA object to sample msa from.
src/alphafold3/model/network/featurization.py:260
Methodsize
The number of rows in the table.
src/alphafold3/structure/table.py:124
Methodslice_leading_dims
Used to create a new Structure by slicing into the leading dimensions. Example usage 1: ``` final_state = multi_state_struc.slice_leadin
src/alphafold3/structure/structure.py:2221
Functionsort_key
(seq_data: tuple[str, str, str, str])
src/alphafold3/data/tools/nhmmer.py:337
Functionsort_key
(seq_data: tuple[str, str, str, str])
src/alphafold3/data/tools/jackhmmer.py:311
Methodsplit_by_chain
Splits a Structure into single-chain Structures, one for each chain. The obtained structures can be merged back together into the original st
src/alphafold3/structure/structure.py:2281
Functionstack
Stacks multiple structures into a single multi-model Structure. This function is the inverse of `Structure.unstack()`. NB: this function assumes
src/alphafold3/structure/structure.py:3015
Functionstr_id_to_int_id
Encodes an mmCIF-style string chain ID as an integer. The integer IDs are one based so this function is the inverse of int_id_to_str_id. Args:
src/alphafold3/structure/mmcif.py:72
Methodstructure_method
(self)
src/alphafold3/structure/structure.py:439
Methodstructures
Yields template structures for each unique PDB ID among hits. If there are multiple hits in the same Structure, the Structure will be include
src/alphafold3/data/templates.py:730
Methodsuper_block
(act)
src/alphafold3/model/network/diffusion_transformer.py:248
Methodtables
The names of the tables in this database.
src/alphafold3/structure/table.py:468
Functiontables_from_atom_arrays
Returns Structure tables constructed from atom array level data. All fields except name and, res_id are optional, all array fields consist of a v
src/alphafold3/structure/structure_tables.py:568
Methodtarget_names
Returns all targets in the store.
src/alphafold3/data/structure_stores.py:101
Methodtemplate_iteration_fn
(x)
src/alphafold3/model/network/template_modules.py:349
Methodtemplates
(self)
src/alphafold3/common/folding_input.py:229
Methodtest_config
(self)
run_alphafold_data_test.py:203
Methodtest_featurisation
Run featurisation and assert that the output is as expected.
run_alphafold_data_test.py:212
Methodtest_inference
Run AlphaFold 3 inference.
run_alphafold_test.py:209
Methodtest_model_inference
Run model inference and assert that output exists.
run_alphafold_test.py:165
Methodtest_process_fold_input_runs_only_data_pipeline
(self)
run_alphafold_data_test.py:247
Methodtest_process_fold_input_runs_only_inference
(self)
run_alphafold_test.py:186
Methodtest_replace_db_dir
Test that the db_dir is replaced correctly.
run_alphafold_data_test.py:265
Methodtest_write_input_json
(self)
run_alphafold_data_test.py:235
Methodto_array
(self)
src/alphafold3/jax/geometry/rigid_matrix_vector.py:154
Methodto_array
Convert Rot3Array to array of shape [..., 3, 3].
src/alphafold3/jax/geometry/rotation_matrix.py:197
Methodto_array
(self)
src/alphafold3/jax/geometry/vector.py:122
Methodto_dict
Converts ProteinChain to an AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:402
Methodto_dict
Converts RnaChain to an AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:627
Methodto_dict
Converts DnaChain to an AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:780
Methodto_json
(self)
src/alphafold3/model/confidence_types.py:209
Methodto_json
Converts StructureConfidenceFull to json string.
src/alphafold3/model/confidence_types.py:273
Functionto_mmcif_atom_site_and_bonds_table
Returns raw _atom_site and _struct_conn mmCIF tables.
src/alphafold3/structure/structure_tables.py:422
Methodto_mmcif_dict
Returns chemical components data as a dict suitable for `mmcif.Mmcif`.
src/alphafold3/structure/chemical_components.py:213
Methodto_mmcif_dict
Returns the bioassembly data as a dict suitable for `mmcif.Mmcif`.
src/alphafold3/structure/bioassemblies.py:278
Functionto_mmcif_sequence_and_entity_tables
Returns raw sequence and entity mmCIF tables.
src/alphafold3/structure/structure_tables.py:308
Methodto_res_atom_lists
Returns list of atom dictionaries grouped by residue. If this is a multi-model structure, each atom will store its fields atom_x, atom_y, ato
src/alphafold3/structure/structure.py:2513
Functiontokenizer
Maps a flat atom layout to tokens for evoformer. Creates the evoformer tokens as one token per polymer residue and one token per ligand atom. The
src/alphafold3/model/features.py:173
Methodtransform_states_to_chains
Transforms states to chains. A multi-state protein structure will be transformed to a multi-chain single-state protein structure. Useful for
src/alphafold3/structure/structure.py:2293
Functiontruncate_msa_batch
(msa: features.MSA, num_msa: int)
src/alphafold3/model/network/featurization.py:140
Functiontype_symbol
Returns the element type for the given component name and atom name. Args: ccd: The chemical components dictionary. res_name: The component
src/alphafold3/constants/chemical_components.py:190
Methodunflatten
(aux, data)
src/alphafold3/jax/geometry/struct_of_array.py:219
Methodunpaired_msa
(self)
src/alphafold3/common/folding_input.py:225
Methodunpaired_msa
(self)
src/alphafold3/common/folding_input.py:530
Methodunresolved_residues
Returns table of residues which have at least 1 resolved atom.
src/alphafold3/structure/structure.py:622
Functionunstack
(value: jnp.ndarray, axis: int = -1)
src/alphafold3/jax/geometry/utils.py:28
Functionwalk
Walks the directory tree of resources similar to os.walk.
src/alphafold3/common/resources.py:83
Functionweighted_mean
Computes weighted mean in a safe way that avoids NaNs. This is equivalent to jnp.average for the case eps=0.0, but adds a small constant to the d
src/alphafold3/jax/geometry/utils.py:42
Methodwith_sorted_chains
Returns a new structure with the chains are in reverse spreadsheet style. This is the usual order to write chains in an mmCIF: (A < B < ... <
src/alphafold3/structure/structure.py:974
Functionwrapped
(fun: T)
src/alphafold3/model/components/mapping.py:99
Functionwrite_embeddings
Writes embeddings to a directory.
src/alphafold3/model/post_processing.py:137
Functionwrite_output
Writes processed inference result to a directory.
src/alphafold3/model/post_processing.py:99
← previous801–889 of 889, ranked by callers