Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Elfangor
    Junior Member
    • Mar 2016
    • 4

    Trimming adapters with Cutadapt

    Hi everyone, I'm having some problems trying to figure out what sequence of adapter should I enter as input in cutadapt or trimmomatic to trim them from my fastqs.

    I have a set of fastqs, each of them with a set of reads of 51 bp, comencing with an N and then a series of letters corresponding to the read. I have also the information about the index sequence in each fastq, after demultiplexing, and two sequences determining the primers used. For instance, this is the information about one fastqc I have:

    @700470R:449:HVHH7BCXX:2:1101:1406:1948 1:N:0:GTGAAA
    NGCAGCATTGTACAGGGCTATGAAGATCGGAAGAGCACACGTCTGAACTCC
    +
    #<DDDEHIIIIIIIIIIIIIIIHIIIIIIIIIIIIIIIIIIIIIIHIIIII
    @700470R:449:HVHH7BCXX:2:1101:1814:1992 1:N:0:GTGAAA
    NCCGGGTGCCGTAGGCTTAGATCGGAAGAGCACACGTCTGAACTCCAGTCA
    +
    #<DDDIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIH<DFGHIIIII
    @700470R:449:HVHH7BCXX:2:1101:2184:1885 1:N:0:GTGAAA
    NGGGGAGGTGGAGCAGATCGGAAGAGCACACGTCTGAACTCCAGTCACGTG
    +
    #<DDD<<CGHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
    The index sequence is, as determined in the header, GTGAAA. I also have information about the SR primer, which is:

    5 ́AATGATACGGCGACCACCGAGATCTACACGTTCAGAGTTCTACAGTGGGA3 ́

    and the Index primer, which is:

    5 ́CAAGCAGAAGACGGCATACGAGATNNNNNNGTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT3 ́

    Substituting the NNNNNN with the index sequence provided in the header of the corresponding fastq, I would obtain the barcoded adapter used for sequencing, if I'm not wrong.

    So here is where I start getting lost. After doing fastqc analysis, I got a list with a bunch of sequences in the overrepresented sequences, corresponding to Illumina Multiplexing PCR primer, as if there were different adapters withing the whole fastq in the same file.

    So, here is my question:

    ¿What sequence should I include in cutadapt program to trim in this case, for instance? Should I include more than one? In my oppinion I should include the Index primer sequence substituting the NNNNNN with the index sequence (barcode), for each fastq, but I'm not sure whether this is correct or not, and whether I should include more sequences or not. Also I'm not sure about what parameters I should include to run cutadapt. I assume that I should add the variables -a and -g to include the adaptor sequence in both sides to be trimmed, or if just adding -a would work. Also wondering about Error Tolerance (-e) in matching letters in adapters (don't know what by default value is included if no specification is added). Also wondering about using Wildcards NNNNN as universal adapter or just creating a list for each barcode used in each sample fastq to be included as adapter variable. Also wondering if using Quality trimming would be usefull, although the average quality base call in each read is very high (over 30). And also wondering if ussing --trim-n option to trim possible flanking Ns in my reads...

    As you all see... quite lost I am...
  • dovah
    Member
    • Jul 2014
    • 18

    #2
    Hi!

    In my experience, using trimmomatic, you can use the information about your platform to remove universal adapters from your reads, no need to know the exact index sequence.

    You can find these universal adapters as part of the trimmomatic package, or can be downloaded from here. Note that the adapter file to be specified in your trimming procedure depends on a combination of platform and nature of sequencing reads (paired/single end). You can find Trimmomatic usage info here. It's very clearly explained and quite self-explanatory, but write back here if you still have issues.

    Comment

    • ronaldrcutler
      Member
      • May 2016
      • 80

      #3
      Also consider doing a quality analysis of your fastq files before doing any trimming or proceeding in the pipeline. Use FastQC for the quality analysis and then use Trim_galore to trim the reads of adaptors in addition to the general quality improvement of the reads.

      Comment

      • kerplunk412
        Senior Member
        • Jun 2012
        • 119

        #4
        I think this is what you need:

        cutadapt -a AGATCGGAAGAG -o YOUR_FILE.trim1.fq --minimum-length 15 YOUR_FILE.fastq.gz

        You don't need to put in the index sequence, as cutadapt will remove anything 3' of the adapter sequence, unless you specify otherwise. The minimum length command will throw out any reads less than the specified value. I think the default allowed error rate is 0.1, which should be fine.

        It does look like you can use the --trim-n option to remove the first N.

        It probably isn't necessary to quality trim, although you may want to quality filter before the adapter trimming. Also probably no need for the -g command, unless this was a particular kind of library where you expect to see adapter sequence at the 5' end of the read.

        Comment

        Latest Articles

        Collapse

        • mylaser
          Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by mylaser
          Kheloyaar: The Complete Guide to Kheloyaar Loginand Kheloyaar ID
          The online gaming industry has transformed the way people enjoy digital entertainment. As technology continues to improve, players are looking for platforms that offer convenience, security, and a seamless user experience. Kheloyaarhas gained attention among users who value an easy-to-use platform, quick account access, and a simple registration process.
          Whether you're exploring Kheloyaar for the first time or want to understand...
          Yesterday, 09:27 PM
        • SEQadmin2
          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          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.
          ...
          Yesterday, 11:10 AM
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 10:04 AM
        0 responses
        8 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        7 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-07-2026, 11:05 AM
        0 responses
        11 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-02-2026, 11:08 AM
        0 responses
        31 views
        0 reactions
        Last Post SEQadmin2  
        Working...