Skip to content

Instantly share code, notes, and snippets.

@carlosp420
Last active October 12, 2015 04:08
Show Gist options
  • Save carlosp420/3968307 to your computer and use it in GitHub Desktop.
Save carlosp420/3968307 to your computer and use it in GitHub Desktop.
remove rate parameter of trees from BEAST runs
egrep '\[?\&?\w+\.rate=[0-9]{1,3}\.[0-9]{1,20}E?-?[0-9]{0,4},?\]?'
sed -e 's/\[\?&\?\w\+\.\w\+\.\?rate=[0-9]\{1,3\}\.[0-9]\{1,20\}E\?-\?[0-9]\{0,4\},\?\]\?//g' tree_file.tree > slim_tree_file.tree
sed -r 's/\[?&?\w+\.rate=[0-9]{1,3}\.[0-9]{1,20}E?-?[0-9]{0,4},?\]?//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment