Skip to content

Commit

Permalink
fix: use extended regular expressions for sed extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaehnemann committed Jan 3, 2025
1 parent 4ef281d commit 3a72bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/rules/phylogeny.smk
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ rule extract_ml_tree_likelihoods:
"../envs/grep.yaml"
shell:
'grep "ML tree search #" {input.log} | '
"sed -e 's/^.*ML tree search #\([0-9]\+\), logLikelihood: \(-[0-9]\+\.[0-9]\+\)/\1\t\2/' | "
r"sed -r -e 's/^.*ML tree search #([0-9]+), logLikelihood: (-[0-9]+.[0-9]+)$/\1\t\2/' | "
"sort -n -k 1,1 "
">control.GTHKY4+G+FO.max_4_missing.search.raxml.mlTrees.likelihoods.tsv "
"2>{log}"
Expand Down

0 comments on commit 3a72bf7

Please sign in to comment.