Hello,
I am getting the following error when trying to use trimmomatic. I cannot figure out what is wrong. I have reformatted my adapter fasta to be similar to theirs. I couldn't find any strange spaces in my arguments. Any help would be appreciated.
Here is my command:
java -jar path/to/trimmomatic-0.36.jar SE -phred33 in.fq.gz out.fq.gz ILLUMINACLIP:/path/to/adapter.fasta
TrimmomaticSE: Started with arguments:
-phred33 in.fq.gz out.fq.gz ILLUMINACLIP:/path/to/adapter.fasta
Automatically using 1 threads
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at org.usadellab.trimmomatic.trim.IlluminaClippingTrimmer.makeIlluminaClippingTrimmer(IlluminaClippingTrimmer.java:54)
at org.usadellab.trimmomatic.trim.TrimmerFactory.makeTrimmer(TrimmerFactory.java:32)
at org.usadellab.trimmomatic.Trimmomatic.createTrimmers(Trimmomatic.java:59)
at org.usadellab.trimmomatic.TrimmomaticSE.run(TrimmomaticSE.java:303)
at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:85)
My adapter file:
>adapter_SE
NNNNTGGAATTCTCGGGTGCCAAGG
Thanks
Remove the Ns at the beginning of your adapter sequence, rerun the command, and see if that solves your problem.