Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • sells78
    Member
    • Feb 2016
    • 10

    cutadapt and barcode sequences

    Hi all,

    I'm trying to trim 125bp PE illumina reads with cutadapt to remove reads with any adapter sequence presence and then keep PE reeds which have no adapter or barcode readthrough.

    I've run cutadapt with -a AGATCGGAAGAGC -A AGATCGGAAGAGC -m 125 which works fine for read 1's.

    Any adapter readthrough in read 2 will contain 1 of 24 sample barcodes prior to the common adapter being read and given that these are variable and the reads are to be used for SNP analysis, I need to remove these as well.

    The first thought was to use -A NNNNNNNNAGATCGGAAGAGC, but that removes all read 2's in the data set. I tried running – A with reverse complement of all 24 barcodes prior to the common adapter (ie there were 24 -A's) but this removed 34% of data, so I'm not sure if that was correct. I finally tried incorporating the reverse complement of the restriction enzyme used which would be read prior to both barcode and common adapter and that removed around 16% of reads.

    Could anyone advise on the best approach for this kind of analysis or the correct way to do it as I dont feel I am there yet. Cutadapt manual talks about using NNNNNNNN (we have an 8 base barcode) if the barcode is embedded within the adapter, but ours is read before and thus as tried above, -A NNNNNNNNAGATCGGAAGAGC, removes all reads. I tried embedding NNNNNNNN to represent variable barcode between restriction site and adapter, but am not sure if this is correct.

    Thanks very much for any help.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Take a look at Sabre: https://github.com/najoshi/sabre otherwise you could split the samples first before doing the adapter trimming.

    Comment

    • sells78
      Member
      • Feb 2016
      • 10

      #3
      Hi genomax - appreciate the response.

      could you possibly expand on what you mean by splitting them?

      Many thanks

      Jamie

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        @Jamie: You have inline barcodes at beginning of read 2, which I presume will be used to separate the multiplexed samples?

        I was saying that you could use that information to first bin your R1/R2 reads into sample pools and then trim them afterwards as separate pools. At that point you could trim the barcode using fixed length trimming (followed by barcode trimming, if necessary) as a two pass operation.

        Comment

        • sells78
          Member
          • Feb 2016
          • 10

          #5
          Hi genomax,
          so samples have already been demultiplexed into libraries of 24 individuals and we have 30 libraries each with separate read 1 and read 2 files. I'm trying to run adapter removal on the 60 total files individually to remove the barcode/adapter read through at the end of read 2's, where the order of components on the read is wanted genomic sequence - restriction site - 8 bp barcode - adapter sequence.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            I see. So you don't want to separate the 24 individuals further as discriminated by that inline barcode?

            Any trimming should be done with both pairs of files (so in case a read gets dropped from read 2 then the corresponding read would be removed from read 1 keeping the order of reads in R1/R2 files in sync).

            I am not a regular cutadapt user but I can think of how you could do this with bbduk.sh. You could add all possible combinations of restriction site and the 8bp barcode (is that one per individual) in a file (or even to the adapters.fa file in the "resources" directory and then use that as input to scan against your data.

            Let me know if I am still missing something.

            Comment

            • Jessica_L
              Senior Member
              • Feb 2010
              • 117

              #7
              Your solution sounds right to me, GenoMax. I think with cutadapt, you can specifiy different files for either a forward or reverse primer/adapter sequence, but the idea is the same. I use cutadapt with two fasta files for processing one of our sample types since the kit vendor does the same thing and I'm comparing data with them.

              bbduk is on my list of things to investigate this year, though.

              Comment

              • sells78
                Member
                • Feb 2016
                • 10

                #8
                Hi Geno and Jessica,

                Apologies for the late thanks for your inputs into the query - very much apreciated.

                It seems the issue I've had is the default match in cutadapt is 3 between sequence and barcode and so obviously 3 N's match with every sequence . So the answer i smuch as you suggets but with increased match values to reduce random 3mer match

                Best to you both

                I've experimented with barcodes as a file and I think the answer will be to forget about using N's, use the multiple barcodes in a file and increase the default match value

                Comment

                Latest Articles

                Collapse

                • mylaser
                  Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by mylaser
                  Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
                  If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
                  This guide explains everything you need to know about...
                  Today, 01:13 AM
                • 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.
                  ...
                  07-09-2026, 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, 07-09-2026, 10:04 AM
                0 responses
                11 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-08-2026, 10:08 AM
                0 responses
                9 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-07-2026, 11:05 AM
                0 responses
                17 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...