Skip to content

Instantly share code, notes, and snippets.

@justincbagley
Created April 22, 2020 19:22
Show Gist options
  • Save justincbagley/39bd7a0917d4b89b32265197557b291f to your computer and use it in GitHub Desktop.
Save justincbagley/39bd7a0917d4b89b32265197557b291f to your computer and use it in GitHub Desktop.
clean_raxml function for cleaning RAxML run directories

For those interested in running RAxML for phylogenetic inference using maximum-likelihood, here is a little function for cleaning up (within a RAxML run directory) after a failed RAxML run. Just add the following function to your ~/.bash_profile (on Mac) or ~/.bashrc (on Linux supercomputer) and do source ~/.bash_profile (or simliar) to have it on hand from the cli.

## CLEAN RAXML RUN DIR (TO CLEAN UP AFTER FAILED RUNS, BEFORE RESUBMITTING TO QUEUE)

clean_raxml () {
        rm ./*.txt; rm ./*.reduced; rm ./RAxML_info* ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment