mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-27 04:00:25 +08:00
Update trees.py
This commit is contained in:
parent
d01086e017
commit
9e4d605bff
@ -42,12 +42,20 @@ def run(params):
|
||||
tax_iqtree_outdir = params.output + '/Output/Intermediate/IQTree/' + file.split('.')[0].split('_preguidance')[0]
|
||||
os.mkdir(tax_iqtree_outdir)
|
||||
|
||||
#Run IQ-Tree
|
||||
#Examples on how to run IQ-Tree
|
||||
#Comment on the lines that do not fit your system
|
||||
#Run IQ-Tree on the Smith College grid
|
||||
if params.tree_method == 'iqtree':
|
||||
os.system('iqtree2 -s ' + guidance_path + '/' + file + ' -m LG+G -T 10 --prefix ' + tax_iqtree_outdir + '/' + file.split('.')[0].split('_preguidance')[0] + '.IQTree')
|
||||
elif params.tree_method == 'iqtree_fast':
|
||||
os.system('iqtree2 -s ' + guidance_path + '/' + file + ' -m LG+G -T 10 --fast --prefix ' + tax_iqtree_outdir + '/' + file.split('.')[0].split('_preguidance')[0] + '.IQTree')
|
||||
|
||||
#Run IQ-Tree in HPC Unity Cluster
|
||||
#if params.tree_method == 'iqtree':
|
||||
#os.system('iqtree2 -s ' + guidance_path + '/' + file + ' -m LG+G --prefix ' + tax_iqtree_outdir + '/' + file.split('.')[0].split('_preguidance')[0] + '.IQTree')
|
||||
#elif params.tree_method == 'iqtree_fast':
|
||||
#os.system('iqtree2 -s ' + guidance_path + '/' + file + ' -m LG+G --fast --prefix ' + tax_iqtree_outdir + '/' + file.split('.')[0].split('_preguidance')[0] + '.IQTree')
|
||||
|
||||
# Copy over the final output
|
||||
if os.path.isfile(tax_iqtree_outdir + '/' + file.split('.')[0].split('_preguidance')[0] + '.IQTree.treefile'):
|
||||
os.system('cp ' + tax_iqtree_outdir + '/' + file.split('.')[0].split('_preguidance')[0] + '.IQTree.treefile ' + params.output + '/Output/Trees/' + file.split('.')[0].split('_preguidance')[0] + '.IQTree.tree')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user