Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • adaptor/barcode trimming that are NOT in the 5' or 3' end

    Hi,

    Is there any tool available that allows to trim adapter (and primers) that are inside of the reads (not in the 5' or 3' ends)?

    For whatever reason a portion of my reads have a variable number of random bases before the adapter and primer. I need a tool that is able to trim the adapter+primer and any bases before it (this is between the 5'end and the adapter). I need to do the same for the 3'ends, where I have the same issue.

    This is an example of such a read. In red are the adapter and primer sequences. After trimming, only the lower case portion should remain:

    >made-up example
    ATCGTAGTATTAGGATCGTCGCTGATGACTGAatgatgatagttacctagagcta[...]cgacatcacgaccccgatagaATAGCTAGCTATCGATCGATCTGACATAGACA

    A custom script would do it as well. I tried using the bash tool grep, but wasn't able to make it work.

    These sequences are amplicons generated using barcoded COI primers in PacBIO (with the Conserved Consensus Sequencing protocol). When I say adapter I mean the barcode that was added to the primers to be able to split the libraries.

    Thanks in advance for your answers.

    Iria

  • #2
    Agrep

    agrep, a fuzzy grep version:


    best implemeted in TRE:
    http://en.wikipedia.org/wiki/TRE_(computing)

    Comment


    • #3
      Skewer

      Suppose the content of test.fasta is:

      >made-up example
      ATCGTAGTATTAGGATCGTCGCTGATGACTGAatgatgatagttacctagagctaGAGACCGCCT
      GGGAATACCGGGTGCTGTAGGCTTTGGAATTCcgacatcacgaccccgatagaATAGCTAGCTA
      TCGATC
      GATCTGACATAGACA

      and you use the following command:
      $ cat test.fasta | skewer -x ATAGCTAGCTATCGATC -e 3 - -1 2>/dev/null | skewer -x ATTAGGATCGTCGCTGATGACTGA -e 5 - -1 2>/dev/null

      you will get the following result:

      >made-up example
      atgatgatagttacctagagctaGAGACCGCCTGGGAATACCGGGTGCTGTAGGCTTTGGAATTCcgacatcacgaccccgataga

      where ATAGCTAGCTATCGATC is the 3' end adapter sequence; ATTAGGATCGTCGCTGATGACTGA is the 5' end adapter sequence.

      See http://seqanswers.com/forums/showthr...ghlight=skewer for more details.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Genetic Variation in Immunogenetics and Antibody Diversity
        by seqadmin



        The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben Martínez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...
        11-06-2024, 07:24 PM
      • seqadmin
        Choosing Between NGS and qPCR
        by seqadmin



        Next-generation sequencing (NGS) and quantitative polymerase chain reaction (qPCR) are essential techniques for investigating the genome, transcriptome, and epigenome. In many cases, choosing the appropriate technique is straightforward, but in others, it can be more challenging to determine the most effective option. A simple distinction is that smaller, more focused projects are typically better suited for qPCR, while larger, more complex datasets benefit from NGS. However,...
        10-18-2024, 07:11 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 11:09 AM
      0 responses
      24 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Today, 06:13 AM
      0 responses
      20 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 11-01-2024, 06:09 AM
      0 responses
      30 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-30-2024, 05:31 AM
      0 responses
      21 views
      0 likes
      Last Post seqadmin  
      Working...
      X