Originally posted by bioman1
View Post
If your reads are paired in two files, you should use "in1=reads1.fq in2=reads2.fq". For paired input, the output will be interleaved, but the bbtools package includes another program, "reformat.sh", which can interleave, de-interleave, change quality offset, file format, and do various other things like subsampling and trimming, very fast.
To interleave:
reformat.sh in1=read1.fq in2=read2.fq out=reads.fq
To de-interleave:
reformat.sh in=reads.fq out1=read1.fq out2=read2.fq
By default, if there is a single input file, BBMap will autodetect whether the reads are interleaved or single-ended based on the names, assuming normal Hiseq/Miseq naming conventions. You can override this with the "interleaved=t" or "interleaved=f" flag. All flags are in any order.
If you have any trouble with RAM regarding bbsplit, you can set the amount of memory to use with the flag "-Xmx1g" for (for example) 1 GB RAM. This should be set to about 85% of physical memory, but don't bother unless you encounter a problem.
-Brian
P.S. I forgot to answer your question...
No, you MUST specify "ref=r1.fa,r2.fa,r3.fa..r93.fa" (without any spaces). If you use cat, it will not work.
Leave a comment: