MCPcopy Create free account

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

Functions889 in github.com/google-deepmind/alphafold3

Functiondot
(vector1: Vec3Array, vector2: Vec3Array)
src/alphafold3/jax/geometry/vector.py:164
Methoddrop_non_standard_protein_atoms
Drops non-standard atom names from protein chains. Args: drop_oxt: If True, also drop terminal oxygens (OXT). Returns: A new Str
src/alphafold3/structure/structure.py:1839
Functiondynamic_update_slice_in_dim
(full_array, update, axis, i)
src/alphafold3/model/components/mapping.py:195
Functionencode_record
Encodes a single haiku param as bytes, preserving non-numpy dtypes.
src/alphafold3/model/params.py:44
Functioneuclidean_distance
Computes euclidean distance between 'vec1' and 'vec2'. Args: vec1: Vec3Array to compute euclidean distance to vec2: Vec3Array to compute eu
src/alphafold3/jax/geometry/vector.py:180
Methodevoformer_fn
(x)
src/alphafold3/model/network/evoformer.py:236
Functionextract_msa_features
Extracts MSA features. Example: The input raw MSA is: `[["AAAAAA"], ["Ai-CiDiiiEFa"]]` The output MSA will be: `[["AAAAAA"], ["A-CDEF"]]` The
src/alphafold3/data/msa_features.py:80
Functionextract_species_ids
Extracts species ID from MSA UniProtKB sequence identifiers. Args: msa_descriptions: The descriptions (the FASTA/A3M comment line) for each of
src/alphafold3/data/msa_features.py:190
Functionfeaturise_input
Featurise the folding input. Args: fold_input: The input to featurise. ccd: The chemical components dictionary. buckets: Bucket sizes t
src/alphafold3/data/featurisation.py:47
Methodfeaturize
Featurises the templates and returns a map of feature names to features. NB: If you don't do any prefiltering, this method might be slow to run
src/alphafold3/data/templates.py:671
Functionfilename
Returns the absolute path to an external resource. Note that this calls resources.GetResourceFilename under the hood and hence causes par file un
src/alphafold3/common/resources.py:38
Methodfileno
(self)
src/alphafold3/model/params.py:126
Functionfill_in_optional_fields
Fill in the optional fields (atom_element, res_name, chain_type). Extracts the optional fields (atom_element, res_name, chain_type) from a flat r
src/alphafold3/model/atom_layout/atom_layout.py:387
Methodfill_missing_fields
Fill missing MSA and template fields with default values.
src/alphafold3/common/folding_input.py:443
Methodfill_missing_fields
Fill missing MSA fields with default values.
src/alphafold3/common/folding_input.py:654
Methodfill_missing_fields
Fill missing MSA and template fields with default values.
src/alphafold3/common/folding_input.py:1489
Methodfilter_coords
Filter a structure's atoms by a function of their coordinates. Args: coord_predicate: A boolean function of coordinate vectors (shape (3,))
src/alphafold3/structure/structure.py:1776
Methodfilter_polymers_to_single_atom_per_res
Filter to one representative atom per polymer residue, ligands unchanged. Args: representative_atom_by_chain_type: Chain type str to atom n
src/alphafold3/structure/structure.py:1801
Methodfilter_residues
Filter resolved residues using a boolean mask.
src/alphafold3/structure/structure.py:1762
Methodfind_class
Returns the class for `module` and `name` if allowed.
src/alphafold3/common/safe_pickle.py:54
Functionfix_non_standard_polymer_res
Returns the res_name of the closest standard protein/RNA/DNA residue. Optimized for the case where a single residue needs to be converted. If re
src/alphafold3/constants/mmcif_names.py:185
Functionfix_template_features
Convert template features to AlphaFold 3 format. Args: template_features: Template features for the protein. num_res: The length of the ami
src/alphafold3/model/data3.py:50
Functionflatten
Flatten Struct of Array instance.
src/alphafold3/jax/geometry/struct_of_array.py:143
Methodforeign_keys
Describes the relationship between keys in the database. Returns: A map from table names to pairs of `(column_name, foreign_table_name)`
src/alphafold3/structure/table.py:477
Methodformat_coords
(coords: Sequence[float | None])
src/alphafold3/structure/chemical_components.py:281
Functionformat_float_array
Converts 1D array to a list of strings with the given number of decimals. This function is faster than converting via Python list comprehension, e.
src/alphafold3/structure/mmcif.py:308
Methodforward_fn
(batch)
run_alphafold.py:441
Functionfraction_disordered
Compute fraction of protein residues that are disordered. Args: struc: A structure to compute rASA metrics on. rasa_disorder_cutoff: The th
src/alphafold3/model/confidences.py:99
Methodfrom_alphafoldserver_dict
Constructs ProteinChain from the AlphaFoldServer JSON dict.
src/alphafold3/common/folding_input.py:271
Methodfrom_alphafoldserver_dict
Constructs RnaChain from the AlphaFoldServer JSON dict.
src/alphafold3/common/folding_input.py:566
Methodfrom_alphafoldserver_dict
Constructs DnaChain from the AlphaFoldServer JSON dict.
src/alphafold3/common/folding_input.py:747
Methodfrom_array
(cls, array)
src/alphafold3/jax/geometry/rigid_matrix_vector.py:160
Methodfrom_array4x4
Construct Rigid3Array from homogeneous 4x4 array.
src/alphafold3/jax/geometry/rigid_matrix_vector.py:166
Functionfrom_atom_arrays
Returns a Structure constructed from atom array level data. All fields except name and, res_id are optional, all array fields consist of a value
src/alphafold3/structure/parsing.py:1652
Methodfrom_data_dict
Make Template from batch dictionary.
src/alphafold3/model/features.py:863
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:1009
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:1102
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:1217
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:1326
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:1448
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:1807
Methodfrom_data_dict
Construct atom layout object from dictionary.
src/alphafold3/model/features.py:1881
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:2020
Methodfrom_data_dict
(cls, batch: BatchDict)
src/alphafold3/model/features.py:2172
Methodfrom_data_dict
Construct batch object from dictionary.
src/alphafold3/model/feat_batch.py:49
Methodfrom_defaults
Create an Atoms table with minimal user inputs.
src/alphafold3/structure/structure_tables.py:137
Methodfrom_defaults
Create a Residues table with minimal user inputs.
src/alphafold3/structure/structure_tables.py:235
Methodfrom_defaults
Create a Chains table with minimal user inputs.
src/alphafold3/structure/structure_tables.py:281
Methodfrom_dict
Constructs ProteinChain from the AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:311
Methodfrom_dict
Constructs RnaChain from the AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:579
Methodfrom_dict
Constructs DnaChain from the AlphaFold JSON dict.
src/alphafold3/common/folding_input.py:760
Methodfrom_inference_result
Returns a new instance based on a given inference result.
src/alphafold3/model/confidence_types.py:186
Methodfrom_inference_result
Returns a new instance based on a given inference result.
src/alphafold3/model/confidence_types.py:234
Methodfrom_json
Instantiates a AtomConfidence from a json string.
src/alphafold3/model/confidence_types.py:141
Methodfrom_json
Returns a new instance from a given json string.
src/alphafold3/model/confidence_types.py:205
Methodfrom_json
Returns a new instance from a given json string.
src/alphafold3/model/confidence_types.py:269
Functionfrom_mmcif
Construct a Structure from a mmCIF string. Args: mmcif_string: The string contents of an mmCIF file. name: Optional name for the structure.
src/alphafold3/structure/parsing.py:408
Methodfrom_mmcif
Constructs an instance of ChemicalComponentsData from an Mmcif object.
src/alphafold3/structure/chemical_components.py:153
Methodfrom_multiple_a3ms
Initializes the MSA from multiple A3M strings. Args: a3ms: A sequence of A3M strings representing individual MSAs produced by diffe
src/alphafold3/data/msa.py:165
Methodfrom_point_alignment
Constructs Rigid3Array by finding transform aligning points. This constructs the optimal Rigid Transform taking points_from to the arrangemen
src/alphafold3/jax/geometry/rigid_matrix_vector.py:181
Functionfrom_res_arrays
Returns Structure created from from arrays with a residue dimension. All unset fields are filled with defaults (e.g. 1.0 for occupancy) or unset/
src/alphafold3/structure/parsing.py:465
Functionfrom_sequences_and_bonds
Returns a minimal structure for the input sequences and bonds. The returned structure will have at least one atom per residue. If the residue has
src/alphafold3/structure/parsing.py:637
Functionfrom_string
(mmcif_string: str | bytes)
src/alphafold3/structure/mmcif.py:95
Methodfull_name
A full name of the hit.
src/alphafold3/data/templates.py:287
Methodget_assembly_info
(self, assembly_id: str)
src/alphafold3/structure/bioassemblies.py:225
Functionget_bond_atom_indices
Extracts the indices of the atoms that participate in bonds. Args: mmcif: The mmCIF object to process. model_id: The ID of the model that t
src/alphafold3/structure/mmcif.py:131
Functionget_chain_type_by_entity_id
Returns mapping from entity ID to its type or polymer type if available. If the entity is in the _entity_poly table, returns its polymer chain type
src/alphafold3/structure/mmcif.py:184
Functionget_dtype
Returns Dtype for given instance of dataclass.
src/alphafold3/jax/geometry/struct_of_array.py:63
Functionget_experimental_method
(mmcif: Mmcif)
src/alphafold3/structure/mmcif.py:221
Functionget_identifiers
Computes extra MSA features from the description.
src/alphafold3/data/msa_identifiers.py:88
Functionget_internal_to_author_chain_id_map
Returns a mapping from internal chain ID to the author chain ID. Note that this is not a bijection. One author chain ID can map to multiple inter
src/alphafold3/structure/mmcif.py:207
Functionget_iptm_xchain
Cross chain aggregate ipTM.
src/alphafold3/model/confidences.py:563
Functionget_item
(instance, key)
src/alphafold3/jax/geometry/struct_of_array.py:27
Functionget_len
Returns length for given instance of dataclass.
src/alphafold3/jax/geometry/struct_of_array.py:53
Functionget_ligand_ligand_bonds
Return ligand-ligand inter-residue bonds. Args: struct: Structure object to extract bonds from. only_glycan_ligands: Whether to only includ
src/alphafold3/model/pipeline/inter_chain_bonds.py:135
Functionget_model_haiku_params
Get the Haiku parameters from a model name.
src/alphafold3/model/params.py:212
Functionget_msa
Computes the MSA for a given query sequence. Args: target_sequence: The target amino-acid sequence. run_config: MSA run configuration.
src/alphafold3/data/msa.py:331
Functionget_or_infer_type_symbol
Returns the type symbol (element) for all of the atoms. Args: mmcif: A parsed mmCIF file in the Mmcif format. ccd: The chemical component d
src/alphafold3/structure/mmcif.py:163
Functionget_polymer_ligand_and_ligand_ligand_bonds
Return polymer-ligand & ligand-ligand inter-residue bonds. Args: struct: Structure object to extract bonds from. only_glycan_ligands: Wheth
src/alphafold3/model/pipeline/inter_chain_bonds.py:60
Functionget_polymer_ligand_bonds
Return polymer-ligand interchain bonds. Args: struct: Structure object to extract bonds from. only_glycan_ligands: Whether to only include
src/alphafold3/model/pipeline/inter_chain_bonds.py:171
Functionget_profile_features
Returns the MSA profile and deletion_mean features.
src/alphafold3/model/data3.py:35
Functionget_random_conformer
Stochastic conformer search method using V3 ETK.
src/alphafold3/data/tools/rdkit_utils.py:534
Functionget_ranking_score
( ptm: float, iptm: float, fraction_disordered_: float, has_clash_: bool )
src/alphafold3/model/confidences.py:194
Functionget_release_date
Returns the oldest revision date.
src/alphafold3/structure/mmcif.py:226
Functionget_res_atom_names
Gets the names of the atoms in a given CCD residue.
src/alphafold3/structure/chemical_components.py:549
Functionget_resolution
Returns the resolution of the structure. More than one resolution can be reported in an mmCIF. This function returns the first one (in the order
src/alphafold3/structure/mmcif.py:235
Functionget_resource_dir
(path: str | os.PathLike[str])
src/alphafold3/common/resources.py:79
Methodget_row_by_key
( self, key: int, column_name_map: Mapping[str, str] | None = None, )
src/alphafold3/structure/table.py:49
Methodget_row_by_key
( self, key: int, column_name_map: Mapping[str, str] | None = None, )
src/alphafold3/structure/table.py:449
Functionget_shape
Returns Shape for given instance of dataclass.
src/alphafold3/jax/geometry/struct_of_array.py:42
Functionget_sharded_paths
Returns a list of file path or None if the input is not a shard spec. Args: shard_spec: the specifications of the shard, e.g. /path/to/file@20.
src/alphafold3/data/tools/shards.py:86
Methodget_stoichiometry
Returns the structure's stoichiometry using chain_res_name_sequence. Note that everything is considered (protein, RNA, DNA, ligands) except for
src/alphafold3/structure/structure.py:1682
Methodget_tmscore_adjusted_pae
(num_interface_tokens, bin_centers, pae_probs)
src/alphafold3/model/network/confidence_head.py:289
Methodget_value_by_index
( self, column_name: str, index: int )
src/alphafold3/structure/structure_tables.py:168
Methodgroup_by_chain
Returns a Structure where all fields are per-chain. e.g. chains = struc.group_by_chain['chain_id'] Returns: A new Structure with one a
src/alphafold3/structure/structure.py:958
Methodgroup_by_residue
Returns a Structure with one atom per residue. e.g. restypes = struc.group_by_residue['res_id'] Returns: A new Structure with one atom
src/alphafold3/structure/structure.py:942
Functionguess_deprotonation
Convenience function to create a plausible deprotonation field. Assumes a pH of 7 and always prefers HE2 over HD1 for HIS. Args: residues: a
src/alphafold3/model/atom_layout/atom_layout.py:436
Functionguess_polymer_type
Guess the polymer type (protein/rna/dna/other) based on the residues. The polymer type is guessed by first checking for any of the standard prote
src/alphafold3/constants/mmcif_names.py:139
Functionhaiku_linear_get_params
Get parameters for linear layer. Parameters will be at least float32 or higher precision. Arguments: inputs: The input to the Linear layer.
src/alphafold3/model/components/haiku_modules.py:124
Functionhas_clash
Determine whether the structure has at least one clashing chain. A clashing chain is defined as having greater than 100 polymer atoms within 1.1A
src/alphafold3/model/confidences.py:140
← previousnext →601–700 of 889, ranked by callers