Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/alphafold3
/ functions
Functions
889 in github.com/google-deepmind/alphafold3
⨍
Functions
889
◇
Types & classes
165
↳
Endpoints
1
Method
release_date_cutoff
(self)
src/alphafold3/data/templates.py:598
Method
remap_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
Function
remove_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
Function
remove_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
Method
rename_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
Method
rename_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
Method
rename_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
Function
replace
(instance, **kwargs)
src/alphafold3/jax/geometry/struct_of_array.py:88
Method
res_auth_seq_id
Returns the residue auth seq ID for each atom in the structure.
src/alphafold3/structure/structure.py:552
Method
res_boundaries
The indices in the atom fields where each present residue begins.
src/alphafold3/structure/structure.py:603
Method
res_id
(self)
src/alphafold3/structure/structure.py:544
Method
res_insertion_code
Returns the residue insertion code for each atom in the structure.
src/alphafold3/structure/structure.py:559
Method
res_name
(self)
src/alphafold3/structure/structure.py:548
Method
reset_author_naming_scheme
Remove author chain/residue ids, entity info and use internal ids.
src/alphafold3/structure/structure.py:1738
Function
residues_from_structure
Create a Residues object from a Structure object.
src/alphafold3/model/atom_layout/atom_layout.py:512
Method
residues_table
Residues table.
src/alphafold3/structure/structure.py:412
Method
resolution
(self)
src/alphafold3/structure/structure.py:435
Function
rmsd_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
Method
rna_chains
(self)
src/alphafold3/common/folding_input.py:1014
Function
run
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
Function
run_module
(*batched_args)
src/alphafold3/model/components/mapping.py:244
Method
safe_cast_int8
(x)
src/alphafold3/model/features.py:655
Function
sample
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
Method
scale_translation
Scale translation in Rigid3Array by 'factor'.
src/alphafold3/jax/geometry/rigid_matrix_vector.py:150
Method
scan_fn
(carry, x)
src/alphafold3/model/network/template_modules.py:189
Function
scan_iteration
(outputs, i)
src/alphafold3/model/components/mapping.py:203
Method
select
(field, default)
src/alphafold3/structure/structure.py:1186
Method
sequence
Returns a single-letter sequence, taking modifications into account. Uses 'X' for all unknown residues.
src/alphafold3/common/folding_input.py:202
Method
sequence
Returns a single-letter sequence, taking modifications into account. Uses 'N' for all unknown residues.
src/alphafold3/common/folding_input.py:511
Method
sequence
Returns a single-letter sequence, taking modifications into account. Uses 'N' for all unknown residues.
src/alphafold3/common/folding_input.py:707
Method
setUp
(self)
run_alphafold_test.py:78
Method
setUp
(self)
run_alphafold_data_test.py:112
Method
shape
(self)
src/alphafold3/model/atom_layout/atom_layout.py:239
Method
shape
(self)
src/alphafold3/model/atom_layout/atom_layout.py:309
Method
shape
(self)
src/alphafold3/model/atom_layout/atom_layout.py:351
Method
shape
(self)
src/alphafold3/structure/structure_tables.py:190
Function
sharded_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
Function
shuffle_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
Method
size
The number of rows in the table.
src/alphafold3/structure/table.py:124
Method
slice_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
Function
sort_key
(seq_data: tuple[str, str, str, str])
src/alphafold3/data/tools/nhmmer.py:337
Function
sort_key
(seq_data: tuple[str, str, str, str])
src/alphafold3/data/tools/jackhmmer.py:311
Method
split_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
Function
stack
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
Function
str_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
Method
structure_method
(self)
src/alphafold3/structure/structure.py:439
Method
structures
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
Method
super_block
(act)
src/alphafold3/model/network/diffusion_transformer.py:248
Method
tables
The names of the tables in this database.
src/alphafold3/structure/table.py:468
Function
tables_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
Method
target_names
Returns all targets in the store.
src/alphafold3/data/structure_stores.py:101
Method
template_iteration_fn
(x)
src/alphafold3/model/network/template_modules.py:349
Method
templates
(self)
src/alphafold3/common/folding_input.py:229
Method
test_config
(self)
run_alphafold_data_test.py:203
Method
test_featurisation
Run featurisation and assert that the output is as expected.
run_alphafold_data_test.py:212
Method
test_inference
Run AlphaFold 3 inference.
run_alphafold_test.py:209
Method
test_model_inference
Run model inference and assert that output exists.
run_alphafold_test.py:165
Method
test_process_fold_input_runs_only_data_pipeline
(self)
run_alphafold_data_test.py:247
Method
test_process_fold_input_runs_only_inference
(self)
run_alphafold_test.py:186
Method
test_replace_db_dir
Test that the db_dir is replaced correctly.
run_alphafold_data_test.py:265
Method
test_write_input_json
(self)
run_alphafold_data_test.py:235
Method
to_array
(self)
src/alphafold3/jax/geometry/rigid_matrix_vector.py:154
Method
to_array
Convert Rot3Array to array of shape [..., 3, 3].
src/alphafold3/jax/geometry/rotation_matrix.py:197
Method
to_array
(self)
src/alphafold3/jax/geometry/vector.py:122
Method
to_dict
Converts ProteinChain to an AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:402
Method
to_dict
Converts RnaChain to an AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:627
Method
to_dict
Converts DnaChain to an AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:780
Method
to_json
(self)
src/alphafold3/model/confidence_types.py:209
Method
to_json
Converts StructureConfidenceFull to json string.
src/alphafold3/model/confidence_types.py:273
Function
to_mmcif_atom_site_and_bonds_table
Returns raw _atom_site and _struct_conn mmCIF tables.
src/alphafold3/structure/structure_tables.py:422
Method
to_mmcif_dict
Returns chemical components data as a dict suitable for `mmcif.Mmcif`.
src/alphafold3/structure/chemical_components.py:213
Method
to_mmcif_dict
Returns the bioassembly data as a dict suitable for `mmcif.Mmcif`.
src/alphafold3/structure/bioassemblies.py:278
Function
to_mmcif_sequence_and_entity_tables
Returns raw sequence and entity mmCIF tables.
src/alphafold3/structure/structure_tables.py:308
Method
to_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
Function
tokenizer
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
Method
transform_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
Function
truncate_msa_batch
(msa: features.MSA, num_msa: int)
src/alphafold3/model/network/featurization.py:140
Function
type_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
Method
unflatten
(aux, data)
src/alphafold3/jax/geometry/struct_of_array.py:219
Method
unpaired_msa
(self)
src/alphafold3/common/folding_input.py:225
Method
unpaired_msa
(self)
src/alphafold3/common/folding_input.py:530
Method
unresolved_residues
Returns table of residues which have at least 1 resolved atom.
src/alphafold3/structure/structure.py:622
Function
unstack
(value: jnp.ndarray, axis: int = -1)
src/alphafold3/jax/geometry/utils.py:28
Function
walk
Walks the directory tree of resources similar to os.walk.
src/alphafold3/common/resources.py:83
Function
weighted_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
Method
with_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
Function
wrapped
(fun: T)
src/alphafold3/model/components/mapping.py:99
Function
write_embeddings
Writes embeddings to a directory.
src/alphafold3/model/post_processing.py:137
Function
write_output
Writes processed inference result to a directory.
src/alphafold3/model/post_processing.py:99
← previous
801–889 of 889, ranked by callers