| 1 | ## How to use BEAST checkpointing |
| 2 | |
| 3 | To write a state file to disk at a given iteration number, add the following program argument: **'-save_at iteration#'** (without the quotation marks). |
| 4 | This will create a time-stamped file 'beast_state_xxxx.xx.xx' containing all the necessary information. |
| 5 | |
| 6 | To write a state file to disk every x iterations, add the following program argument: **'-save_every x'** (without the quotation marks). |
| 7 | If no file name has been provided and there is at least 1 second time difference between the previous attempt to write to file, a new time-stamped file will be created every time the information needs to be written to disk. |
| 8 | |
| 9 | To write the state file to a specific file name, add the following program argument: **'-save_state filename'** (without the quotation marks). |
| 10 | Every time a new state needs to be stored, the file's content will be overwritten. |
| 11 | |
| 12 | To load a BEAST state file from disk and resume a previous analysis, add the following program argument: **-'load_state filename'** (without the quotation marks). |
| 13 |