Skip to content

Commit 8008033

Browse files
author
Emrah Akkoyun
committed
ml tree is updated for new proteins
1 parent 8de1f64 commit 8008033

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

workflow/envs/raxml-ng.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
name: raxml-ng
1+
name: raxml-ng
22
channels:
33
- bioconda
4+
- conda-forge
45
dependencies:
56
- raxml-ng = 1.0.2
7+
- openmpi = 4.0.5

workflow/scripts/raxml-ng.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ tree_num=$6
1010
# recommended # threads
1111
thread_num=`raxml-ng --parse --msa $trimmed_msa --model $raxml_model --nofile|grep "Recommended number of threads"|awk -F: {'print $2'}| xargs`
1212
echo "Recommended number of thread: $thread_num"
13+
echo "Number of CPUs on the allocated nodes: $SLURM_CPUS_ON_NODE"
14+
15+
if (("$thread_num" <= "$SLURM_CPUS_ON_NODE")); then
16+
folder=`dirname $output_tree`
17+
raxml-ng --msa $trimmed_msa --data-type AA --model $raxml_model --prefix $folder/$raxml_out_name --seed $raxml_seed --threads $thread_num --tree rand{$tree_num} pars{$tree_num}
18+
else
19+
echo "ERROR: Required CPU number: $thread_num. Assign more CPUs for the next submission"
20+
fi
1321

14-
folder=`dirname $output_tree`
15-
raxml-ng --msa $trimmed_msa --data-type AA --model $raxml_model --prefix $folder/$raxml_out_name --seed $raxml_seed --threads $thread_num --tree rand{$tree_num} pars{$tree_num}

0 commit comments

Comments
 (0)