Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • uloeber
    Member
    • Mar 2013
    • 44

    Demultiplexing PacBio sequences

    Hi all,
    I have the following problem:
    I have a dataset containing circurlarized and linear DNA. It was amplified with two pairs of primers using inverse PCR. I'd like to dissect the data by the following scheme:
    Primer1a----------Primer1b
    Primer2a----------Primer2b
    Primer1a---------- or ----------Primer1a
    Primer1b---------- or ----------Primer1b
    Primer2a---------- or ----------Primer2a
    Primer2b---------- or ----------Primer2b

    I tried to use cutadapt for this issue, but it seems that for the paired primers I only get the sequences with e.g. 1a at 5', 1b at 3' and have to specify it the other way around.
    cutadapt -g ^P1 -a P2\$ --trimmed-only -e 0.05 --no-trim >out.fasta in.fasta
    I need an approach where I can specify a certain error rate as well as the possibility to search for example within the first and last 40 bp for my 20 bp primer.
    Do you have any suggestions???
    Thanks in advance!
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    You can use BBDuk to look for this kind of thing:

    bbduk.sh in=reads.fq out=unmatched.fq outm=matched.fq ref=primer1a.fa k=20 restrictleft=40 edist=3 -da

    That will allow an edit distance of 3 and only look for matching kmers in the first 40 bp of the reads. You can subsequently trim the reads in another pass:

    bbduk.sh in=matched.fq out=trimmed.fq ref=primer1a.fa k=20 restrictleft=40 edist=3 ktrim=l -da

    For the adapters on the right end, you'd use "ktrim=r" and "restrictright=40".
    Last edited by Brian Bushnell; 11-23-2016, 02:03 PM.

    Comment

    • uloeber
      Member
      • Mar 2013
      • 44

      #3
      Hi Brian,
      Thanks for your reply! I forgot to mention, I want to keep the reads untrimmed. And would your software care about the "both primers present" issue? Otherwise I have again to check every possibility separately for every sample. That's what I try to avoid. But again, thank you very much! I appreciate your help. Bbnorm is one of my favorites.
      Best wishes,
      Ulrike

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        Hi Ulrike,

        The first command will not do any trimming, only filtering. And no - unfortunately, BBDuk will not handle both ends at once, so you would need 2 passes. However, if you have a lot of different primers, you can put them all in a file and demultiplex with Seal like this:

        seal.sh in=reads.fq pattern=out_%.fq ref=primers.fa restrictleft=40 k=20 edist=3 -da

        That would produce one output file per primer sequence. Might save some time.

        Comment

        Latest Articles

        Collapse

        • 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
        • GATTACAT
          Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by GATTACAT
          Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
          07-01-2026, 11:43 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 10:04 AM
        0 responses
        10 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
        15 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...