Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • yip
    replied
    I assume that Trimmomatic processes the reads sequentially, so I don't understand why a run with paired-end fastq input could take >10GB of memory easily. Does anyone know what I am missing?

    I'm using trimmomatic-0.36 with 4 threads for a job. The input fastq files are about 4GB in size each.

    Thank you!
    yip

    Leave a comment:


  • apredeus
    replied
    Originally posted by mastal View Post
    Why do you think this indicates failure? You asked trimmomatic to keep both reads of a pair when it finds adapter in palindrome mode, and it appears to have done that.
    This does not mean that trimmomatic has not trimmed the adapters.
    You are right, thank you! The message confused me as well.

    Leave a comment:


  • apredeus
    replied
    Code:
    Note that the adapter sequences used for palindrome mode are the reverse complements of the sequences used in simple mode.
    Ok, I understand now. And it's the rev-comp of /2 that is present in read 1, and vise versa - so that's why the adapters are "switched". Which I guess makes sense since R1 read-through would lead us to reading adapter ligated to R2.

    However, it makes it very confusing to make your own file. It should definitely be switched to sequences matching the simple mode.

    Edit: The adapter fasta sequences you have above appear to be the reverse complements of the sequences I have in my version of the TruSeqv3-PE adapter fasta file, which may explain why they didn't work until you used the reverse complements. My version of the TruSeqv3 file is:
    Yes, I know - I've written before that it works OK with the rev-comp adapters that are also switched. I was just not sure why that was the case.

    One remaining question is why does it not work for with the extra option to keep the output paired-ended?

    Leave a comment:


  • mastal
    replied
    Originally posted by apredeus View Post
    I've also found a strange issue with the "keepBothEnds" option.

    while adding the option to keep both reads leads to failure:

    Code:
    java -jar $JAR PE -trimlog trim.log test.R1.fastq test.R2.fastq output_forward_paired.fq.gz output_forward_unpaired.fq.gz output_reverse_paired.fq.gz output_reverse_unpaired.fq.gz ILLUMINACLIP:TruSeq3-PE.fa:0:30:10:2:TRUE
    output:

    Code:
    Using PrefixPair: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT' and 'GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT'
    ILLUMINACLIP: Using 1 prefix pairs, 0 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences
    Quality encoding detected as phred33
    Input Read Pairs: 25000 Both Surviving: 24987 (99.95%) Forward Only Surviving: 0 (0.00%) Reverse Only Surviving: 0 (0.00%) Dropped: 13 (0.05%)
    TrimmomaticPE: Completed successfully
    This should not happen. My trimmomatic version is 0.36.
    Why do you think this indicates failure? You asked trimmomatic to keep both reads of a pair when it finds adapter in palindrome mode, and it appears to have done that.
    This does not mean that trimmomatic has not trimmed the adapters.

    The trimlog tells you for each read how many bases have been trimmed. Check the trimlog entries for some of the reads that were ending up in the forward_unpaired file previously, and check whether adapters have been trimmed from both the forward and reverse reads, although both reads of the pair have been kept, rather than the reverse read being discarded.

    Leave a comment:


  • mastal
    replied
    Originally posted by apredeus View Post
    Dear Tony,

    few small suggestions that can make the program a lot easier to use -

    1) just require 1 tag/prefix for the output, and use that to construct the output file names. Four file names make the command unnecessary long and unreadable
    Unless you are using a very old version of trimmomatic, you can use the -basein and -baseout options to specify the prefix of the input and output file names.

    Leave a comment:


  • mastal
    replied
    Originally posted by apredeus View Post
    then I run

    Code:
    java -jar $JAR PE -trimlog trim.log test.R1.fastq test.R2.fastq output_forward_paired.fq.gz output_forward_unpaired.fq.gz output_reverse_paired.fq.gz output_reverse_unpaired.fq.gz ILLUMINACLIP:test.fa:0:30:10
    And the adapter is not recognized or clipped. IT IS, however, successfully clipped in simple mode (e.g. when adapters are renamed)!

    Even more curiously, the adapters I've posted above are actually reverse-complements of the TrueSeq3-PE.fa. When I use the rev-comp, they are recognized!

    I think this might be due to the library construction peculiarities of RNA-seq, but I am not sure. At any rate that's a strange behaviour for the trimmer, is it not?
    One point to note might be that the thresholds you are using in the ILLUMINACLIP command are 30 for the palindrome mode and 10 for the simple mode, and you are not allowing for any mismatches. So it's quite possible that in palindrome mode the score is not reaching the threshold of 30 that trimmomatic needs in order to identify the presence of the adapter, whereas the score of 10 requires fewer matching bases and is more easily reached. Each matching base contributes about 0.6 to the score, according to the trimmomatic manual.

    Note that the adapter sequences used for palindrome mode are the reverse complements of the sequences used in simple mode.


    Edit: The adapter fasta sequences you have above appear to be the reverse complements of the sequences I have in my version of the TruSeqv3-PE adapter fasta file, which may explain why they didn't work until you used the reverse complements. My version of the TruSeqv3 file is:

    >PrefixPE/1
    TACACTCTTTCCCTACACGACGCTCTTCCGATCT
    >PrefixPE/2
    GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT

    It's also possible that at least one of the 2 adapters is different for the RNA-Seq kits.
    Last edited by mastal; 04-29-2017, 03:14 PM.

    Leave a comment:


  • apredeus
    replied
    I've also found a strange issue with the "keepBothEnds" option.

    In the example I have described two posts above (but with bigger files, 25K reads each), the following command
    Code:
    java -jar $JAR PE -trimlog trim.log test.R1.fastq test.R2.fastq output_forward_paired.fq.gz output_forward_unpaired.fq.gz output_reverse_paired.fq.gz output_reverse_unpaired.fq.gz ILLUMINACLIP:TruSeq3-PE.fa:0:30:10
    gives the following output:

    Code:
    Using PrefixPair: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT' and 'GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT'
    ILLUMINACLIP: Using 1 prefix pairs, 0 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences
    Quality encoding detected as phred33
    Input Read Pairs: 25000 Both Surviving: 18039 (72.16%) Forward Only Surviving: 6948 (27.79%) Reverse Only Surviving: 0 (0.00%) Dropped: 13 (0.05%)
    TrimmomaticPE: Completed successfully
    while adding the option to keep both reads leads to failure:

    Code:
    java -jar $JAR PE -trimlog trim.log test.R1.fastq test.R2.fastq output_forward_paired.fq.gz output_forward_unpaired.fq.gz output_reverse_paired.fq.gz output_reverse_unpaired.fq.gz ILLUMINACLIP:TruSeq3-PE.fa:0:30:10:2:TRUE
    output:

    Code:
    Using PrefixPair: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT' and 'GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT'
    ILLUMINACLIP: Using 1 prefix pairs, 0 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences
    Quality encoding detected as phred33
    Input Read Pairs: 25000 Both Surviving: 24987 (99.95%) Forward Only Surviving: 0 (0.00%) Reverse Only Surviving: 0 (0.00%) Dropped: 13 (0.05%)
    TrimmomaticPE: Completed successfully
    This should not happen. My trimmomatic version is 0.36.

    Leave a comment:


  • apredeus
    replied
    Originally posted by tonybolger View Post
    Enjoy and happy trimming.
    Dear Tony,

    few small suggestions that can make the program a lot easier to use -

    1) just require 1 tag/prefix for the output, and use that to construct the output file names. Four file names make the command unnecessary long and unreadable
    2) make a simple wrapper around the jar, sort of like FastQC has. This would also allow to "install" the program and thus have the adapter fasta at a fixed location for the program.

    Leave a comment:


  • apredeus
    replied
    Originally posted by Brian Bushnell View Post
    Hi all,

    I'm testing Trimmomatic's performance on adapter removal, and the results are mysteriously bad. So I'd like to make sure I'm not doing anything wrong. This is my command line (modified from the website):

    java -Xmx8g -jar trimmomatic-0.32.jar SE -phred33 dirty.fq tclean.fq ILLUMINACLIP:gruseq.fa:2:30:10

    ...where dirty.fq is a file containing reads with adapter sequences and gruseq.fa is a file containing the adapter sequences. The adapters are inserted synthetically and the reads are tagged, so I know precisely what the correct results should be, and what I'm getting is not really close. Any suggestions?
    Hello Brian,

    did you figure out what was the issue? I'm perplexed - I wanted to use Trimmomatic and BBduk and compare the results, however, Trimmomatic just would not remove the adapter that is absolutely certainly there and could be found using simply using grep. And they are precisely the case for the palindrome mode.

    So I have my test reads that are just two reads - one R1, one R2.

    Code:
    @E00513:47:HF757ALXX:1:1101:17208:2047 1:N:0:ATCACG
    CNAAAAAAAAGATTGCGACCTCGATGTTGGATTAAAATGAACTTTTGGCGCAAAAGTTAAAAGGGTTAGGTCTGTTCGACCTTTAAAATTTTAGATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCACGTATGCCGTCTTC
    +
    <#AAFAJJJJJFJFJFJJJJF<AFJJJJJJFFFJJJJJ<JF-FJJJJJFJA<-FAF-FFJAJFJFAFJJJAAF<<7<JJJ<JJJAJJJJJJJJJFJFJFFFJJFA<FJ<FJ7F<7--7F<JAFAAAFFFJJJ<-FA7FAF<J77AFJJ<-
    @E00513:47:HF757ALXX:1:1101:17208:2047 2:N:0:ATCACG
    AAAATTTTAAAGGTCGAACAGACCTAACCCTTTTAACTTTTGCGCCCAAAGTTCATTTTAATCCAACATCGAGGTCGCAATCTTTTTTTTCGAGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTAGATCTCGGTGGTCGACGTATCAAT
    +
    AAF<FFAFAJJJJAJFJJFJJFJJJAJJJJJFJFFFJJJJJFAF<<-A<-<FFFJJJJFJJ<FFFFJ7<F-77A--7<<FJJ7-<AFF<F7AFJ-7--7--<-77-77-A)7-FJ<7A-7FA<-----77--A))7)7)<)))7<-----
    Then I take the following adapter file:
    Code:
    >PrefixPE/1
    AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC
    >PrefixPE/2
    AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTA
    Both of these could be found in above reads - first one in R1, second one in R2. Both start at position 93.

    then I run

    Code:
    java -jar $JAR PE -trimlog trim.log test.R1.fastq test.R2.fastq output_forward_paired.fq.gz output_forward_unpaired.fq.gz output_reverse_paired.fq.gz output_reverse_unpaired.fq.gz ILLUMINACLIP:test.fa:0:30:10
    And the adapter is not recognized or clipped. IT IS, however, successfully clipped in simple mode (e.g. when adapters are renamed)!

    Even more curiously, the adapters I've posted above are actually reverse-complements of the TrueSeq3-PE.fa. When I use the rev-comp, they are recognized!

    I think this might be due to the library construction peculiarities of RNA-seq, but I am not sure. At any rate that's a strange behaviour for the trimmer, is it not?

    Leave a comment:


  • mgbfx9
    replied
    Hi GeoMax,

    Thank you so much for all the help.

    Yes, I saw that and for that reason I posted the percent surviving report.
    Yes, I ran FastQC before processing, but after processing FastQC was giving me lots of troubles. Anyway,
    Before Timming, total sequence was 3032230, and it didn’t pass per base sequence quality and the adapter content. From the graph, the adapter content (which was Nextera Transposase sequence) which was started at 40bp position and went little over 60% till 229 bp position. I am not sure how to interpret this without sending the graph. But I am not sure how to paste this graph. I tried printScrn, it is still not pasting.
    After trimming, total sequence is 1084634, but this sample passed both per base sequence quality and adapter content.

    How to check the adapter contamination? Is there a way?

    I am not clear about your last question: "How long were the reads to begin with (you have asked for minlength 36)?"
    Yes, I asked for minimum length 36, so it would drop the read if it is below 36. And my code at the end was:
    ILLUMINACLIP:/home/mydir/Trimmomatic-0.33/adapters/NexteraPE-PE.fa:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
    Output was :
    Using PrefixPair: 'AGATGTGTATAAGAGACAG' and 'AGATGTGTATAAGAGACAG'
    Using Long Clipping Sequence: 'GTCTCGTGGGCTCGGAGATGTGTATAAGAGACAG'
    Using Long Clipping Sequence: 'TCGTCGGCAGCGTCAGATGTGTATAAGAGACAG'
    Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTGACGCTGCCGACGA'
    Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTCCGAGCCCACGAGAC'
    ILLUMINACLIP: Using 1 prefix pairs, 4 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences
    Input Read Pairs: 3032230 Both Surviving: 1084634 (35.77%) Forward Only Surviving: 1933475 (63.76%) Reverse Only Surviving: 606 (0.02%) Dropped: 13515 (0.45%)
    TrimmomaticPE: Completed successfully.

    Leave a comment:


  • GenoMax
    replied
    Hmm. That is a significant fraction of reads where only one read from the pair is surviving.

    Have you ever posted what the FastQC reports looked like for this run? When you were doing it wrong (post # 162) 99% of reads were surviving so it looks like either your reads have a lot of adapter contamination or you may be doing something incorrect. How long were the reads to begin with (you have asked for minlength 36)?

    Leave a comment:


  • mgbfx9
    replied
    Another thing, I thought to mention that after using Trimmomatic tools, the end of the output reported:

    Input Read Pairs: 3032230 Both Surviving: 1084634 (35.77%) Forward Only Surviving: 1933475 (63.76%) Reverse Only Surviving: 606 (0.02%) Dropped: 13515 (0.45%)
    TrimmomaticPE: Completed successfully.

    Leave a comment:


  • mgbfx9
    replied
    Hi GenoMax,

    Yes, I also don’t think there would be any corruption during trimming. I just checked again the trimlog file as you suggested, I don’t see any errors/problems in the file. Although I am not expert in reading the trimlog file, but what I understood from the trimlog file description from Trimmomatic:

    -trimlog
    Specifying a trimlog file creates a log of all read trimmings,
    indicating the following details:
    • the read name
    • the surviving sequence length
    • the location of the first surviving base, aka. the amount
    trimmed from the start
    • the location of the last surviving base in the original read
    • the amount trimmed from the end
    Multiple steps can be specified as required, by using additional
    arguments at the end.
    Most steps take one or more settings, delimited by ´:´ (a colon)

    I wish I knew which one is which more better.

    Here is one of my file with header and first few lines before trimming:

    @HWI-M01825:177:000000000-AGYW0:1:1101:15470:1332 1:N:0:NAAGGCG
    AAATAAAACCGGGCACAACACGAAGGCGCATTTCCGATATCCATAAAGAGTCGGTCTTGTCTGTTACTGTCTCTTATACACATCTCCGAGCCCACGAGACTAAGGCGAATCTCGTATGCCGTCTTCTGCTTGAAAAAAAAAAAAACAGAAAAAAAAAAACAGAGAAGAGAATACAGGCTAAGAGAATATTATTAGAGAATTGACAATATGAGATAAGTAAAGAAATAGAAGTCATATGATAGCACAGATA
    +
    CDDDDFFFFCCCGGGGGGGGGGGGGGHGGGGGHHHGGGGGHHHHHHHHHHHHGGFGGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHGGGGGGHGGGGGGHHHHHHGGGF/GHHGGHHHHGDGHGHHHHHHGGHHHHGGCGGG###########################################################################################################

    Here is the same file with header and first few lines after trimming:

    @HWI-M01825:177:000000000-AGYW0:1:1101:15276:1342 1:N:0:TAAGGCG
    GCATAAACGCTGGTCATGAAATGACGAAGGCTATCGCCATTGCACAGTTTAATGATGACAGCCCGGAAGCGAGGAAAATAACCCGGCGCTGGAGAATAGGTGAAGCAGCGGATTTAGTTGGGGTTTCTTCTCAGGCTATCAGAGATGCCGAGAAAGCAGGGCGACTACCGCACCCGGATATGGAAATTCGAGGACGGGTTGAGCAACGTGTTGGTTATACAATTGAACAAATTAATCATATGCGTGATG
    +
    BABBBFFFBBB??GGGGGGGGGHH42FEFGEHHHHGFGGGHHHHBGHFEDHFHHFFDHHHHHGGGGGGGHGFGGGHHFFEGGFEEG?EEE?EEHBHFFHEGFHFHHHHHGG@D?HHHFHBGCG/CDHFHHHFHHFFGHHHHHHHGFHFHGG?-EGGHHHA@DGGGGBFB@@@BGFGGBFFFFBBFFBFBE/BBBFB;?BEBFFF/F?BEEFA.E;.FFFFFFFFFFFFFF?BFFEFFFFFFFBFAADFF

    Here is the same file with its trimlog with first few lines:

    HWI-M01825:177:000000000-AGYW0:1:1101:15470:1332 1:N:0:NAAGGCG 66 0 66 184
    HWI-M01825:177:000000000-AGYW0:1:1101:15470:1332 2:N:0:NAAGGCG 0 0 0 0
    HWI-M01825:177:000000000-AGYW0:1:1101:15423:1336 1:N:0:NAAGGCG 212 0 212 38
    HWI-M01825:177:000000000-AGYW0:1:1101:15423:1336 2:N:0:NAAGGCG 0 0 0 0
    HWI-M01825:177:000000000-AGYW0:1:1101:15276:1342 1:N:0:TAAGGCG 249 0 249 1

    Any idea?
    Thanks in advance,

    Leave a comment:


  • GenoMax
    replied
    They shouldn't have become corrupted during trimming. Did you check the trimlog file after the run? Were there any errors/problems noted in that file? Did the stats look reasonable (small number of reads trimmed)?

    Leave a comment:


  • mgbfx9
    replied
    Thank you, GenoMax for your suggestion.

    Yes, I am sure the full paths are included. I have ran Soapdenovo2 earlier with these files but they were not trimmed. So I have the configuration file, I did exactly what I did before.
    And also I checked whether these files have anything because I had the same doubt, and they are not empty, may be they are little shorter in sizes but they have same headers.
    I am wondering whether they could be corrupted? Would it be possible during the trimming?
    Thanks,

    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, Yesterday, 11:13 AM
0 responses
16 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, Yesterday, 10:48 AM
0 responses
16 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
35 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...