Trimmomatic bad parallelize
I'm sorry, I have created a new thread.
Unconfigured Ad
Collapse
X
-
Interesting - seems that file has very long lines (or is missing newlines entirely). I agree the error message should be more informative.Originally posted by Will Nelson View PostFor what it's worth I hit this exception running with a file that turned out to have a corrupted line...perhaps a more informative error is possible.
Leave a comment:
-
Good idea - it would take a bit of work, but in principle it can be done.Originally posted by Will Nelson View PostTony, Slightly off-topic perhaps, but shouldn't it be possible to automatically detect things like adapters and have a fully automatic trim process? It seems like this would save quite a bit of hassle in obtaining adapter sequences, studying FastQC output, playing with the many parameters, things like that.
Leave a comment:
-
With good quality library preps, TruSeq3-PE should be enough and will run much faster (since it checks only for the most common contamination scenario).Originally posted by jcyh View PostHi everyone,
I am a newbie in NGS. I have a data sequenced with Illumina Truseq Kit from Hiseq System. I am trying to trim the adapters in my data with Trimmomatic but not sure on which adapters fasta files to choose (TruSeq3-PE.fasta or TruSeq3-PE-2.fasta ?).
Could anyone please explain to me what's the difference between these two files ?
TruSeq3-PE.fasta
TruSeq3-PE-2.fasta
Thanks a lot ^^
For 'strange' situations, e.g. libraries with double-ligated adapters, partly degraded adapters or other issues, 'TruSeq3-PE-2' does a better job. For high quality libraries though, the extra processing time needed is probably not worth it.
Leave a comment:
-
Most likely (especially since you are using a nextera prep), you have a lot of short fragments which have adapter read-through (the read length > the insert length). Since the trimmed read pairs are therefore merely reverse-complements of each other (both contain the full fragment), the reverse read adds little information, and thus the default behaviour of trimmomatic is to drop the reverse read. You can choose to keep the reverse read by adding an extra 'true' parameter to the ILLUMINACLIP step.Originally posted by tsangkl View PostHi, I found trimmomatic very useful.
And it works well with my Hiseq data using Nextera PE adaptor in single end mode.
But I found the output is quite strange in paired end mode:
My output after trimming:
Input Read Pairs: 12484647 Both Surviving: 4943420 (39.60%) Forward Only Surviving: 7297375 (58.45%) Reverse Only Surviving: 16245 (0.13%) Dropped: 227607 (1.82%)
It seems that the forward and reverse reads after trimming is very unbalanced.
What would cause this?
Thanks.
Leave a comment:
-
Hi everyone,
I am a newbie in NGS. I have a data sequenced with Illumina Truseq Kit from Hiseq System. I am trying to trim the adapters in my data with Trimmomatic but not sure on which adapters fasta files to choose (TruSeq3-PE.fasta or TruSeq3-PE-2.fasta ?).
Could anyone please explain to me what's the difference between these two files ?
TruSeq3-PE.fasta
TruSeq3-PE-2.fasta
Thanks a lot ^^
Leave a comment:
-
For what it's worth I hit this exception running with a file that turned out to have a corrupted line...perhaps a more informative error is possible:
java -Xmx4096m -jar /data/agcol/databases/mouse/paper_rerun/ext/Trimmomatic-0.32/trimmomatic-0.32.jar PE -threads 1 -trimlog trim1.log test1.fq test2.fq Out1.fastq Sing1.fastq Out2.fastq Sing2.fastq CROP:95 HEADCROP:5
TrimmomaticPE: Started with arguments: -threads 1 -trimlog trim1.log test1.fq test2.fq Out1.fastq Sing1.fastq Out2.fastq Sing2.fastq CROP:95 HEADCROP:5
Quality encoding detected as phred33
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515)
at java.lang.StringBuffer.append(StringBuffer.java:306)
at java.io.BufferedReader.readLine(BufferedReader.java:345)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at org.usadellab.trimmomatic.fastq.FastqParser.parseOne(FastqParser.java:72)
at org.usadellab.trimmomatic.fastq.FastqParser.next(FastqParser.java:171)
at org.usadellab.trimmomatic.TrimmomaticPE.processSingleThreaded(TrimmomaticPE.java:57)
at org.usadellab.trimmomatic.TrimmomaticPE.process(TrimmomaticPE.java:293)
at org.usadellab.trimmomatic.TrimmomaticPE.run(TrimmomaticPE.java:498)
at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:35)
Leave a comment:
-
why not automatic mode?
Tony, Slightly off-topic perhaps, but shouldn't it be possible to automatically detect things like adapters and have a fully automatic trim process? It seems like this would save quite a bit of hassle in obtaining adapter sequences, studying FastQC output, playing with the many parameters, things like that.
Leave a comment:
-
Thanks for your reply Tony, now I can incorporate Trimmomatic without compunction into my pipeline
Leave a comment:
-
Trimmomatic uses a slightly more complex strategy, so in some cases (if the quality around the trim point looks like a "U"), trimmomatic doesn't do what you expect.Originally posted by Mchicken View PostSo can anyone tell me where i am wrong?
Consider a typical monotonic dropping quality - first you might want to decide where the window drops below the threshold, then remove the later, weaker bases within the window, but keep the earlier, stronger ones. To achieve this, you need to first find the window, then decide how much to keep.
Once the window is found (very likely in the position you expect), the individual bases are checked against the required quality from the end of the window backwards. In your example, the last base is somewhat stronger than the threshold, so removal stops there.
An obvious alternative would be to start at the beginning of the window, and cut at the first weak base. When i compared the two approaches, the 'from the back' approach seemed to work better, so trimmomatic uses this.
Hope this helps,
Tony.
Leave a comment:
-
Hey guys,
i`ve got some problems with Trimmomatic:
I have the following 100bp long read:
@HWI-ST365:346
25ECACXX:5:1101:3183:2046 1:N:0:TGACCA
NCAGGGGGAACAGGCTGATCTCCCCCAAGAGTCCACATCGACGGGGAGGTTTGGCACCTCGATGTCGGCTCATCGCAACCTGGGGCGGAAGGACGTCCCC
+
#11A?DDDHHBBF?FHBGCGHGGDD@FFDDD9B@FHD8)<FHIG8B89>(,5,5(::<CB?'9@BC8;5?##############################
I only run SLIDINGWINDOW:4:15 on this read
and what i get is:
Log-File:
HWI-ST365:346
25ECACXX:5:1101:3183:2046 1:N:0:TGACCA 52 0 52 48
trimmed fastq:
@HWI-ST365:346
25ECACXX:5:1101:3183:2046 1:N:0:TGACCA
NCAGGGGGAACAGGCTGATCTCCCCCAAGAGTCCACATCGACGGGGAGGTTT
+
#11A?DDDHHBBF?FHBGCGHGGDD@FFDDD9B@FHD8)<FHIG8B89>(,5
But when i run my own script on the read i can see that the pattern (,5, beginning at position 50 has an average quality of 12.25, which is below the required 15. So the read should survive from position 1 to 49 and not until position 52 as determined by Trimmomatic.
So can anyone tell me where i am wrong?
Thanks
Mchicken
Leave a comment:
-
This sequence looks like a TruSeq-3 adapter - if so, either the TruSeq3-PE or TruSeq3-PE-2 adapter files should remove the sequencing adapters. The useful part of the reads should survive if they the adapters are in the normal position.Originally posted by kevluv93 View PostHi, back again. When I use trimmomatic I get abnormally high Kmer reads on FastQC, I read out the Kmers and realized that most of my forward adapter was still inside of my cDNA.
I opened the TruSeq2 adapter file and realized that the Prefix PE/1 adapter (I guess that means the forward adapter?) Didn't match the forward adapter I was using, which is:
TruSeq Adapter, Index 2
5’ GATCGGAAGAGCACACGTCTGAACTCCAGTCACCGATGTATCTCGTATGCCGTCTTCTGCTTG
If you do have any surviving adapters, can you post a few examples?
Thanks,
Tony.
Leave a comment:
-
Hi, back again. When I use trimmomatic I get abnormally high Kmer reads on FastQC, I read out the Kmers and realized that most of my forward adapter was still inside of my cDNA.
I opened the TruSeq2 adapter file and realized that the Prefix PE/1 adapter (I guess that means the forward adapter?) Didn't match the forward adapter I was using, which is:
TruSeq Adapter, Index 2
5’ GATCGGAAGAGCACACGTCTGAACTCCAGTCACCGATGTATCTCGTATGCCGTCTTCTGCTTG
So I went in and replaced the default forward adapter with the sequence you see above.
Now I have another issue, for some reason trimmomatic has managed to cut 8GB of data into 2GB of data. (if I combine the forward and reverse paired and unpaired files) Fastqc is giving me Kmers that are similar to my sequence, and when I opened the forward paired file I saw that fairly large chunks of my primers are still at the 3' end of my cDNA.
ex.
GATCGGAAGAGCACACGTCTGAACTCCAGTCAC
GATCGGAAGAGCACACGTCTGAACTCC
ATCGGAAGAGCACACGTCTGAACTCCAGTCACCGA
They're just small enough for trimmomatic to miss. Is there any helpful suggestions you can give me regarding the settings of trimmomatic to help me cut these small bits of adapters off the end of my reads? Is there a reason why only small fragments of my adapter sequences would be left after using trimmomatic? Finally, is it usual for such a large portion of data to get cut when using trimmomatic or am I screwing this up? (8GB to 2GB of data)
Leave a comment:
-
Hi i have used trimmomtaic to clip the adapter sequences. Yet i am still having a problem with kmers, sequence per base content. My question is how do we improve the quality if there is any failure in Fastqc results????
Leave a comment:
Latest Articles
Collapse
-
by SEQadmin2
CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).
Despite this, “CRISPR helped turn genome editing from a specialized technique into...-
Channel: Articles
07-31-2026, 11:01 AM -
-
by SEQadmin2
Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.
The systematic characterization of the human proteome has...-
Channel: Articles
07-20-2026, 11:48 AM -
-
by SEQadmin2
Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
...-
Channel: Articles
07-09-2026, 11:10 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 08-03-2026, 10:13 AM
|
0 responses
14 views
0 reactions
|
Last Post
by SEQadmin2
08-03-2026, 10:13 AM
|
||
|
Started by SEQadmin2, 07-31-2026, 02:55 AM
|
0 responses
32 views
0 reactions
|
Last Post
by SEQadmin2
07-31-2026, 02:55 AM
|
||
|
Started by SEQadmin2, 07-24-2026, 12:17 PM
|
0 responses
23 views
0 reactions
|
Last Post
by SEQadmin2
07-24-2026, 12:17 PM
|
||
|
Started by SEQadmin2, 07-23-2026, 11:41 AM
|
0 responses
21 views
0 reactions
|
Last Post
by SEQadmin2
07-23-2026, 11:41 AM
|
Leave a comment: