Views
No views yet

experiments/GB.StructureTokenizer in Model Generator for more details.encode.yaml, the default decode.yaml configuration file is already set up to decode the encoded tokens. You don't need to change anything in the configuration file. You can directly run the decoding task using the following command:CUDA_VISIBLE_DEVICES=0 mgen predict --config=experiments/GB.StructureTokenizer/decode.yaml.pt format and a corresponding codebook file (codebook.pt). For ease of use, we recommend preparing the structure tokens in TSV format and then converting them to .pt format using the provided script.experiments/GB.StructureTokenizer/decode_example_input.tsv):uid: A unique identifier for the protein sequence.sequences: The amino acid sequence (e.g., "LRTPTT").predictions: The structure tokens to be decoded, provided as a list (e.g., "[164, 287, 119, ...]"). The list length must match the length of the amino acid sequence..pt format using the following command:python experiments/GB.StructureTokenizer/struct_token_format_conversion.py your_tsv_file.tsv your_output_pt_file.ptcodebook.pt) that contains the embedding of each token. The codebook could be extracted using this command:python experiments/GB.StructureTokenizer/extract_structure_tokenizer_codebook.py --output_path your_output_codebook.ptstruct_tokens_path and codebook_path in the decode.yaml configuration file to point to your structure tokens and codebook file. Alternatively, you can override these parameters when running the command:1CUDA_VISIBLE_DEVICES=0 mgen predict --config experiments/GB.StructureTokenizer/decode.yaml \
2 --data.init_args.config.struct_tokens_datasets_configs.name="your_dataset_name" \
3 --data.init_args.config.struct_tokens_datasets_configs.struct_tokens_path="your_structure_tokens.pt" \
4 --data.init_args.config.struct_tokens_datasets_configs.codebook_path="your_codebook.pt" \
5 --trainer.callbacks.dict_kwargs.dirpath="your_output_dir".pt format.codebook.pt) that contains the embedding of each token.logs/protstruct_decode/.struct_token_format_conversion.py script to include the residue index in the TSV file (we may support this feature in the future), or you could provide the .pt file directly with the desired residue index.@inproceedings{zhang_balancing_2024,
title = {Balancing Locality and Reconstruction in Protein Structure Tokenizer},
url = {https://www.biorxiv.org/content/10.1101/2024.12.02.626366v2},
doi = {10.1101/2024.12.02.626366},
publisher = {bioRxiv},
author = {Zhang, Jiayou and Meynard-Piganeau, Barthelemy and Gong, James and Cheng, Xingyi and Luo, Yingtao and Ly, Hugo and Song, Le and Xing, Eric},
year = {2024},
booktitle={NeurIPS 2024 Workshop on Machine Learning in Structural Biology (MLSB)},
}