Skip to content

Commit f466e50

Browse files
y3tsengy3tseng
authored andcommitted
fixed bug on iter mode (iqtree)
1 parent 47bdaab commit f466e50

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

workflow/config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ matrix: ""
3535

3636
# Iterative Mode
3737
mask_gappy: 0.995 # Minimum proportion of gappy sites that would be mask before proceed to tree inference step
38+
39+
40+
# IQ-TREE Model Selection
41+
# Automatically determine the best model without specifying one, though this may take some time.
42+
# If you would like to speed up the process, please specify a model (e.g., "-m GTR").
43+
# See "https://iqtree.github.io/doc/Substitution-Models" for more details on available models.
44+
iqtree_model: ""

workflow/rules/iqtree.smk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ rule iqtree:
55
params:
66
iqtree_exe=config["iqtree"],
77
temp=config["work_dir"],
8-
model="",
8+
model=config["iqtree_model"],
99
threshold=config["mask_gappy"],
1010
tempFile=config["work_dir"]+"/msa.mask.fa"
1111
threads: config["num_threads"]
1212
shell:
1313
'''
1414
python3 scripts/reduceLen.py {input.msa} {params.tempFile} {params.threshold}
1515
{params.iqtree_exe} -s {params.tempFile} {params.model} --threads-max {threads}
16-
mv {params.temp}/msa_iter1.mask.fa.treefile {output}
17-
rm {params.temp}/msa_iter1.mask.fa.*
16+
mv {params.temp}/msa.mask.fa.treefile {output}
17+
rm {params.temp}/msa.mask.fa.*
1818
rm {params.tempFile}
1919
'''

0 commit comments

Comments
 (0)