Error setting up BUSCO for loop
1
0
Entering edit mode
3.9 years ago
jamie.pike ▴ 80

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 • 995 views
ADD COMMENT
2
Entering edit mode
3.9 years ago
h.mon 35k

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

ADD COMMENT
0
Entering edit mode

That's fixed it - great thank you!

ADD REPLY

Login before adding your answer.

Traffic: 2144 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6