MCPcopy Index your code

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

Functions889 in github.com/google-deepmind/alphafold3

↓ 1 callersFunctionmake_metadata_class
(cls)
src/alphafold3/jax/geometry/struct_of_array.py:159
↓ 1 callersFunctionmake_model_config
Returns a model config with some defaults overridden.
run_alphafold.py:396
↓ 1 callersMethodmake_residues_table
Returns the Structure residues table.
src/alphafold3/structure/parsing.py:975
↓ 1 callersFunctionmmcif_to_info
Converts CCD mmCIFs to component info. Missing fields are left empty.
src/alphafold3/constants/chemical_components.py:128
↓ 1 callersFunctionnoise_schedule
(t, smin=0.0004, smax=160.0, p=7)
src/alphafold3/model/network/diffusion_head.py:88
↓ 1 callersFunctionopen_for_reading
(model_files: list[pathlib.Path], is_compressed: bool)
src/alphafold3/model/params.py:164
↓ 1 callersMethodorder_and_drop_atoms_to_match
Returns a new structure with atoms ordered & dropped to match another's. This performs two operations simultaneously: * Ordering the atoms
src/alphafold3/structure/structure.py:1009
↓ 1 callersFunctionpackage_template_features
Stacks polymer features, adds empty and keeps ligand features unstacked.
src/alphafold3/data/templates.py:932
↓ 1 callersFunctionparse_atom_data
Parses atoms. If force_parse is True, fix deuterium and missing charge.
src/alphafold3/data/tools/rdkit_utils.py:393
↓ 1 callersFunctionparse_atom_data
Parses _chem_comp_atom data from an Mmcif object.
src/alphafold3/structure/chemical_components.py:352
↓ 1 callersFunctionparse_bond_data
Parses bond data. If force_parse is True, ignore missing aromatic flags.
src/alphafold3/data/tools/rdkit_utils.py:414
↓ 1 callersFunctionparse_bond_data
Parses _chem_comp_bond data from an Mmcif object.
src/alphafold3/structure/chemical_components.py:396
↓ 1 callersFunctionparse_fasta
Parses FASTA string and returns list of strings with amino-acid sequences. Arguments: fasta_string: The string contents of a FASTA file. Ret
src/alphafold3/data/parsers.py:58
↓ 1 callersFunctionparse_shard_spec
Returns the shard spec or None if the path is not a shard spec. For instance, if the shard spec is '/path/to/file@20', the output will be ('/path
src/alphafold3/data/tools/shards.py:57
↓ 1 callersMethodpolymer_author_chain_single_letter_sequence
Mapping from author chain ID to single letter aa sequence, polymers only. This mapping is well defined only for polymers (protein, DNA, RNA), but
src/alphafold3/structure/structure.py:2089
↓ 1 callersFunctionpost_process_inference_result
Returns cif, confidence_1d_json, confidence_2d_json, mean_confidence_1d, and ranking confidence.
src/alphafold3/model/post_processing.py:57
↓ 1 callersFunctionpredict_structure
Runs the full inference pipeline to predict structures for each seed.
run_alphafold.py:528
↓ 1 callersFunctionpredicted_tm_score
Computes predicted TM alignment or predicted interface TM alignment score. Args: tm_adjusted_pae: [num_res, num_res] Relevant tensor for comput
src/alphafold3/model/confidences.py:579
↓ 1 callersFunctionprocess_fold_input
( fold_input: folding_input.Input, data_pipeline_config: pipeline.DataPipelineConfig | None, *,
run_alphafold.py:709
↓ 1 callersMethodprocess_item
Takes requests from in_queue, adds (key, serialized ex) to out_queue.
src/alphafold3/model/pipeline/pipeline.py:440
↓ 1 callersMethodprocess_protein_chain
Processes a single protein chain.
src/alphafold3/data/pipeline.py:466
↓ 1 callersMethodprocess_rna_chain
Processes a single RNA chain.
src/alphafold3/data/pipeline.py:556
↓ 1 callersMethodprocess_structure
Computes features for a structure and associated MSAs/templates.
src/alphafold3/model/pipeline/pipeline.py:169
↓ 1 callersMethodquery
Query the database (sharded or unsharded) using Nhmmer.
src/alphafold3/data/tools/nhmmer.py:148
↓ 1 callersMethodquery_with_sto
Queries the database using hmmsearch using a given stockholm msa.
src/alphafold3/data/tools/hmmsearch.py:151
↓ 1 callersFunctionrandom_augmentation
Center then apply random translation and rotation.
src/alphafold3/model/features.py:1490
↓ 1 callersFunctionrandom_augmentation
Apply random rigid augmentation. Args: rng_key: random key positions: atom positions of shape (<common_axes>, 3) mask: per-atom mask of
src/alphafold3/model/network/diffusion_head.py:53
↓ 1 callersFunctionrandom_rotation
(random_state: np.random.RandomState)
src/alphafold3/model/features.py:1479
↓ 1 callersFunctionrandom_rotation
(key)
src/alphafold3/model/network/diffusion_head.py:42
↓ 1 callersFunctionread_records
Fully reads the contents of a byte stream.
src/alphafold3/model/params.py:89
↓ 1 callersFunctionreduce_chain_pair
Compute 1D summaries from a chain-pair summary. Args: chain_pair_met: A [num_samples, num_chains, num_chains] aggregate matrix. num_chain_t
src/alphafold3/model/confidences.py:422
↓ 1 callersMethodrename_label_asym_ids
Returns a new BioassemblyData with renamed label_asym_ids. Args: mapping: A mapping from original label_asym_ids to their new values. Any
src/alphafold3/structure/bioassemblies.py:292
↓ 1 callersMethodreorder_chains
Reorders tables so that the label_asym_ids are in the given order. This method changes the order of the chains, residues, and atoms tables so
src/alphafold3/structure/structure.py:2546
↓ 1 callersFunctionreplace_db_dir
Replaces the DB_DIR placeholder in a path with the given DB_DIR.
run_alphafold.py:688
↓ 1 callersMethodrestrict_to_atoms
(self, atom_key: np.ndarray)
src/alphafold3/structure/bonds.py:89
↓ 1 callersFunctionrun_hmmsearch_with_a3m
Runs Hmmsearch to get a3m string of hits.
src/alphafold3/data/templates.py:968
↓ 1 callersFunctionsanitize_mol
(mol, sort_alphabetically, remove_hydrogens)
src/alphafold3/data/tools/rdkit_utils.py:140
↓ 1 callersFunctionselect_model_files
Select the model files from a model directory.
src/alphafold3/model/params.py:185
↓ 1 callersFunctionself_attention
Multihead self-attention.
src/alphafold3/model/network/diffusion_transformer.py:129
↓ 1 callersFunctionsequences_are_feature_equivalent
( sequence1: str, sequence2: str, chain_poly_type: str, )
src/alphafold3/data/msa.py:51
↓ 1 callersFunctionsort_atoms_by_name
Sorts the atoms in the molecule by their names.
src/alphafold3/data/tools/rdkit_utils.py:469
↓ 1 callersFunctionsquare_euclidean_distance
Computes square of euclidean distance between 'vec1' and 'vec2'. Args: vec1: Vec3Array to compute distance to vec2: Vec3Array to compute
src/alphafold3/jax/geometry/vector.py:142
↓ 1 callersFunctiontable_dependency_order
Yields the names of the tables in the database in dependency order. This order guarantees that a table appears after all other tables that it ref
src/alphafold3/structure/table.py:495
↓ 1 callersMethodtell
(self)
src/alphafold3/model/params.py:132
↓ 1 callersMethodto_array
Stacks the fields to a numpy array with shape (6, <layout_shape>). Creates a pure numpy array of type `object` by stacking the 6 fields of the
src/alphafold3/model/atom_layout/atom_layout.py:192
↓ 1 callersMethodto_ccd_sequence
Converts to a sequence of CCD codes.
src/alphafold3/common/folding_input.py:433
↓ 1 callersMethodto_ccd_sequence
Converts to a sequence of CCD codes.
src/alphafold3/common/folding_input.py:796
↓ 1 callersMethodto_char
(self)
src/alphafold3/model/confidence_types.py:70
↓ 1 callersMethodto_json
Converts Input to an AlphaFold JSON.
src/alphafold3/common/folding_input.py:1454
↓ 1 callersMethodto_mmcif_dict_from_atom_arrays
Returns a dict suitable for building a CifDict, representing bonds. Args: atom_key: A (num_atom,) integer array of atom_keys. chain_i
src/alphafold3/structure/bonds.py:97
↓ 1 callersMethodto_res_arrays
Returns atom-level information in arrays containing a num_res dimension. NB: All residues in the structure will appear in the residue dimension b
src/alphafold3/structure/structure.py:2464
↓ 1 callersMethodto_structure
Converts Input to a Structure. WARNING: This method does not preserve the rng seeds. Args: ccd: The chemical components dictionary.
src/alphafold3/common/folding_input.py:1383
↓ 1 callersFunctiontransform_ls
Find the least squares best fit rotation between two sets of N points. Solve Ax = b for A. Where A is the transform rotating x^T into b^T. Args:
src/alphafold3/model/scoring/alignment.py:25
↓ 1 callersFunctionvalidate_fold_input
Validates the fold input contains MSA and templates for featurisation.
src/alphafold3/data/featurisation.py:33
↓ 1 callersFunctionwindowed_solvent_accessible_area
Implementation of AlphaFold-RSA. AlphaFold-RSA defined in https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9601767. Args: cif: Raw cif string.
src/alphafold3/model/confidences.py:62
↓ 1 callersMethodwith_multiple_seeds
Returns a copy of the input with num_seeds rng seeds.
src/alphafold3/common/folding_input.py:1499
↓ 1 callersMethodwithout_hydrogen
Returns the structure without hydrogen atoms.
src/alphafold3/structure/structure.py:1718
↓ 1 callersMethodwithout_terminal_oxygens
Returns the structure without terminal oxygen atoms.
src/alphafold3/structure/structure.py:1724
↓ 1 callersFunctionwrite_fold_input_json
Writes the input JSON to the output directory.
run_alphafold.py:606
↓ 1 callersFunctionwrite_outputs
Writes outputs to the specified output directory.
run_alphafold.py:618
Function_
(x: bytes, /)
run_alphafold_data_test.py:71
Method__add__
(self, other: Self)
src/alphafold3/jax/geometry/vector.py:66
Method__call__
( self, batch: features.BatchDict, key: jax.Array | None = None )
src/alphafold3/model/model.py:272
Method__call__
(self, x: jnp.ndarray)
src/alphafold3/model/components/haiku_modules.py:91
Method__call__
( self, batch: feat_batch.Batch, prev: dict[str, jnp.ndarray], target_feat: jnp.ndarra
src/alphafold3/model/network/evoformer.py:252
Method__call__
( self, act: jnp.ndarray, mask: jnp.ndarray, single_cond: jnp.ndarray, pair_cond
src/alphafold3/model/network/diffusion_transformer.py:209
Method__call__
( self, queries_act: jnp.ndarray, # (num_subsets, num_queries, ch) queries_mask: jnp.ndarra
src/alphafold3/model/network/diffusion_transformer.py:358
Method__call__
(self, act, broadcast_dim=0)
src/alphafold3/model/network/modules.py:64
Method__call__
(self, act, mask, pair_act)
src/alphafold3/model/network/modules.py:109
Method__call__
Builds a module. Arguments: act: [num_seq, num_res, channels] activations tensor pair_mask: [num_seq, num_res] mask of non-padded reg
src/alphafold3/model/network/modules.py:208
Method__call__
Applies Module. Args: act: The activation. mask: The mask. Returns: Outputs, should have same shape/type as output_act
src/alphafold3/model/network/modules.py:268
Method__call__
(self, act, mask)
src/alphafold3/model/network/modules.py:363
Method__call__
Build a single iteration of the pair former. Args: act: [num_res, num_res, num_channel] Input pairwise activations. pair_mask: [num_r
src/alphafold3/model/network/modules.py:456
Method__call__
(self, activations, masks)
src/alphafold3/model/network/modules.py:574
Method__call__
Builds ConfidenceHead module. Arguments: dense_atom_positions: [N_res, N_atom, 3] array of positions. embeddings: Dictionary of repre
src/alphafold3/model/network/confidence_head.py:101
Method__call__
( self, # positions_noisy.shape: (num_token, max_atoms_per_token, 3) positions_noisy: jnp.nd
src/alphafold3/model/network/diffusion_head.py:211
Method__call__
( self, batch: feat_batch.Batch, embeddings: dict[str, jnp.ndarray], return_distogram:
src/alphafold3/model/network/distogram_head.py:55
Method__call__
Generate an embedding for a set of templates. Args: query_embedding: [num_res, num_res, num_channel] a query tensor that will be us
src/alphafold3/model/network/template_modules.py:139
Method__call__
Build the single template embedding graph. Args: query_embedding: (num_res, num_res, num_channels) - embedding of the query sequenc
src/alphafold3/model/network/template_modules.py:230
Method__call__
(self, cls)
src/alphafold3/jax/geometry/struct_of_array.py:205
Method__contains__
(self, key: object)
src/alphafold3/constants/chemical_components.py:89
Method__eq__
(self, other: 'AtomLayout')
src/alphafold3/model/atom_layout/atom_layout.py:121
Method__eq__
(self, other: 'Residues')
src/alphafold3/model/atom_layout/atom_layout.py:302
Method__eq__
(self, other: object)
src/alphafold3/common/folding_input.py:124
Method__eq__
(self, other: object)
src/alphafold3/common/folding_input.py:235
Method__eq__
(self, other: object)
src/alphafold3/common/folding_input.py:536
Method__eq__
(self, other: object)
src/alphafold3/common/folding_input.py:724
Method__getitem__
(self, key: NumpyIndex)
src/alphafold3/model/atom_layout/atom_layout.py:107
Method__getitem__
(self, key: NumpyIndex)
src/alphafold3/model/atom_layout/atom_layout.py:286
Method__getitem__
(self, key: NumpyIndex)
src/alphafold3/model/atom_layout/atom_layout.py:343
Method__getitem__
(self, *args, **kwargs)
src/alphafold3/structure/structure.py:2998
Method__getitem__
(self, key: str)
src/alphafold3/structure/table.py:178
Method__getitem__
(self, key: object)
src/alphafold3/constants/chemical_components.py:84
Method__getstate__
Pickle calls this on dump. Returns: Members with cached properties removed.
src/alphafold3/structure/structure.py:638
Method__getstate__
Returns members with cached properties removed for pickling.
src/alphafold3/structure/table.py:91
Method__getstate__
(self)
src/alphafold3/jax/geometry/rigid_matrix_vector.py:226
Method__getstate__
(self)
src/alphafold3/jax/geometry/rotation_matrix.py:293
Method__getstate__
(self)
src/alphafold3/jax/geometry/vector.py:129
Method__hash__
(self)
src/alphafold3/common/folding_input.py:121
Method__hash__
(self)
src/alphafold3/common/folding_input.py:248
← previousnext →301–400 of 889, ranked by callers