Generate a Docker run command for Alphafold with customizable parameters.
Type
Default
Details
input_dir
str
af_input
Directory for input data
output_dir
str
af_output
Directory for output results
model_dir
str
af_model
Directory containing models
db_dir
str
af_database
Directory for databases. If None, this option is ommitted
cache_dir
str
af_cache
Directory for JAX compilation cache. If None, this option is omitted
gpus
int
0
GPU devices to allocate (e.g., 0,1), if None, ommitted
docker_name
str
sky1ove/alphafold3
Docker image name
embedding
bool
False
If True, includes the –save_embeddings=true flag
skip_search
bool
False
if MSA is precalculated and present in json; If True, includes the –norun_data_pipeline flag
search_only
bool
False
search MSA only; If True, sets skip_search to False and includes the –norun_inference flag
json_path
NoneType
None
Path to JSON file. If not None, uses json_file instead of input_dir
Single json file:
# for single json file, we don't need to cache the modelget_docker_command(json_path=f"af_input/subfolder/data.json", output_dir="af_output/subfolder", cache_dir=False)