MCPcopy Create free account

hub / github.com/apple/ml-simplefold / functions

Functions396 in github.com/apple/ml-simplefold

↓ 1 callersFunctionapply_rotary_emb
(xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor)
src/simplefold/model/torch/pos_embed.py:145
↓ 1 callersFunctionapply_rotary_emb
(xq: mx.array, xk: mx.array, freqs_cis: mx.array)
src/simplefold/model/mlx/pos_embed.py:162
↓ 1 callersMethodapply_sparse_mask
(attn_weights, tgt_len: int, src_len: int, bsz: int)
src/simplefold/model/mlx/esm_multihead_attention.py:223
↓ 1 callersFunctionbatch_encode_sequences
( sequences: T.Sequence[str], residue_index_offset: T.Optional[int] = 512, chain_linker: T.Optiona
src/simplefold/utils/esm_utils.py:109
↓ 1 callersMethodbatch_to_mlx
(self, batch)
src/simplefold/processor/protein_processor.py:115
↓ 1 callersFunctionbuild_tensorboard
(summary_name)
src/simplefold/utils/instantiators.py:105
↓ 1 callersFunctioncenter_random_augmentation
Center and randomly augment the input coordinates. Parameters ---------- atom_coords : Tensor The atom coordinates. atom_mask
src/simplefold/utils/mlx_utils.py:10
↓ 1 callersFunctioncheck_fasta_inputs
(data: Path)
src/simplefold/utils/fasta_utils.py:89
↓ 1 callersFunctioncollate
Collate the data. Parameters ---------- data : list[dict[str, Tensor]] The data to collate. Returns ------- dict[str
src/simplefold/utils/datamodule_utils.py:113
↓ 1 callersFunctioncompute_3d_conformer
Generate 3D coordinates using EKTDG method. Taken from `pdbeccdutils.core.component.Component`. Parameters ---------- mol: Mol
src/simplefold/boltz_data_pipeline/parse/schema.py:112
↓ 1 callersFunctioncompute_aggregated_metric
Compute the metric from the logits. Parameters ---------- logits : torch.Tensor The logits of the metric end : float
src/simplefold/model/torch/confidence_module.py:10
↓ 1 callersFunctioncompute_aggregated_metric
Compute the metric from the logits. Parameters ---------- logits : torch.Tensor The logits of the metric end : float
src/simplefold/model/mlx/confidence_module.py:10
↓ 1 callersFunctioncompute_axial_cis
( ts: torch.Tensor, in_dim: int, dim: int, theta: float = 100.0, )
src/simplefold/model/torch/pos_embed.py:123
↓ 1 callersFunctioncompute_axial_cis
( ts, in_dim: int, dim: int, theta: float = 100.0, )
src/simplefold/model/mlx/pos_embed.py:122
↓ 1 callersMethodcompute_d_alpha_alpha_ratio_t
Compute the ratio between d_alpha and alpha
src/simplefold/model/flow.py:27
↓ 1 callersMethodcompute_drift
We always output sde according to score parametrization;
src/simplefold/model/flow.py:55
↓ 1 callersFunctioncompute_interfaces
Compute the chain-chain interfaces from a gemmi structure. Parameters ---------- atom_data : List[tuple] The atom data. chain
src/simplefold/utils/mmcif_utils.py:329
↓ 1 callersFunctioncompute_language_model_representations
Adds bos/eos tokens for the language model, since the structure module doesn't use these.
src/simplefold/utils/esm_utils.py:185
↓ 1 callersFunctioncompute_metrics
(preds, evals, name)
src/simplefold/evaluation/analyze_folding.py:108
↓ 1 callersMethodcompute_mu_t
Compute the mean of time-dependent density p_t
src/simplefold/model/flow.py:32
↓ 1 callersMethodcompute_ut
Compute the vector field corresponding to p_t
src/simplefold/model/flow.py:43
↓ 1 callersMethodcompute_xt
Sample xt from time-dependent density p_t; rng is required
src/simplefold/model/flow.py:38
↓ 1 callersFunctionconvert_atom_name
Convert an atom name to a standard format. Parameters ---------- name : str The atom name. Returns ------- tuple[int
src/simplefold/utils/mmcif_utils.py:190
↓ 1 callersFunctionconvert_atom_name
Convert an atom name to a standard format. Parameters ---------- name : str The atom name. Returns ------- Tuple[int
src/simplefold/boltz_data_pipeline/parse/schema.py:92
↓ 1 callersFunctionconvert_atom_name
Convert an atom name to a standard format. Parameters ---------- name : str The atom name. Returns ------- Tuple[int
src/simplefold/boltz_data_pipeline/feature/symmetry.py:23
↓ 1 callersMethodcreate_embedding_fn
(self)
src/simplefold/model/torch/pos_embed.py:68
↓ 1 callersMethodcreate_embedding_fn
(self)
src/simplefold/model/mlx/pos_embed.py:71
↓ 1 callersMethodcreate_local_attn_bias
Create local attention bias based on query window n_queries and kv window n_keys. Args: n (int): the length of quiries
src/simplefold/model/torch/architecture.py:125
↓ 1 callersMethodcreate_local_attn_bias
Create local attention bias based on query window n_queries and kv window n_keys. Args: n (int): the length of quiries
src/simplefold/model/mlx/architecture.py:152
↓ 1 callersMethodcrop
Crop the data to a maximum number of tokens. Parameters ---------- data : Tokenized The tokenized data. m
src/simplefold/boltz_data_pipeline/crop/cropper.py:21
↓ 1 callersMethoddiffusion_coefficient
(self, t, eps=0.01)
src/simplefold/model/torch/sampler.py:40
↓ 1 callersMethoddiffusion_coefficient
(self, t, eps=0.01)
src/simplefold/model/mlx/sampler.py:46
↓ 1 callersFunctionencode_sequence
( seq: str, residue_index_offset: T.Optional[int] = 512, chain_linker: T.Optional[str] = "G" * 25,
src/simplefold/utils/esm_utils.py:66
↓ 1 callersMethodeuler_maruyama_step
( self, model_fn, flow, y, t, t_next, batch, )
src/simplefold/model/torch/sampler.py:48
↓ 1 callersMethodeuler_maruyama_step
( self, model_fn, flow, y, t, t_next, batch, )
src/simplefold/model/mlx/sampler.py:53
↓ 1 callersFunctionevaluate_structure
Evaluate the structure.
src/simplefold/evaluation/analyze_folding.py:39
↓ 1 callersFunctionexec_subproc
Execute the external docking-related command.
src/simplefold/evaluation/two_state_utils/tm_ens.py:11
↓ 1 callersFunctionexists
(v)
src/simplefold/utils/boltz_utils.py:32
↓ 1 callersFunctionexists
returns whether val is not none
src/simplefold/model/mlx/layers.py:128
↓ 1 callersFunctionfetch
Fetch the PDB files.
src/simplefold/process_mmcif.py:75
↓ 1 callersFunctionfinalize
Run post-processing in main thread. Parameters ---------- out_dir : Path The output directory.
src/simplefold/process_mmcif.py:96
↓ 1 callersFunctionfinalize
(outdir: Path)
src/simplefold/process_structure.py:80
↓ 1 callersMethodflow_matching_train_step
(self, batch, batch_idx)
src/simplefold/model/simplefold.py:379
↓ 1 callersFunctiongenerate_structure
( args, batch, sampler, flow, processor, model, plddt_latent_module, plddt_out_module, device )
src/simplefold/inference.py:234
↓ 1 callersMethodget_1d_pos_embed
https://github.com/facebookresearch/DiT/blob/main/models.py#L303
src/simplefold/model/torch/pos_embed.py:30
↓ 1 callersMethodget_1d_pos_embed
https://github.com/facebookresearch/DiT/blob/main/models.py#L303
src/simplefold/model/mlx/pos_embed.py:33
↓ 1 callersFunctionget_amino_acids_symmetries
(cropped)
src/simplefold/boltz_data_pipeline/feature/symmetry.py:510
↓ 1 callersFunctionget_argparser
()
src/simplefold/evaluation/analyze_two_state.py:30
↓ 1 callersFunctionget_chain_symmetries
(cropped, max_n_symmetries=100)
src/simplefold/boltz_data_pipeline/feature/symmetry.py:413
↓ 1 callersFunctionget_dates
Get the deposited, released, and last revision dates. Parameters ---------- block : gemmi.cif.Block The block to process. Re
src/simplefold/utils/mmcif_utils.py:112
↓ 1 callersMethodget_device
(self)
src/simplefold/wrapper.py:71
↓ 1 callersFunctionget_ligand_symmetries
(cropped, symmetries)
src/simplefold/boltz_data_pipeline/feature/symmetry.py:530
↓ 1 callersMethodget_lr
(self)
src/simplefold/utils/lr_scheduler.py:38
↓ 1 callersFunctionget_method
Get the method from a gemmi structure. Parameters ---------- block : gemmi.cif.Block The block to process. Returns -----
src/simplefold/utils/mmcif_utils.py:167
↓ 1 callersFunctionget_resolution
Get the resolution from a gemmi structure. Parameters ---------- block : gemmi.cif.Block The block to process. Returns -
src/simplefold/utils/mmcif_utils.py:141
↓ 1 callersMethodinit_lr
(self)
src/simplefold/utils/lr_scheduler.py:32
↓ 1 callersFunctioninitialize_esm_model
(args, device)
src/simplefold/inference.py:182
↓ 1 callersMethodinitialize_esm_model
(self)
src/simplefold/wrapper.py:239
↓ 1 callersFunctioninitialize_folding_model
(args)
src/simplefold/inference.py:77
↓ 1 callersFunctioninitialize_others
(args, device)
src/simplefold/inference.py:203
↓ 1 callersMethodinitialize_others
(self)
src/simplefold/wrapper.py:264
↓ 1 callersFunctioninitialize_plddt_module
(args, device)
src/simplefold/inference.py:119
↓ 1 callersMethodinitialize_weights
(self)
src/simplefold/model/torch/layers.py:165
↓ 1 callersMethodinitialize_weights
(self)
src/simplefold/model/torch/layers.py:248
↓ 1 callersMethodinitialize_weights
(self)
src/simplefold/model/torch/blocks.py:44
↓ 1 callersMethodinitialize_weights
(self)
src/simplefold/model/mlx/layers.py:177
↓ 1 callersFunctioninstantiate_trainer
(trainer_cfg: DictConfig, callbacks, logger, plugins)
src/simplefold/utils/instantiators.py:26
↓ 1 callersFunctionlddt_dist
(dmat_predicted, dmat_true, mask, cutoff=15.0, per_atom=False)
src/simplefold/model/simplefold.py:43
↓ 1 callersFunctionload_input
(record: Record, target_dir: Path)
src/simplefold/process_structure.py:30
↓ 1 callersFunctionload_stereo_chemical_props
Load stereo_chemical_props.txt into a nice structure. Load literature values for bond lengths and bond angles and translate bond angles into
src/simplefold/utils/residue_constants.py:445
↓ 1 callersFunctionlogit_normal_sample
(n=1, m=0.0, s=1.0)
src/simplefold/model/simplefold.py:36
↓ 1 callersFunctionlogspace
(start, end, steps, base=10.0, dtype=mx.float32)
src/simplefold/model/mlx/sampler.py:12
↓ 1 callersMethodloss_masking
(self, loss, atom_mask)
src/simplefold/model/simplefold.py:143
↓ 1 callersFunctionmain
(samples_dir, output_dir, split_csv, targets_dir, TMscore_bin, task='apo', nsample=5)
src/simplefold/evaluation/analyze_two_state.py:321
↓ 1 callersFunctionmasked_fill_mlx
(x, mask, value)
src/simplefold/model/mlx/esm_multihead_attention.py:18
↓ 1 callersFunctionmasked_fill_mlx
(x, mask, value)
src/simplefold/model/mlx/esm_network.py:22
↓ 1 callersFunctionpad_to_max
Pad the data in all dimensions to the maximum found. Parameters ---------- data : List[Tensor] List of tensors to pad. value
src/simplefold/boltz_data_pipeline/feature/pad.py:43
↓ 1 callersFunctionparse
Process a structure. Parameters ---------- data : PDB The raw input data. resource: Resource The shared resource.
src/simplefold/process_mmcif.py:126
↓ 1 callersFunctionparse_ccd_residue
Parse an MMCIF ligand. First tries to get the SMILES string from the RCSB. Then, tries to infer atom ordering using RDKit. Parameters
src/simplefold/utils/mmcif_utils.py:381
↓ 1 callersFunctionparse_connection
Parse (covalent) connection from a gemmi Connection. Parameters ---------- connections : gemmi.ConnectionList The connection list
src/simplefold/utils/mmcif_utils.py:762
↓ 1 callersFunctionparse_fasta
Parse a fasta file. The name of the fasta file is used as the name of this job. We rely on the fasta record id to determine the entity type.
src/simplefold/utils/fasta_utils.py:36
↓ 1 callersFunctionparse_mmcif
Parse a structure in MMCIF format. Parameters ---------- mmcif_file : PathLike Path to the MMCIF file. components: dict[str,
src/simplefold/utils/mmcif_utils.py:837
↓ 1 callersFunctionparse_polymer
Process a gemmi Polymer into a chain object. Performs alignment of the full sequence to the polymer residues. Loads coordinates and masks for
src/simplefold/utils/mmcif_utils.py:558
↓ 1 callersFunctionparse_polymer
Process a sequence into a chain object. Performs alignment of the full sequence to the polymer residues. Loads coordinates and masks for the
src/simplefold/boltz_data_pipeline/parse/schema.py:346
↓ 1 callersFunctionparse_tmscore_output
Parse TM-score output. Args: out: str in utf-8 encoding from stdout of TM-score.
src/simplefold/evaluation/two_state_utils/tm_ens.py:28
↓ 1 callersFunctionpick_chain_token
Pick a random token from a chain. Parameters ---------- tokens : np.ndarray The token data. chain_id : int The chain
src/simplefold/boltz_data_pipeline/crop/boltz.py:42
↓ 1 callersFunctionpick_protein_token
Pick protein tokens from the data. Parameters ---------- tokens : np.ndarray The token data. Returns ------- np.ndar
src/simplefold/boltz_data_pipeline/crop/slice.py:20
↓ 1 callersMethodplddt_loss
Compute plddt loss. Parameters ---------- pred_lddt: torch.Tensor The plddt logits pred_atom_coords: torc
src/simplefold/model/simplefold.py:207
↓ 1 callersMethodplddt_train_step
(self, batch, batch_idx)
src/simplefold/model/simplefold.py:320
↓ 1 callersFunctionpolar
(a, b)
src/simplefold/model/mlx/pos_embed.py:148
↓ 1 callersMethodpredict_dataloader
Get the training dataloader. Returns ------- DataLoader The training dataloader.
src/simplefold/datasets/test_datamodule.py:185
↓ 1 callersFunctionpredict_structures_from_fastas
(args)
src/simplefold/inference.py:280
↓ 1 callersFunctionprint_config_tree
Prints the contents of a DictConfig as a tree structure using the Rich library. :param cfg: A DictConfig composed by Hydra. :param print_orde
src/simplefold/utils/utils.py:25
↓ 1 callersFunctionprocess
Run the data processing task.
src/simplefold/process_mmcif.py:236
↓ 1 callersFunctionprocess_atom_features
Get the atom features. Parameters ---------- data : Tokenized The tokenized data. max_atoms : int, optional The maxim
src/simplefold/boltz_data_pipeline/feature/featurizer.py:124
↓ 1 callersFunctionprocess_structure
Process a target. Parameters ---------- item : PDB The raw input data. resource: Resource The shared resource. ou
src/simplefold/process_mmcif.py:176
↓ 1 callersFunctionprocess_symmetry_features
Get the symmetry features. Parameters ---------- data : Tokenized The tokenized data. Returns ------- dict[str, Tens
src/simplefold/boltz_data_pipeline/feature/featurizer.py:359
↓ 1 callersFunctionprocess_token_features
Get the token features. Parameters ---------- data : Tokenized The tokenized data. max_tokens : int The maximum numbe
src/simplefold/boltz_data_pipeline/feature/featurizer.py:44
↓ 1 callersFunctionquaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as ten
src/simplefold/utils/boltz_utils.py:134
↓ 1 callersFunctionrandom_quaternions
Generate random quaternions representing rotations, i.e. versors with nonnegative real part. Args: n: Number of quaternions in a
src/simplefold/utils/boltz_utils.py:166
← previousnext →101–200 of 396, ranked by callers