Entering edit mode
2.7 years ago
melissachua90
▴
70
I downloaded all the experiments for SRP332503
esearch -db sra -query SRP332503 | efetch -format runinfo | cut -d ',' -f 1 | grep SRR | xargs -n 1 -P 6000 ./../sratoolkit.3.0.0-ubuntu64/bin/fasterq-dump
and also the adapters.fa
file:
wget github.com/BioInfoTools/BBMap/blob/master/resources/adapters.fa
Now, I want to use bbduk
to trim the adapters. I used the following code:
for f in `ls -1 *_1.fastq | sed 's/_1.fastq//’`;
do ./../../bbmap/bbduk.sh -Xmx1g in1=$f\_1.fastq in2=$f\_2.fastq out1=$f\_clean_1.fq out2=$f\_clean_2.fq ref=./../../bbmap/adapters.fa;
Done
Traceback:
java.lang.AssertionError: Improperly formatted fasta file; expecting '>' symbol.
0, 16384, 10,
at stream.FastaReadInputStream.nextHeader(FastaReadInputStream.java:302)
at stream.FastaReadInputStream.fillList(FastaReadInputStream.java:176)
at stream.FastaReadInputStream.hasMore(FastaReadInputStream.java:109)
at stream.ConcurrentGenericReadInputStream$ReadThread.readLists(ConcurrentGenericReadInputStream.java:668)
at stream.ConcurrentGenericReadInputStream$ReadThread.run(ConcurrentGenericReadInputStream.java:657)
java -ea -Xmx1g -Xms1g -cp /home-3/mchua4@jhu.edu/bbmap/current/ jgi.BBDuk -Xmx1g in1=SRR18765904_1.fastq in2=SRR18765904_2.fastq out1=SRR18765904_clean_1.fq out2=SRR18765904_clean_2.fq ref=./../../bbmap/adapters.fa
Executing jgi.BBDuk [-Xmx1g, in1=SRR18765904_1.fastq, in2=SRR18765904_2.fastq, out1=SRR18765904_clean_1.fq, out2=SRR18765904_clean_2.fq, ref=./../../bbmap/adapters.fa]
This is NOT the official repository for BBTools. BBTools are available via SourceForge. That will get you correct/latest BBTools.
adapters.fa
file is included inresources
folder when you download BBTools from SF.