This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error setting up BUSCO for loop

I'm having trouble setting up a for loop with BUSCO - I can't see any syntax errors, but I keep getting an error message reporting one. Can anyone see what the issue is?

nohup for i in $(cat BUSCO_list.txt); do busco -m genome -i ../DNA/${i} -o ${i}.BUSCO -l ~/Fusarium_data/Raw_Genomes/BUSCO/sordariomycetes_odb10 ; done &
bash: syntax error near unexpected token `do'
busco for loop bash syntax error

1 answer

https://stackoverflow.com/questions/3099092/why-cant-i-use-unix-nohup-with-bash-for-loop

In addition, tmux or screen are much better alternatives to nohup. If you are in a cluster environment, you should probably use the queue manager designed by the system administrators

That's fixed it - great thank you!

Log in to answer this question.