π Tutorialο
MOFSynth-ADV via Pythonο
If you want to run MOFSynth-ADV via Python, check the examples folder.
MOFSynth-ADV via CLIο
As stated in advantages, all you need is a .cif file!
If you donβt have one π example.cif
or try MOFSynth-ADV in a mini database π example_database.zip
First, create a directory for the tutorial:
$ mkdir mofsynth_tutorial $ cd mofsynth_tutorial
Next, create a directory to store the CIF files:
$ mkdir cifs_folder
The final structure should look like this
cifs_folder/
βββ example.cif
Before running the workflow, make sure your Slurm settings are configured correctly.
MOFSynth-ADV uses a global SLURM template file located at ~/.mofsynth/slurm_template.sh.
If you have never run the tool before, this file will be automatically created with default settings the first time you execute a job. You can edit this file to adjust the number of tasks, cpus, time limits, or partition to match your clusterβs requirements.
You are ready to run the tool using the following command. The default calculator is xtb and the default optimizer is lbfgs. You can also specify the fragmentation time limit using the --time flag:
$ mofsynth_adv exec cifs_folder --time 20
You can view available options (such as changing the calculator or optimizer) by running mofsynth_adv --help.
After the jobs are submitted to the queue, you can check the progress using the verify function:
$ mofsynth_adv verify cifs_folder
Once all linker optimizations have completed, compile the final results:
$ mofsynth_adv report cifs_folder
Hurray! A .csv file containing the final synthesizability evaluation results will be created in your working directory.