Skip to content

Commit 3a72bf7

Browse files
committed
fix: use extended regular expressions for sed extraction
1 parent 4ef281d commit 3a72bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow/rules/phylogeny.smk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ rule extract_ml_tree_likelihoods:
366366
"../envs/grep.yaml"
367367
shell:
368368
'grep "ML tree search #" {input.log} | '
369-
"sed -e 's/^.*ML tree search #\([0-9]\+\), logLikelihood: \(-[0-9]\+\.[0-9]\+\)/\1\t\2/' | "
369+
r"sed -r -e 's/^.*ML tree search #([0-9]+), logLikelihood: (-[0-9]+.[0-9]+)$/\1\t\2/' | "
370370
"sort -n -k 1,1 "
371371
">control.GTHKY4+G+FO.max_4_missing.search.raxml.mlTrees.likelihoods.tsv "
372372
"2>{log}"

0 commit comments

Comments
 (0)