How to use BBMap for aligning a set of .fastq files?
1
0
Entering edit mode
8.3 years ago
usgenome2018 ▴ 40

Want to run BBMap for a set of 30 .fastq files

Tried

#!/bin/bash
for n in {ls*.fastq}
do
  ./bbmap.sh "in=$n" "out={.}"
done

and (with GNU parallel)

ls *fastq | parallel ./bbmap.sh {} mapped_ {.}

What to change in code to make it align .fastq files against a preset reference?

Thx

parallel bash bbmap • 4.5k views
ADD COMMENT
0
Entering edit mode

Can you not just add the reference file to the command line?

ADD REPLY
0
Entering edit mode

reference has been preset

ADD REPLY
0
Entering edit mode

Preset where? How? What errors are you recieving?

ADD REPLY
0
Entering edit mode
./bbmap.sh ref=ref.fa # creating index file from the input reference

problem is to input the in and out arguments of the bbmap.sh script in a bash for loop or in the parallell pipeline, errors are no arguments recognized correctly, thread exceptions, thank you

ADD REPLY
4
Entering edit mode
8.3 years ago

Take a look at Brian's comments here: How to do BBmap batch processing correctly?

ADD COMMENT

Login before adding your answer.

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