Bash loop for the creation of multiple indexes
1
0
Entering edit mode
3.8 years ago
Ada ▴ 10

FILES=(/data/*.fna.gz);

for f in "${FILES[@]}";

do

bowtie2-build $f *#output file specification, how can i specify output for each independent reference build - i have 4 *

done

assembly alignment genome • 898 views
ADD COMMENT
0
Entering edit mode
3.8 years ago
Ada ▴ 10

FILES=(/data/*.fna.gz); for f in "${FILES[@]}" ;do bowtie2-build $f done

builds index for each genome, but how do I create respective outputs

ADD COMMENT
0
Entering edit mode

Resolved loop. No further comments needed.

ADD REPLY
1
Entering edit mode

It is not useful to leave comments such as this since they don't help the next person coming along with the solution. Please edit the answer above and post the solution there.

You also should follow-up on your past threads. Upvoting comments that help you find a solution, accepting answers that work (green check mark) is the proper way of acknowledging help you receive from contributors to this forum.

ADD REPLY
0
Entering edit mode

Thank you for letting me know

ADD REPLY
1
Entering edit mode

Resolved loop:

FILES=(/data/*.fna.gz); for f in "${FILES[@]}" ;do bowtie2-build $f index done
ADD REPLY

Login before adding your answer.

Traffic: 1979 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