You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
muscle -align ${tmp_dir}/${SCG}_hits_filtered${target_gene_suffix} -output ${tmp_dir}/${SCG}-aligned.tmp -threads ${num_muscle_threads}| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2410
+
fi
2411
+
2412
+
# checking if alignment was successful (really this is a sloppy way of checking, but it's better than nothing and the muscle logs will be in the stdout and log)
2413
+
if [ !-s${tmp_dir}/${SCG}-aligned.tmp ];then
2414
+
2415
+
printf"\n\n ${RED}############################################################################## \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2416
+
printf"${RED}############################################################################## \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2417
+
printf" ####${NC} GToTree is exiting without completing :( ${RED}####\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2418
+
printf" ##############################################################################${NC} \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2419
+
printf"${RED}############################################################################## \n\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2420
+
2421
+
printf"${RED}************************** ${NC}REASON FOR TERMINATION ${RED}**************************${NC} \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2422
+
printf" There was a problem with muscle generating an alignment, so GToTree is exiting. This\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2423
+
printf" is most often due to running out of memory, leading to a 'core dumped' message from muscle.\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2424
+
printf" You can check the muscle log output printed above, specifically look for ${SCG}.\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2425
+
printf" If you can't access more memory, it would help to reduce the number of included\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2426
+
printf" genomes if possible."| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2427
+
printf"${RED}**************************************************************************** ${NC}\n\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2428
+
2429
+
printf"\nExiting for now.\n\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
printf"\n\n ${RED}############################################################################## \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2505
+
printf"${RED}############################################################################## \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2506
+
printf" ####${NC} GToTree is exiting without completing :( ${RED}####\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2507
+
printf" ##############################################################################${NC} \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2508
+
printf"${RED}############################################################################## \n\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2509
+
2510
+
printf"${RED}************************** ${NC}REASON FOR TERMINATION ${RED}**************************${NC} \n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2511
+
printf" There was a problem with muscle generating an alignment, so GToTree is exiting. This\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2512
+
printf" is most often due to running out of memory, leading to a 'core dumped' message from muscle.\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2513
+
printf" You can check the muscle log output in one of the problem sets by looking at:\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2514
+
printf"${problem_alignment}-muscle.log. If you can't access more memory, it would help to\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2515
+
printf" reduce the number of included genomes if possible."| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2516
+
printf"${RED}**************************************************************************** ${NC}\n\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2517
+
2518
+
printf"\nExiting for now.\n\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
2519
+
2520
+
# copying muscle log file to primary working directory
2521
+
cp ${tmp_dir}/${problem_alignment}-muscle.log .
2522
+
2523
+
# removing tmp directory unless debug set
2524
+
if [ $debug_flag=='false' ];then
2525
+
rm -rf $tmp_dir
2526
+
fi
2527
+
2528
+
mv $gtotree_log${output_dir}/gtotree-runlog.txt
2529
+
exit
2530
+
2531
+
fi
2532
+
2468
2533
fi
2469
2534
2470
2535
printf"\n\n\n________________________________________________________________________________\n\n\n"| tee >( sed 's/\x1b\[[0-9;]*m//g'>>${gtotree_log})
# checking if alignment was successful (really this is a sloppy way of checking, but it's better than nothing and the muscle log file will be available)
0 commit comments