Hi,
I'm trying to run Trimmomatic and get this error:
Exception in thread "main" java.io.FileNotFoundException: illuminaClipping.fa (No such file or directory)
Here is my input:
java -verbose -classpath /ichec/work/nglif015b/Trimmomatic-0.22/trimmomatic-0.22.jar org.usadellab.trimmomatic.TrimmomaticPE -threads 12 -phred33 /ichec/work/nglif015b/rawdata/batch1/1.control_1.fastq /ichec/work/nglif015b/rawdata/batch1/1.control_2.fastq 1.control.pe_1 1.control.up_1 1.control.pe_2 1.control.up_2 ILLUMINACLIP:illuminaClipping.fa:2:40:15 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
Any interpretations would be hugely appreciated!
Best,
N
Unconfigured Ad
Collapse
X
-
Indeed the ~ is the problem.Originally posted by westerman View PostI think the problem is not specifying a complete path. Using '~' as a short-cut to your home directory does not work with all programs.
Expanding '~' is actually done by the shell, and with some simplifications, it only performs the expansion when the tilde is at the start of a whitespace delimited 'word', which it is for the input / output file paths, but not for the adapter path (due to the ILLUMINACLIP: part).
Leave a comment:
-
I think the problem is not specifying a complete path. Using '~' as a short-cut to your home directory does not work with all programs.
Leave a comment:
-
I tried moving the contaminants file to the dir Trimmomatic-0.22/ and it is working. Thanks.
Leave a comment:
-
I tried using the new trimmomatic and foudnthie error
java -classpath trimmomatic-0.22.jar org.usadellab.trimmomatic.TrimmomaticPE -phred64 ~/Oiko_otogenetics/index45_TCATTC_L001_R1_001.fastq ~/Oiko_otogenetics/index45_TCATTC_L001_R2_001.fastq ~/Oiko_otogenetics/index45_TCATTC_L001_R1.fastq_PAIRED_1 ~/Oiko_otogenetics/index45_TCATTC_L001_R1.fastq_UNPAIRED_1 ~/Oiko_otogenetics/index45_TCATTC_L001_R2_001.fastq_PAIRED_2 ~/Oiko_otogenetics/index45_TCATTC_L001_R2_001.fastq_UNPAIRED_2 ILLUMINACLIP:~/Oiko_otogenetics/contaminants.txt:2:40:15 LEADING:15 TRAILING:15 SLIDINGWINDOW:5:18 MINLEN:36
TrimmomaticPE: Started with arguments: -phred64 /Users/mparida/Oiko_otogenetics/index45_TCATTC_L001_R1_001.fastq /Users/mparida/Oiko_otogenetics/index45_TCATTC_L001_R2_001.fastq /Users/mparida/Oiko_otogenetics/index45_TCATTC_L001_R1.fastq_PAIRED_1 /Users/mparida/Oiko_otogenetics/index45_TCATTC_L001_R1.fastq_UNPAIRED_1 /Users/mparida/Oiko_otogenetics/index45_TCATTC_L001_R2_001.fastq_PAIRED_2 /Users/mparida/Oiko_otogenetics/index45_TCATTC_L001_R2_001.fastq_UNPAIRED_2 ILLUMINACLIP:~/Oiko_otogenetics/contaminants.txt:2:40:15 LEADING:15 TRAILING:15 SLIDINGWINDOW:5:18 MINLEN:36
Exception in thread "main" java.io.FileNotFoundException: ~/Oiko_otogenetics/contaminants.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.usadellab.trimmomatic.fasta.FastaParser.parse(FastaParser.java:55)
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer.loadSequences(IlluminaClippingTrimmer.java:68)
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer.<init>(IlluminaClippingTrimmer.java:45)
at org.usadellab.trimmomatic.fastq.trim.TrimmerFactory.makeTrimmer(TrimmerFactory.java:29)
at org.usadellab.trimmomatic.TrimmomaticPE.main(TrimmomaticPE.java:335)
This is what my contaminants file looks like:
>Illumina_Paired_End_Adapter_1
ACACTCTTTCCCTACACGACGCTCTTCCGATCT
>Illumina_Paired_End_Adapter_2
CTCGGCATTCCTGCTGAACCGCTCTTCCGATCT
>Illumina_Paried_End_PCR_Primer_1
AATGATACGGCGACCACCGAGATCTACACTCTTTCCCTACACGACGCTCTTCCGATCT
>Illumina_Paired_End_PCR_Primer_2
CAAGCAGAAGACGGCATACGAGATCGGTCTCGGCATTCCTGCTGAACCGCTCTTCCGATCT
>Illumina_Paried_End_Sequencing_Primer_1
ACACTCTTTCCCTACACGACGCTCTTCCGATCT
>Illumina_Paired_End_Sequencing_Primer_2
CGGTCTCGGCATTCCTACTGAACCGCTCTTCCGATCT
What do I do???? Please help
Leave a comment:
-
Quality trimming is not so critical for alignment, especially for quality-aware aligners. I'd still recommend adapter trimming though, since even a moderate read-through (say 10bp) can cause the read to be lost. And with 100bp, you can easily afford to cut of 30-40bp of adapter, and still map uniquely (most of the time). Then again, at 90% mapping, you're probably golden either way - i like mining data closer to the limit on principle though.Originally posted by billstevens View PostThanks Rick! I was thinking it was fine, and last time I trimmed the first 5 bases, it just took forever. So would you still recommend that I use Trimmomatic to trim the ends based on quality score lower than 20 for the few reads that do have that? Or since the averages are over 30, is not really necessary? Cause like you mentioned, it really does take a lot of time...
As for lack of performance, have you tried multi-threading? Trimmomatic throughput should scale until the bottleneck is either disk IO or (un-)zipping of the input/output on most machines.
Leave a comment:
-
It is your data but from my plant and animal background where 90% is something to die for ... I say no trimming is needed. You have good data!
Leave a comment:
-
Thanks Rick! I was thinking it was fine, and last time I trimmed the first 5 bases, it just took forever. So would you still recommend that I use Trimmomatic to trim the ends based on quality score lower than 20 for the few reads that do have that? Or since the averages are over 30, is not really necessary? Cause like you mentioned, it really does take a lot of time...
Leave a comment:
-
More or less, yes. Some programs work very well without trimming and there are arguments for not doing so -- takes extra time and disk space which could be used for the mapping process instead. Your sequences sound like they have very good quality so there is probably no overriding need to trim them. Personally I just chop off the 5' and 3' ends that don't match the q20 limit. Internal poor quality is something that does not worry me.
Leave a comment:
-
Hi guys, I had a question about Trimmomatic and trimming in general. Is the standard to trim bases below Phred Score 20, more or less? I have 100 bp PE reads, and the average of each base quality is over 30, but the first 5 bases are around 31 while after that it rises to an average of 35. I am using an Illumina HiSeq 1000. So is the way to go about this to use Trimmomatic with Sliding Window size of 1 and Phred Scores of 20? When I ran it without any trimming, I got 90% mapped reads, but I'm worried that since I didn't trim, I had a lot of mismatched assemblies. What do you guys think? Any recommendations?
Leave a comment:
-
Thanks. My contaminants.fasta has only the standard illumina PE adapters, so nothing is shorter than 16 bases:
However, thank you!!!>adapter1
GATCGGAAGAGCTCGTATGCCGTCTTCTGCTTG
>adapter2
ACACTCTTTCCCTACACGACGCTCTTCCGATCT
>PCRPrimer1
AATGATACGGCGACCACCGAGATCTACACTCTTTCCCTACACGACGCTCTTCCGATCT
>PRCPrimer2
CAAGCAGAAGACGGCATACGAGCTCTTCCGATCT
>GenomicDNASequencingPrimer
ACACTCTTTCCCTACACGACGCTCTTCCGATCT
>PEAdapter1
>GATCGGAAGAGCGGTTCAGCAGGAATGCCGAG
>PEAdapter2
ACACTCTTTCCCTACACGACGCTCTTCCGATCT
>PEPCRPrimers1
AATGATACGGCGACCACCGAGATCTACACTCTTTCCCTACACGACGCTCTTCCGATCT
>PEprimers2
CAAGCAGAAGACGGCATACGAGATCGGTCTCGGCATTCCTGCTGAACCGCTCTTCCGATCT
>PESequencingPrimer
ACACTCTTTCCCTACACGACGCTCTTCCGATCT
>PESeqprimer2
GGTCTCGGCATTCCTGCTGAACCGCTCTTCCGATCT
I've tried running Trimmomatic 0.22, and it works, with the same contaminants.fa, no more errors,
on our server.
Leave a comment:
-
Sorry i haven't been around this forum for a while and missed this thread.Originally posted by dvanic View PostSame thing, I'm afraid. And the quality scores are from Casava 1.8.2, so I know for a fact they're Phred+33 (or, more accurately they've got J's in them as well, so they're in the (0,41) range). For example:
I wonder, actually, if it's the extra "J" that could be the problem...
Arvid is likely correct - the problem looks like its caused by very short sequences in the adapter fasta (<16 bases).
While short adapter sequences are usually not a good idea anyway (since they will likely have a high false positive rate and match good data), the latest Trimmomatic version, 0.22, should resolve this problem. I've just uploaded it to the website.
Leave a comment:
-
Phred scores should allow 0,93. In any case, following the stack trace, I would bet that it has problems with your contaminants.fa file. How does that file look like?
Leave a comment:
-
Same thing, I'm afraid. And the quality scores are from Casava 1.8.2, so I know for a fact they're Phred+33 (or, more accurately they've got J's in them as well, so they're in the (0,41) range). For example:Exception in thread "main" java.lang.NegativeArraySizeException
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer.packSeq(IlluminaClippingTrimmer.java:578)
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer$IlluminaClippingSeq.<init>(IlluminaClippingTrimmer.java:548)
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer$IlluminaClippingSeq.<init>(IlluminaClippingTrimmer.java:538)
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer.mapClippingSet(IlluminaClippingTrimmer.java:125)
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer.loadSequences(IlluminaClippingTrimmer.java:111)
at org.usadellab.trimmomatic.fastq.trim.IlluminaClippingTrimmer.<init>(IlluminaClippingTrimmer.java:43)
at org.usadellab.trimmomatic.fastq.trim.TrimmerFactory.makeTrimmer(TrimmerFactory.java:26)
at org.usadellab.trimmomatic.TrimmomaticPE.main(TrimmomaticPE.java:335)
I wonder, actually, if it's the extra "J" that could be the problem...@ILLUMINA:243
0TC9ACXX:1:1101:1470:2047 1:N:0:ACAGTG
NAGTTATTTGCCTCTTTGAAGCGTTTTCCAACAGTATAGATCTCATGAATCAAATCCTCCATGCAGATGATGCCGNATTNNCCAAGAGATCGAGCAATCAA
+
#1=DDFFFHHHHHJJJJJJIJIJIJJJIHIJJJJIJJJJIJJJJIJJJJJJJJJJJIIJHIJJFIIIJIJJJIJH#-;B##,,=ADDDDCDDDDBDDDCDD
@ILLUMINA:243
0TC9ACXX:1:1101:1500:2115 1:N:0:ACAGTG
CGCCATACAGCAGGAATGGGAGCTGCCCCCCTGGGCACAGCTTCTGCACTGTCTCGGTCCGCCTTTTGGTGTCAACGGTGGTAACATTGAAGGTGACTCCC
+
CCCFFFFEHHFFFGBBHIJIEFHIIGGIJJGI?FHFGIJGIIJE@;FGHGIHGIHHG;B?>CCDBDC58,89>55:;<2295>C@>CC@@CC?3:44>4@?
@ILLUMINA:243
0TC9ACXX:1:1101:1401:2131 1:N:0:ACAGTG
CTGGACTTGCTGGCTTCCCTGAAACGGAGAGAGCGAGAGGAGAAGGACGATGGGGAGGACAAGAAGAAGTCCAAAGTCTCCTCCTACAAGGACTGGGAAGA
+
@CCFDEFFHHHHHHIJGIJJJGIJIHJ?E@F@F9FAD@FGBGBCFGACG@CHHHF?BD;=?AB?AA>AA>>CCDC<:4>@C@CC?ACDC@ABBDDDD<>@8
Leave a comment:
-
Looks like a good command line. As as guess I am going to say that your input files have a different quality score than 'phred33'. Part of this guess is the 'negative array' message. Try with 'phred64' (or nothing, should default to phred64.
Leave a comment:
Latest Articles
Collapse
-
by SEQadmin2
When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...-
Channel: Articles
11-24-2026, 07:04 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 12-02-2026, 11:10 AM
|
0 responses
16 views
0 reactions
|
Last Post
by SEQadmin2
12-02-2026, 11:10 AM
|
||
|
Single-Nucleus Sequencing Links Type 2 Diabetes Risk Variants to Specific Muscle Cell Types
by SEQadmin2
Started by SEQadmin2, 12-01-2026, 11:06 AM
|
0 responses
24 views
0 reactions
|
Last Post
by SEQadmin2
12-01-2026, 11:06 AM
|
||
|
Started by SEQadmin2, 11-23-2026, 11:11 AM
|
0 responses
62 views
0 reactions
|
Last Post
by SEQadmin2
11-23-2026, 11:11 AM
|
||
|
Started by SEQadmin2, 11-17-2026, 06:27 AM
|
0 responses
60 views
0 reactions
|
Last Post
by SEQadmin2
11-17-2026, 06:27 AM
|
Leave a comment: