Skip to content

Commit 00d4d13

Browse files
Mike LeeMike Lee
authored andcommitted
updating the nucleotide call to fasttree to include -nt and -gtr
1 parent 824be8e commit 00d4d13

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

bin/GToTree

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,7 +3436,11 @@ if [ $align_only == 'false' ]; then
34363436
# setting env variable for FastTreeMP
34373437
export OMP_NUM_THREADS=${num_jobs}
34383438

3439-
FastTreeMP ${alignment_file} > ${tree_file} 2> >(tee -a $gtotree_log >&2)
3439+
if [ $nucleotide == 'false' ]; then
3440+
FastTreeMP ${alignment_file} > ${tree_file} 2> >(tee -a $gtotree_log >&2)
3441+
else
3442+
FastTreeMP -nt -gtr ${alignment_file} > ${tree_file} 2> >(tee -a $gtotree_log >&2)
3443+
fi
34403444

34413445
fasttree_used="true" # setting to report citations at end
34423446

@@ -3454,7 +3458,11 @@ if [ $align_only == 'false' ]; then
34543458
printf " It is currently $curr_time; the process started at $start_time.\n" | tee >( sed 's/\x1b\[[0-9;]*m//g' >> ${gtotree_log} )
34553459
printf " Current process runtime: $(($duration / 60 / 60)) hours and $((($duration / 60) % 60)) minutes.\n\n" | tee >( sed 's/\x1b\[[0-9;]*m//g' >> ${gtotree_log} )
34563460

3457-
FastTree ${alignment_file} > ${tree_file} 2> >(tee -a $gtotree_log >&2)
3461+
if [ $nucleotide == 'false' ]; then
3462+
FastTree ${alignment_file} > ${tree_file} 2> >(tee -a $gtotree_log >&2)
3463+
else
3464+
FastTree -nt -gtr ${alignment_file} > ${tree_file} 2> >(tee -a $gtotree_log >&2)
3465+
fi
34583466

34593467
fasttree_used="true" # setting to report citations at end
34603468

0 commit comments

Comments
 (0)