Actually I think I got it.
The way I did it is using a sliding window option. What I think I did is ask it to go through the sequence in a window of 4 bps, take the average score, if the average score is below 20 then drop that window, otherwise keep moving. If the total length of the sequence after dropping low quality windows is less than 60 I removed it. I also used the leading and trailing options to drop low quality leading or trailing base pairs.
My complete command is as follows:
java -classpath trimmomatic-0.22.jar org.usadellab.trimmomatic.TrimmomaticPE -phred33 -trimlog trimmlog_log.txt R1.fastq R2.fastq Output_R1.fq unpaired_output1.fq Output_R2.fq unpairedoutput2.fq LEADING:20 TRAILING:20 SLIDINGWINDOW:4:20 MINLEN:60
Unconfigured Ad
Collapse
X
-
Thank you for the explanation Jakie. I got the idea now.
I tried to specify the quality after specifying the phred score and it didn't work though. To be specific I used -phred33 20
Is that what you meant?
Originally posted by JackieBadger View PostYou are just a little confused.
Phred refers to the actual encoding of the quality score information http://en.wikipedia.org/wiki/FASTQ_format
....
phred33 or phred64 encryption are produced depend on the sequencer/software used to produce your data.
All quality codes have a range of quality scores associated with them and use different characters to ID particular quality scores (see wiki).
So you choose your quality encription (phredXX) and then choose the minimum quality score you want to enforce (e.g. 20)
Leave a comment:
-
You are just a little confused.Originally posted by modi2020 View PostHi Jakie
I have tried to run trimmomatic with the option -phred20 to get reads with quality scores of Q20 but it doesn't seem to like it. It runs with -phred33 though. In their website, they say that it only accepts phred scores of 33 or 64. Am I wrong or is there any way of making it accept the -phred20 option?
Thank you
Phred refers to the actual encoding of the quality score information http://en.wikipedia.org/wiki/FASTQ_format
....
phred33 or phred64 encryption are produced depend on the sequencer/software used to produce your data.
All quality codes have a range of quality scores associated with them and use different characters to ID particular quality scores (see wiki).
So you choose your quality encription (phredXX) and then choose the minimum quality score you want to enforce (e.g. 20)Last edited by JackieBadger; 03-20-2013, 06:57 PM.
Leave a comment:
-
Hi Jakie
I have tried to run trimmomatic with the option -phred20 to get reads with quality scores of Q20 but it doesn't seem to like it. It runs with -phred33 though. In their website, they say that it only accepts phred scores of 33 or 64. Am I wrong or is there any way of making it accept the -phred20 option?
Thank you
Originally posted by JackieBadger View Post"trim the leading nucleotides until quality > 3"
Its pretty self explanatory...It will continue to trim bases that have a quality score lower than 3 until it hits a base where it is 3 or greater.
This it self is pretty useless as Ive never seen an illumina base with this low score and you would want to be retaining score at a very minimum of Q20
Leave a comment:
-
Yes, I agree, but I don't think you can do that with trimmomatic.Originally posted by JackieBadger View PostBut you shouldn't be keeping any base that has a quality of between Q3-Q19
Wouldn't it just be better to trim off actual "N"s rather than assume they have are >Q3 ?
Leave a comment:
-
But you shouldn't be keeping any base that has a quality of between Q3-Q19Originally posted by mastal View PostIt's useful for removing Ns (which have quality < 3) from the ends of the reads.
maria
Wouldn't it just be better to trim off actual "N"s rather than assume they have are >Q3 ?
Leave a comment:
-
Thank you JackieBadger and mastal for your explaination.
I got the idea now.
Leave a comment:
-
Trimmomatic explanation
It's useful for removing Ns (which have quality < 3) from the ends of the reads.Originally posted by JackieBadger View Post"trim the leading nucleotides until quality > 3"
Its pretty self explanatory...It will continue to trim bases that have a quality score lower than 3 until it hits a base where it is 3 or greater.
This it self is pretty useless as Ive never seen an illumina base with this low score and you would want to be retaining score at a very minimum of Q20
maria
Leave a comment:
-
"trim the leading nucleotides until quality > 3"
Its pretty self explanatory...It will continue to trim bases that have a quality score lower than 3 until it hits a base where it is 3 or greater.
This it self is pretty useless as Ive never seen an illumina base with this low score and you would want to be retaining score at a very minimum of Q20
Leave a comment:
-
Hi,
I was wondering for steps 2 and 3, how many nucleotides would it trim from the start or end of the sequence. My intuition tells me its just one but I am not sure?
Originally posted by DunderChief View PostAll of this is explained in detail on the trimmomatic website, but in general this will:
1. Clip Illumina adapters
2. then trim the leading nucleotides until quality > 3
3. then trim the trailing nucleotides until quality > 3
4. then using a sliding window of 4 nucleotides and trims when quality < 15
5. Remove any remaining sequences that are shorter than 36 nt.
You should really try looking at their documentation before posting questions here though.
Leave a comment:
-
All of this is explained in detail on the trimmomatic website, but in general this will:
1. Clip Illumina adapters
2. then trim the leading nucleotides until quality > 3
3. then trim the trailing nucleotides until quality > 3
4. then using a sliding window of 4 nucleotides and trims when quality < 15
5. Remove any remaining sequences that are shorter than 36 nt.
You should really try looking at their documentation before posting questions here though.
Leave a comment:
-
Trimmomatic explanation
Can anybody explain the following command in Trimmonatic?
java -classpath trimmomatic-0.15.jar org.usadellab.trimmomatic.TrimmomaticPE s_1_1_sequence.txt.gz s_1_2_sequence.txt.gz lane1_forward_paired.fq.gz lane1_forward_unpaired.fq.gz lane1_reverse_paired.fq.gz lane1_reverse_unpaired.fq.gz ILLUMINACLIP:illuminaClipping.fa:2:40:15 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36Tags: None
Latest Articles
Collapse
-
by SEQadmin2
NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...-
Channel: Articles
10-30-2026, 06:46 AM -
-
by SEQadmin2
Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?
Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating...-
Channel: Articles
10-14-2026, 09:55 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Genome Sequencing Reveals Large, Repeat-Rich DNA in Trapdoor Spider Named for Stephen Colbert
by SEQadmin2
Started by SEQadmin2, 10-28-2026, 09:57 AM
|
0 responses
43 views
0 reactions
|
Last Post
by SEQadmin2
10-28-2026, 09:57 AM
|
||
|
Started by SEQadmin2, 10-28-2026, 09:51 AM
|
0 responses
26 views
0 reactions
|
Last Post
by SEQadmin2
10-28-2026, 09:51 AM
|
||
|
Started by SEQadmin2, 10-22-2026, 11:13 AM
|
0 responses
74 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 11:13 AM
|
||
|
Started by SEQadmin2, 10-22-2026, 10:48 AM
|
0 responses
48 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 10:48 AM
|
Leave a comment: