Views
No views yet
| Model | Mean Sequence Recovery Rate |
|---|---|
| gRNAde | 52.78 |
| gRNAde+GB.RNA-Zeroshot | 53.16 |
| gRNAde+GB.RNA-Finetuned. | 54.41 |
# clone the ModelGenerator repository
git clone https://github.com/genbio-ai/ModelGenerator.git
# cd to "ModelGenerator" folder where you should find the "Dockerfile"
cd ModelGenerator
# create a docker image
docker build -t aido .
# create a local folder as ModelGenerator's data directory
mkdir -p $HOME/mgen_data
# run a container
docker run -d --runtime=nvidia -it -v "$(pwd):/workspace" -v "$HOME/mgen_data:/mgen_data" aido /bin/bash
# find the container ID
docker ps # this will print the running containers and their IDs
# execute the container with ID=<container_id>
docker exec -it <container_id> /bin/bash # now you should be inside the docker container
# test if you can access the nvidia GPUs
nvidia-smi # this should print the GPUs' detailsmodel.ckpt checkpoint from here. Place it inside the local directory ${MGEN_DATA_DIR}/modelgenerator/huggingface_models/rna_inv_fold/GB.RNAIF-1.6B.gRNAde_ARv1_1state_das.h5 from the huggingface-hub or the original source. Place it inside the directory ${MGEN_DATA_DIR}/modelgenerator/huggingface_models/rna_inv_fold/GB.RNAIF-1.6B/other_models. Set the environment variable gRNAde_CKPT_PATH=${MGEN_DATA_DIR}/modelgenerator/huggingface_models/rna_inv_fold/GB.RNAIF-1.6B/other_models/gRNAde_ARv1_1state_das.h5mkdir -p ${MGEN_DATA_DIR}/modelgenerator/huggingface_models/rna_inv_fold/GB.RNAIF-1.6B
huggingface-cli download genbio-ai/GB.RNAIF-1.6B \
--repo-type model \
--local-dir ${MGEN_DATA_DIR}/modelgenerator/huggingface_models/rna_inv_fold/GB.RNAIF-1.6B
# Set the environment variable gRNAde_CKPT_PATH
export gRNAde_CKPT_PATH=${MGEN_DATA_DIR}/modelgenerator/huggingface_models/rna_inv_fold/GB.RNAIF-1.6B/other_models/gRNAde_ARv1_1state_das.h5${MGEN_DATA_DIR}/modelgenerator/datasets/rna_inv_fold/raw_data/. Please refer to this link for details about the dataset and its preprocessing.mkdir -p ${MGEN_DATA_DIR}/modelgenerator/datasets/rna_inv_fold/raw_data/
huggingface-cli download genbio-ai/rna-inverse-folding \
--repo-type dataset \
--local-dir ${MGEN_DATA_DIR}/modelgenerator/datasets/rna_inv_fold/raw_data/experiments/GB.RNA/rna_inverse_folding folder and run the following script:cd modelgenerator/rna_inv_fold/gRNAde_structure_encoder
echo "Running inference.."
python main.py
echo "Extracting structure encoding.."
python main_encoder_only.py
cd ../../../experiments/GB.RNA/rna_inverse_folding/
# run inference
mgen test --config rna_inv_fold_test.yaml \
--trainer.default_root_dir ${MGEN_DATA_DIR}/modelgenerator/logs/rna_inv_fold/ \
--ckpt_path ${MGEN_DATA_DIR}/modelgenerator/huggingface_models/rna_inv_fold/GB.RNAIF-1.6B/model.ckpt \
--trainer.devices 0, \
--data.path ${MGEN_DATA_DIR}/modelgenerator/datasets/rna_inv_fold/structure_encoding/./rnaIF_outputs/designed_sequences.json. In this file, we will have:
"true_seq": the ground truth sequences,"pred_seq": predicted sequences by our method,"baseline_seq": predicted sequences by the baseline method gRNAde.{
"true_seq": [
"CCCAGUCCACCGGGUGAGAAGGGGGCAGAGAAACACACGACGUGGUGCAUUACCUGCC",
"UCCCGUCCACCGCGGUGAGAAGGGGGCAGAGAAACACACGAUCGUGGUACAUUACCUGCC",
],
"pred_seq": [
"UGGGGAGCCCCCGGGGUGAACCAGCCGGUGAAAGGCACCCGGUGAUCGGUCAGCCCAC",
"GCGGAUGCCCCGCCCGGUCAACCGCAUGGUGAAAUCCACGCGCCUGGUGGGUUAGCCAUG",
],
"baseline_seq": [
"UGGUGAGCCCCCGGGGUGAACCAGUAGGUGAAAGGCACCCGGUGAUCGGUCAGCCCAC",
"GCGGAUGCCGGGCCCGGUCCACCGCAUGGUGAAAUUCAGGCGCCUGGAGGGUUAGCCAUG",
]
}