Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Struggling with quality trimming

    Hello everybody,

    this is my first try to trim Illumina (paired-end) reads on the unix command line.
    If i get it correctly, de-multiplexing was already done by the sequencing service.
    I guess this also means that the adapters are also gone already.

    What i want to do is trimming the reads by quality.
    I checked it on FastQC and want to get rid of read with a quality below 20.

    I tried trim_galore with
    trim_galore ../name1.fastq -q 20 --paired > trim_name.fastq

    which gives me:
    "No quality encoding type selected. Assuming that the data provided uses Sanger encoded Phred scores (default)
    Please provide an even number of input files for paired-end FastQ trimming! Aborting ..." <- i got the idea of this line

    But i don't really know how to find out how my data are encoded.
    The data look like this.

    @NS500339:99:H3H52AFXX:1:11101:5599:1027 2:N:0:GTGAAA
    NNNCTGGTTATAGGTACATTGAGCAACTGACTGAAATGCCTCAAAATGTTCTTTACGATGCCATTGGGATATATCAACGGTGGTATATCCAGTGATTTTTTTCTCCATTTTAGCTTCCTTAGCTCCTGAAAATCTCGANANCTCNNAAAA
    +
    ###/AEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEAEEEEEEAEEEEEEEEEEEEEEEEEEEEEEEEEEEE<6/<EEEEEEEEAAE6EEE/EEEEEEEEEEEAAEEEEE/6EE<AEEEEAEA<EEE/EEE/AAAE#<#<A/##/<<6


    I also tried fastx toolbox with the following command
    fastq_quality_filter -q 20 -i ../name.fastq -v -o trimmed_name.fastq

    The program works,
    Minimum percentage: 0
    Input: 4564772 reads.
    Output: 4564772 reads.
    discarded 0 (0%) low-quality reads.

    but if i check it again with FastQC, there are still reads with a quality below 20.


    Maybe someone can please help me with one of the programs.

    Thanks a lot, Alex

  • #2
    Grab a copy of BBMap and then run

    Code:
    $ zcat yourfile.fastq.gz | head -20 > new.fq
    $ testformat.sh in=new.fq
    to identify the format of the encoding in your file.

    While you have a copy of BBMap handy, use bbduk.sh to do trimming.

    Code:
    $ bbduk.sh -Xmx1g in=reads.fq.gz out=clean.fq.gz qtrim=r trimq=10

    Comment


    • #3
      Thanks

      Thanks a lot, if now the following mapping step also works, this will be the solution

      Comment


      • #4
        You could stay with BBMap and use bbmap.sh to do the mapping as well.

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin


          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
          Yesterday, 07:01 AM
        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        55 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        51 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        45 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        55 views
        0 likes
        Last Post seqadmin  
        Working...
        X