Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • tonybolger
    replied
    Originally posted by shangzhong0619 View Post
    I was just wondering how does sliding window in trimmomatic work?
    The definition is scanning from the 5’ end of the read, and removes the 3’
    end of the read when the average quality of a group of bases drops
    below a specified threshold.
    For example, if we have a sequence ATCGATCGATCG and we set SLIDINGWINDOW: 4:15.
    It begins with the first 4 in a window, ATCGATCGATCG, but if the score is below 15, which base it will trim? Is that the last base in this window? What is the next start position of the window? 2 or 5? thanks.
    The sliding window moves by one position each time. So it starts with positions 1-4, if these are ok, then tries positions 2-5.

    Once a 'window' falls below the required quality average, all bases beyond that point at removed, as well as any bases from the end of the window which are below the required quality until one of the required quality is found.

    This can result in the final trimmed read including none, some or (in very unusual circumstances) all the bases within the failed window - but typically around half the window will be kept.

    Hope this helps,

    Tony.

    Leave a comment:


  • shangzhong0619
    replied
    How does sliding window work

    I was just wondering how does sliding window in trimmomatic work?
    The definition is scanning from the 5’ end of the read, and removes the 3’
    end of the read when the average quality of a group of bases drops
    below a specified threshold.
    For example, if we have a sequence ATCGATCGATCG and we set SLIDINGWINDOW: 4:15.
    It begins with the first 4 in a window, ATCGATCGATCG, but if the score is below 15, which base it will trim? Is that the last base in this window? What is the next start position of the window? 2 or 5? thanks.

    Leave a comment:


  • bharat_iyengar
    replied
    Is it possible to alter the minimum seed length in trimmomatic.SE, for adapter clipping ?

    If it is not explicit which one of the source files has to be edited ?

    Leave a comment:


  • tonybolger
    replied
    Originally posted by jcorn427 View Post
    So, that one run completed successfully. I went to run it again on the next set of data and now I get a new exception.

    Code:
    Exception in thread "main" java.lang.NullPointerException
            at org.usadellab.trimmomatic.fastq.FastqParser.parseOne(FastqParser.java:57)
            at org.usadellab.trimmomatic.fastq.FastqParser.next(FastqParser.java:106)
            at org.usadellab.trimmomatic.TrimmomaticPE.processSingleThreaded(TrimmomaticPE.java:56)
            at org.usadellab.trimmomatic.TrimmomaticPE.process(TrimmomaticPE.java:275)
            at org.usadellab.trimmomatic.TrimmomaticPE.run(TrimmomaticPE.java:347)
            at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:23)
    Any hints as to what this might be would be great. Thanks for all of your help.
    Generally this is caused by a partial record (fastq records always come in 4 line groups) at the end of the file. Blank line(s) also may also do it.

    Leave a comment:


  • jcorn427
    replied
    So, that one run completed successfully. I went to run it again on the next set of data and now I get a new exception.

    Code:
    Exception in thread "main" java.lang.NullPointerException
            at org.usadellab.trimmomatic.fastq.FastqParser.parseOne(FastqParser.java:57)
            at org.usadellab.trimmomatic.fastq.FastqParser.next(FastqParser.java:106)
            at org.usadellab.trimmomatic.TrimmomaticPE.processSingleThreaded(TrimmomaticPE.java:56)
            at org.usadellab.trimmomatic.TrimmomaticPE.process(TrimmomaticPE.java:275)
            at org.usadellab.trimmomatic.TrimmomaticPE.run(TrimmomaticPE.java:347)
            at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:23)
    Any hints as to what this might be would be great. Thanks for all of your help.

    Leave a comment:


  • jcorn427
    replied
    Here's the last line from the r.log:
    Code:
    HWI-ST388-W7D:270:C0265ACXX:3:1101:9507:22340 2:N:0:CGATGT 101 0 101 0
    However, I changed all of the output files from .bz2 to .gz and there hasn't been an error yet. I think that did it. Thanks!

    Leave a comment:


  • westerman
    replied
    Looks like it is having problems writing bzip files for some reason. Two thoughts:

    1) Don't output to .bz format; eliminate that variable in testing.

    2) What is does the trimlog r.log tell you. The last line should give the last read processed.

    Leave a comment:


  • jcorn427
    replied
    Ok, so, the only modification I made was to change the number of threads to 1 and I re-ran the program. Unfortunately, I'm still getting the same kind of error:
    Code:
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 900000
            at org.itadaki.bzip2.BZip2BlockCompressor.writeRun(BZip2BlockCompressor.java:103)
            at org.itadaki.bzip2.BZip2BlockCompressor.close(BZip2BlockCompressor.java:201)
            at org.itadaki.bzip2.BZip2OutputStream.closeBlock(BZip2OutputStream.java:153)
            at org.itadaki.bzip2.BZip2OutputStream.write(BZip2OutputStream.java:107)
            at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
            at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:281)
            at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:124)
            at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
            at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:128)
            at java.io.BufferedWriter.write(BufferedWriter.java:229)
            at java.io.Writer.write(Writer.java:157)
            at org.usadellab.trimmomatic.fastq.FastqSerializer.writeRecord(FastqSerializer.java:63)
            at org.usadellab.trimmomatic.TrimmomaticPE.processSingleThreaded(TrimmomaticPE.java:76)
            at org.usadellab.trimmomatic.TrimmomaticPE.process(TrimmomaticPE.java:275)
            at org.usadellab.trimmomatic.TrimmomaticPE.run(TrimmomaticPE.java:347)
            at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:23)
    Any thoughts?

    Leave a comment:


  • westerman
    replied
    Try using only one thread. If nothing else that should give an good indication of the input line that is giving the error. As far as I know trimmomatic does not speed up very much with multiple threads. In any case for troubleshooting get rid of that variable.

    Leave a comment:


  • jcorn427
    replied
    Hi all, I'm hoping you can help me with an issue I'm having. I get a java exception as follows:
    Code:
    Exception in thread "Thread-4" java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 900000
    The command I ran was:
    Code:
    java -jar /data/illumina/Trimmomatic-0.30/trimmomatic-0.30.jar PE -threads 12 -phred33 -trimlog r.log 110908_SN388_0270_BC0265ACXX_DNA_1_CGATGT_L003.ft.R1_1.fastq.bz2 110908_SN388_0270_BC0265ACXX_DNA_1_CGATGT_L003.ft.R2_2.fastq.bz2 110908_SN388_0270_BC0265ACXX_DNA_1_CGATGT_L003.ft.R1_1.Qscore.paired.fastq.bz2 110908_SN388_0270_BC0265ACXX_DNA_1_CGATGT_L003.ft.R1_1.Qscore.unpaired.fastq.bz2 110908_SN388_0270_BC0265ACXX_DNA_1_CGATGT_L003.ft.R2_2.Qscore.paired.fastq.bz2 110908_SN388_0270_BC0265ACXX_DNA_1_CGATGT_L003.ft.R2_2.Qscore.unpaired.fastq.bz2 ILLUMINACLIP:/data/illumina/Trimmomatic-0.30/adapters/adapters_list.fa:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:30 MINLEN:36
    The version of Trimmomatic I am running is 0.30.
    The rest of the log can be found in the attached text file. Thanks so much. If there's anything else you need, let me know.
    Attached Files

    Leave a comment:


  • kentnf
    replied
    Hi tonybolger,

    How about add a function on Trimmomatic to remove the adapter of small RNA. The read is like this:

    small RNA + ADAPTER

    I just need the reads with adapter sequence. If the read has adapter, clip it. Otherwise, drop it.

    Thanks

    Leave a comment:


  • luiscunhamx
    replied
    Thanks Tony,

    I will give it a try

    Cheers

    Leave a comment:


  • tonybolger
    replied
    Originally posted by luiscunhamx View Post
    I had no idea that I had this type of error as the data were produced by hiseq2500 rapid run and I would expect all reads with 150bp as this is the raw data (and added suffixes), nevertheless do you think would be a good idea to filter by length before feeding it to Trimmomatic?
    I guess some processing was already applied to the reads, because as you say, the reads should be 150bp each. I normally recommend against using trimmed data if it all possible with Trimmomatic - it was designed to work on the raw output. Perhaps you could contact whoever supplied the data and see if they have the original data also.

    In any case, trimmomatic appears to break on such short read pairs - i guess i never tested such a scenario. You could try adding a MINLENGTH filter as the first step, to prevent the short reads causing problems.

    Thanks,

    Tony.

    Leave a comment:


  • luiscunhamx
    replied
    Hi Tony


    Strangely the reads are these

    @HISEQ2000:406:H0JYCADXX:2:1101:13467:8659_/1
    CA
    +
    CC

    and

    @HISEQ2000:406:H0JYCADXX:2:1101:13467:8659_/2
    G
    +
    @


    I had no idea that I had this type of error as the data were produced by hiseq2500 rapid run and I would expect all reads with 150bp as this is the raw data (and added suffixes), nevertheless do you think would be a good idea to filter by length before feeding it to Trimmomatic?

    Thanking in advance for the attention


    Luis

    Leave a comment:


  • tonybolger
    replied
    Originally posted by luiscunhamx View Post
    Sorry Tony,

    not sure why I did not post it in the first place.
    No problem.

    Can you also post the reads:

    HISEQ2000:406:H0JYCADXX:2:1101:13467:8659_/1 and HISEQ2000:406:H0JYCADXX:2:1101:13467:8659_/2

    from the input files? It seems they trigger something, and even though it looks like a bug in the trimmomatic (or a least lack of graceful failure), i would like to know the trigger so i can handle it better or survive it.

    Thanks,

    Tony.

    Leave a comment:

Latest Articles

Collapse

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    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
    ...
    10-14-2026, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
23 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
20 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
36 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Working...