Question: Adapter removing with Trimmomatic
0
gravatar for pallob.barai
6 months ago by
pallob.barai0 wrote:

While I was trying to do adapter removal using Timmomatic-0.39, it showed the following error.

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1

I used the following codes:

cd /mnt/gpfs2_4m/scratch/pba264/raw_reads module load ccs/conda/trimmomatic-0.39

for f in fastq.gz; do output=/mnt/gpfs2_4m/scratch/pba264/Analysis/2-Trimmomatic/${f%.}_trimmomatic.fastq.gz log=/mnt/gpfs2_4m/scratch/pba264/Analysis/2-Trimmomatic/${f%.*}_trimmomatic.Log java -jar /mnt/gpfs2_4m/scratch/pba264/Applications/Trimmomatic/trimmomatic-0.39.jar SE -threads 8 -phred33 $f $output ILLUMINACLIP: "/mnt/gpfs2_4m/scratch/pba264/Applications/Trimmomatic/Adapters/TruSeq3-SE.fa":2:20:10 SLIDINGWINDOW:5:20 MINLEN:18 done

Your suggestions will be appreciated.

rna-seq • 175 views
ADD COMMENTlink modified 6 months ago by caggtaagtat1.4k • written 6 months ago by pallob.barai0
0
gravatar for caggtaagtat
6 months ago by
caggtaagtat1.4k
caggtaagtat1.4k wrote:

I think you miss the * in your loop. It should read: for f in *.fastq.gz, indicating, that you allow any number and any type of letters befor that.

ADD COMMENTlink written 6 months ago by caggtaagtat1.4k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1110 users visited in the last hour