Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/google-deepmind/alphafold3
/ functions
Functions
889 in github.com/google-deepmind/alphafold3
⨍
Functions
889
◇
Types & classes
165
↳
Endpoints
1
↓ 1 callers
Function
_maybe_add_missing_scheme_tables
If missing, infers the scheme tables from the _atom_site table.
src/alphafold3/structure/parsing.py:1114
↓ 1 callers
Function
_maybe_mol_from_ccd
Creates a Mol object from CCD information if res_name is in the CCD.
src/alphafold3/model/scoring/chirality.py:127
↓ 1 callers
Function
_maybe_slice
(array, i, slice_size, axis)
src/alphafold3/model/components/mapping.py:40
↓ 1 callers
Function
_merge_jackhmmer_results
Merges Jackhmmer result protos into a single one.
src/alphafold3/data/tools/jackhmmer.py:285
↓ 1 callers
Function
_merge_nhmmer_results
Merges nhmmer result protos into a single one.
src/alphafold3/data/tools/nhmmer.py:304
↓ 1 callers
Function
_merged_a3m_tbl_iter
(a3m: str)
src/alphafold3/data/tools/nhmmer.py:327
↓ 1 callers
Function
_merged_a3m_tbl_iter
(a3m: str)
src/alphafold3/data/tools/jackhmmer.py:301
↓ 1 callers
Method
_model
Loads model parameters and returns a jitted model forward pass.
run_alphafold.py:435
↓ 1 callers
Function
_mol_from_ligand_struc
Creates a Mol object from a ligand structure and reference mol.
src/alphafold3/model/scoring/chirality.py:80
↓ 1 callers
Function
_output
(name: str)
run_alphafold_test.py:55
↓ 1 callers
Function
_pad_features_to_max
Pad a set of features to the maximum size amongst all chains. Args: feat_name: The feature name to pad. chains: A list of chains with assoc
src/alphafold3/model/merging_features.py:42
↓ 1 callers
Function
_padding_consistent_rng
Modify any element-wise random function to be consistent with padding. Normally if you take a function like jax.random.normal and generate an array
src/alphafold3/model/network/featurization.py:53
↓ 1 callers
Function
_parse_bonds
Returns the bonds table extracted from the mmCIF. Args: cif: The raw mmCIF to extract the bond information from. atom_key: A numpy array de
src/alphafold3/structure/parsing.py:211
↓ 1 callers
Function
_parse_hit_description
Parses the hmmsearch A3M sequence description line.
src/alphafold3/data/templates.py:764
↓ 1 callers
Function
_parse_hit_metadata
Parse hit metadata by parsing mmCIF from structure store.
src/alphafold3/data/templates.py:782
↓ 1 callers
Function
_parse_ideal_conformer
Builds a conformer containing the ideal coordinates from the CCD. Args: mol_cif: An mmcif object representing a molecule. Returns: An
src/alphafold3/data/tools/rdkit_utils.py:439
↓ 1 callers
Function
_parse_sequence_identifier
Gets species from an msa sequence identifier. The sequence identifier has the format specified by _UNIPROT_TREMBL_ENTRY_NAME_PATTERN or _UNIPROT_
src/alphafold3/data/msa_identifiers.py:59
↓ 1 callers
Function
_per_atom_conditioning
computes single and pair conditioning for all atoms in each token.
src/alphafold3/model/network/atom_cross_attention.py:43
↓ 1 callers
Function
_populate_atoms_in_mol
Populate the atoms of a Mol given atom features. Args: mol: Mol object. atom_names: Names of the atoms. atom_types: Types of the atoms.
src/alphafold3/data/tools/rdkit_utils.py:59
↓ 1 callers
Function
_populate_bonds_in_mol
Populate the bonds of a Mol given bond features. Args: mol: Mol object. atom_names: Names of atoms in the molecule. bond_begins: Names
src/alphafold3/data/tools/rdkit_utils.py:113
↓ 1 callers
Function
_read_record
Reads a record encoded by `_encode_record` from a byte stream.
src/alphafold3/model/params.py:62
↓ 1 callers
Function
_reduce_template_features
Reduces template features to max num templates and defined feature set.
src/alphafold3/model/features.py:886
↓ 1 callers
Method
_relative_encoding
Add relative position encodings.
src/alphafold3/model/network/evoformer.py:86
↓ 1 callers
Function
_remap_to_struc_seq
Remaps the query -> hit mapping to match the actual Structure sequence. Args: hit_seq: The hit sequence - a subsequence of the PDB seqres seque
src/alphafold3/data/template_realign.py:116
↓ 1 callers
Function
_remove_multi_bonds
Remove instances greedily.
src/alphafold3/model/pipeline/inter_chain_bonds.py:112
↓ 1 callers
Function
_residue_name_to_record_name
Returns record names (ATOM/HETATM) given residue names and polymer mask.
src/alphafold3/structure/structure_tables.py:43
↓ 1 callers
Function
_resolve_path
Resolves path for data dep paths, stringifies otherwise.
src/alphafold3/data/templates.py:957
↓ 1 callers
Method
_sample_diffusion
( self, batch: feat_batch.Batch, embeddings: dict[str, jnp.ndarray], *, sample_c
src/alphafold3/model/model.py:250
↓ 1 callers
Method
_seq_pair_embedding
Generated Pair embedding from sequence.
src/alphafold3/model/network/evoformer.py:103
↓ 1 callers
Function
_strip_optional
Transforms type annotations of the form `T | None` to `T`.
src/alphafold3/common/base_config.py:34
↓ 1 callers
Function
_to_a3m
(sequences: Sequence[str], name_prefix: str = 'sequence')
src/alphafold3/data/tools/hmmalign.py:30
↓ 1 callers
Method
_to_mmcif_header
(self)
src/alphafold3/structure/structure.py:2919
↓ 1 callers
Function
_unpack_filter_predicates
Unpacks filter kwargs into predicates for each table.
src/alphafold3/structure/structure.py:236
↓ 1 callers
Method
_validate_consistent_table_ordering
Validates that all tables have the same ordering.
src/alphafold3/structure/structure.py:377
↓ 1 callers
Method
_validate_table_foreign_keys
Validates that all foreign keys are present in the referred tables.
src/alphafold3/structure/structure.py:355
↓ 1 callers
Function
_validate_user_ccd_keys
Validates the keys of the user-defined CCD dictionary.
src/alphafold3/common/folding_input.py:920
↓ 1 callers
Method
add_bonds
Returns a structure with new bonds added. Args: bonded_atom_pairs: A sequence of pairs of atoms, with one pair per bond. Each eleme
src/alphafold3/structure/structure.py:1908
↓ 1 callers
Function
align
Align x to y considering only included_idxs. Args: x: NxD np array of coordinates. y: NxD np array of coordinates. x_indices: An np arr
src/alphafold3/model/scoring/alignment.py:61
↓ 1 callers
Method
align_sequences_to_profile
Aligns the sequences to profile and returns the alignment in A3M string. Uses hmmalign to align the sequences to the profile, then ouputs the
src/alphafold3/data/tools/hmmalign.py:122
↓ 1 callers
Method
apply_array
Returns a sliced table using a key (!= index) array or a boolean mask.
src/alphafold3/structure/table.py:136
↓ 1 callers
Function
apply_fun_to_slice
(slice_start, slice_size)
src/alphafold3/model/components/mapping.py:159
↓ 1 callers
Method
as_data_dict
(self)
src/alphafold3/model/features.py:700
↓ 1 callers
Method
as_dict
(self)
src/alphafold3/common/base_config.py:152
↓ 1 callers
Method
assertAllResiduesEqual
Walks all residues, making sure alll elements are equal.
src/alphafold3/structure/test_utils.py:47
↓ 1 callers
Method
assertAuthorNamingSchemeEqual
Walks naming scheme, making sure all elements are equal.
src/alphafold3/structure/test_utils.py:34
↓ 1 callers
Method
assertBioassemblyDataEqual
(self, data1, data2)
src/alphafold3/structure/test_utils.py:57
↓ 1 callers
Method
assertBondsEqual
Checks whether two Bonds objects are considered equal.
src/alphafold3/structure/test_utils.py:97
↓ 1 callers
Method
assertChemicalComponentsDataEqual
Checks whether two ChemicalComponentData objects are considered equal.
src/alphafold3/structure/test_utils.py:64
↓ 1 callers
Function
assign_atom_names_from_graph
Assigns atom names from the molecular graph. The atom name is stored as an atom property 'atom_name', accessible with atom.GetProp('atom_name').
src/alphafold3/data/tools/rdkit_utils.py:486
↓ 1 callers
Method
build_profile_from_sto
Builds a HHM for the aligned sequences given as an A3M string. Args: sto: A string with the aligned sequences in the Stockholm format.
src/alphafold3/data/tools/hmmbuild.py:61
↓ 1 callers
Function
calculate_bucket_size
Calculates the bucket size to pad the data to.
src/alphafold3/model/pipeline/pipeline.py:43
↓ 1 callers
Function
chain_pairwise_predicted_tm_scores
Compute predicted TM (pTM) between each pair of chains independently. Args: tm_adjusted_pae: [num_res, num_res] Relevant tensor for computing T
src/alphafold3/model/confidences.py:634
↓ 1 callers
Function
compute_gather_idxs
Produce gather indices and mask to convert from source layout to target.
src/alphafold3/model/atom_layout/atom_layout.py:893
↓ 1 callers
Method
copy_and_update_coords
Performs a shallow copy but with coordinates updated.
src/alphafold3/structure/structure.py:1257
↓ 1 callers
Function
create_target_feat_embedding
Create target feature embedding.
src/alphafold3/model/model.py:152
↓ 1 callers
Function
cross_attention
Multihead self-attention.
src/alphafold3/model/network/diffusion_transformer.py:272
↓ 1 callers
Function
deviations_from_coords
Returns the raw per-atom deviations used in RMSD computation.
src/alphafold3/model/scoring/alignment.py:105
↓ 1 callers
Function
dgram_from_positions
Compute distogram from amino acid positions. Args: positions: (num_res, 3) Position coordinates. config: Distogram bin configuration. Re
src/alphafold3/model/network/template_modules.py:46
↓ 1 callers
Method
drop_non_standard_atoms
Drops atoms that are not in the CCD for the given residue type.
src/alphafold3/structure/structure.py:1860
↓ 1 callers
Function
empty_template_features
Creates a fully masked out template features to allow padding to work. Args: num_res: The length of the target chain. Returns: Empty tem
src/alphafold3/model/data3.py:101
↓ 1 callers
Function
expand_sequence
Returns full residue names based on a sequence string. Args: sequence: A string representing the sequence. chain_type: The chain type of th
src/alphafold3/structure/parsing.py:600
↓ 1 callers
Method
extends
Checks whether this ChemCompEntry extends another one.
src/alphafold3/structure/chemical_components.py:116
↓ 1 callers
Method
extract_distogram
Extracts distogram from model outputs.
run_alphafold.py:498
↓ 1 callers
Method
find_chains_with_unknown_sequence
Returns a sequence of chain IDs that contain only unknown residues.
src/alphafold3/structure/structure.py:1893
↓ 1 callers
Function
find_ions_and_glycans_in_ccd
Finds glycans and ions in all version of CCD.
src/alphafold3/constants/converters/chemical_component_sets_gen.py:38
↓ 1 callers
Function
fix_non_standard_polymer_residues
Remaps residue names to the closest standard protein/RNA/DNA residue. If residue name is already a standard type, it is not altered. If a match c
src/alphafold3/structure/structure.py:176
↓ 1 callers
Method
from_alphafoldserver_fold_job
Constructs Input from an AlphaFoldServer fold job.
src/alphafold3/common/folding_input.py:1032
↓ 1 callers
Method
from_array
Construct Rot3Array Matrix from array of shape. [..., 3, 3].
src/alphafold3/jax/geometry/rotation_matrix.py:191
↓ 1 callers
Method
from_array
(cls, array)
src/alphafold3/jax/geometry/vector.py:126
↓ 1 callers
Method
from_char
(cls, char: str)
src/alphafold3/model/confidence_types.py:55
↓ 1 callers
Method
from_confidence_score
(cls, confidence: float)
src/alphafold3/model/confidence_types.py:82
↓ 1 callers
Method
from_hmmsearch_a3m
Creates Templates from a Hmmsearch A3M. Args: query_sequence: The polymer sequence of the target query. a3m: Results of Hmmsearch in
src/alphafold3/data/templates.py:495
↓ 1 callers
Method
from_multiple_msas
Initializes the MSA from multiple MSAs. Args: msas: A sequence of Msa objects representing individual MSAs produced by different to
src/alphafold3/data/msa.py:122
↓ 1 callers
Function
from_parsed_mmcif
Construct a Structure from a parsed mmCIF object. This function is called by `from_mmcif` but can be useful when an mmCIF has already been parsed
src/alphafold3/structure/parsing.py:316
↓ 1 callers
Method
from_seq_and_a3m
Creates templates from a run of hmmsearch tool against a custom a3m. Args: query_sequence: The polymer sequence of the target query.
src/alphafold3/data/templates.py:439
↓ 1 callers
Method
from_svd
Constructs Rot3Array from arbitrary array of shape [3 * 3] using SVD. The case when 'use_quat_formula' is False rephrases the problem of proj
src/alphafold3/jax/geometry/rotation_matrix.py:237
↓ 1 callers
Method
from_two_vectors
Construct Rot3Array from two Vectors. Rot3Array is constructed such that in the corresponding frame 'e0' lies on the positive x-Axis and 'e1'
src/alphafold3/jax/geometry/rotation_matrix.py:168
↓ 1 callers
Method
generate_bioassembly
Generates a biological assembly as a new `Structure`. When no assembly ID is provided this method produces a default assembly. If this struct
src/alphafold3/structure/structure.py:2863
↓ 1 callers
Function
get_all_atoms_in_entry
Get all possible atoms and bonds for this residue in a standard order. Args: ccd: The chemical components dictionary. res_name: Full CCD na
src/alphafold3/structure/chemical_components.py:501
↓ 1 callers
Function
get_bonded_atoms
Finds the res_name on the opposite end of the bond, if a bond exists. Args: polymer_ligand_bonds: Bond information for polymer-ligand pairs.
src/alphafold3/model/atom_layout/atom_layout.py:704
↓ 1 callers
Function
get_data_for_ccd_components
Returns `ChemicalComponentsData` for chemical components known by PDB.
src/alphafold3/structure/chemical_components.py:427
↓ 1 callers
Method
get_default_assembly_id
Gets a default assembly ID.
src/alphafold3/structure/bioassemblies.py:218
↓ 1 callers
Method
get_inference_result
Get the predicted structure, scalars, and arrays for inference. This function also computes any inference-time quantities, which are not a pa
src/alphafold3/model/model.py:356
↓ 1 callers
Function
get_link_drop_atoms
Returns set of atoms that are dropped when this res_name gets linked. Args: res_name: residue name, e.g. 'ARG' chain_type: chain_type, e.g.
src/alphafold3/model/atom_layout/atom_layout.py:644
↓ 1 callers
Function
get_msa_tool
Returns the requested MSA tool.
src/alphafold3/data/msa.py:296
↓ 1 callers
Function
get_polymer_features
Returns features for this polymer chain. Args: chain: Structure object representing the template. Must be already filtered to a single ch
src/alphafold3/data/templates.py:829
↓ 1 callers
Function
get_predicted_structure
Creates the predicted structure and ion preditions. Args: result: model output in a model specific layout batch: model input batch Retur
src/alphafold3/model/model.py:79
↓ 1 callers
Function
get_reference
Reference structure for residue from CCD or SMILES. Uses CCD entry if available, otherwise uses SMILES from chemical components data. Conformer g
src/alphafold3/model/features.py:1544
↓ 1 callers
Method
get_table
(self, table_name: str)
src/alphafold3/structure/structure.py:393
↓ 1 callers
Function
get_tables
Returns chain, residue, and atom tables from a parsed mmcif. Args: cif: A parsed mmcif.Mmcif. fix_mse_residues: See from_mmcif. fix_arg
src/alphafold3/structure/parsing.py:1310
↓ 1 callers
Method
get_value_by_key
Gets the value of a column at the row with specified key value.
src/alphafold3/structure/table.py:169
↓ 1 callers
Function
gumbel_argsort_sample_idx
Samples with replacement from a distribution given by 'logits'. This uses Gumbel trick to implement the sampling an efficient manner. For a distr
src/alphafold3/model/network/featurization.py:90
↓ 1 callers
Method
keep
Returns whether the hit should be kept. In addition to filtering on all of the provided parameters, this method also excludes hits with unres
src/alphafold3/data/templates.py:311
↓ 1 callers
Function
largest_evec
(m)
src/alphafold3/jax/geometry/rotation_matrix.py:78
↓ 1 callers
Function
load_fold_inputs_from_path
Loads multiple fold inputs from a JSON string.
src/alphafold3/common/folding_input.py:1512
↓ 1 callers
Function
main
(argv: Sequence[str])
src/alphafold3/constants/converters/ccd_pickle_gen.py:31
↓ 1 callers
Function
main
(argv: Sequence[str])
src/alphafold3/constants/converters/chemical_component_sets_gen.py:70
↓ 1 callers
Function
make_backbone_rigid
Make backbone Rigid3Array and mask. Args: positions: (num_res, num_atoms) of atom positions as Vec3Array. mask: (num_res, num_atoms) for at
src/alphafold3/model/network/template_modules.py:76
↓ 1 callers
Method
make_chains_table
Returns the Structure chains table.
src/alphafold3/structure/parsing.py:952
↓ 1 callers
Function
make_matrix_svd_factors
Generates factors for converting 3x3 matrix to symmetric 4x4 matrix.
src/alphafold3/jax/geometry/rotation_matrix.py:41
← previous
next →
201–300 of 889, ranked by callers