Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • shis
    Member
    • Apr 2014
    • 16

    Trim barcode off

    Hi,
    I have a sample ID file based on barcode as below and I would like to trim barcode off from this file. The sequences are from Illumina using ddRADseq method.

    @FCC1LPDACXX:1:1101:1478:2239#GTNNNNTT/1
    TGACGCCATGCAGGCGATGAATGTGGAATATGATGAATCTTTCCTGGAGTGGCTTGAAATAATATTGCAGAATGCCTCTGAATACTGGCCTGCTCTTATTCATACGCGCGGTTTTTCCCGTACAACCCTATGGCAGTGCAACCAGCAGTGCAATCATGTCATTAGCTCATCAGTTTAGAATAGATGTCCAAAAAGGATAT
    +
    bbbeeeeegggegiiifiihiiiggihdffhidfihhh[cgffhfghfheghhhhYG__\bdd_\db`ggd_^_VZ]_bYZ``]_Z`caaY[TY]KYTZ`^a_eeeeegOO[bfhhhgihefhiighhihihiiihgihiiiiiggfgeeeeeeddddcdddddcccccccccccddccbbcbcdcc`bcccaccccbcb


    Can anyone suggest me how can I trimmed barcode off? Thanks
  • blancha
    Senior Member
    • May 2013
    • 367

    #2
    Trimmomatic?

    Comment

    • Michael.Ante
      Senior Member
      • Oct 2011
      • 127

      #3
      It seems, you used an external barcode; therefore it is not part of your sequence but part of the ID (GTNNNNTT).
      AFAIK you don't run into any trouble, while having the barcode in the read ID.
      If you still want to get rid of it, use awk to trim every fourth line.

      Comment

      • blancha
        Senior Member
        • May 2013
        • 367

        #4
        Yes, Michael.Ante is right. My answer is wrong.
        Trimmomatic is generally used to remove the adapter sequences within the read sequence.
        In this case, the barcode was sequenced separately, and appears in the ID.
        I can't think of a good reason to want to remove it from the ID, but awk could be used to remove it, as Michael.Ante suggested.
        Last edited by blancha; 04-30-2014, 09:00 AM.

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          I hope that barcode (GTNNNNTT) represents some form of masking because if it truly has 4 N's then the sequence must look pretty ugly.

          Comment

          • blancha
            Senior Member
            • May 2013
            • 367

            #6
            I was thinking the same thing.
            It is very odd. Half the bases in the barcode are Ns, yet there are no Ns in the sequence read below.
            It could be a form of masking, as you said, but I don't know what would be the point of the masking.

            Comment

            • Brian Bushnell
              Super Moderator
              • Jan 2014
              • 2709

              #7
              I assume 'N' in the bar code indicates a wildcard; in other words, all barcodes that start with GT and end with TT would be grouped together.

              Comment

              • shis
                Member
                • Apr 2014
                • 16

                #8
                Originally posted by Michael.Ante View Post
                It seems, you used an external barcode; therefore it is not part of your sequence but part of the ID (GTNNNNTT).
                AFAIK you don't run into any trouble, while having the barcode in the read ID.
                If you still want to get rid of it, use awk to trim every fourth line.
                Thanks Michael.Ante. But, how do I know that the barcode is not present in the sequence?

                Comment

                • GenoMax
                  Senior Member
                  • Feb 2008
                  • 7142

                  #9
                  Originally posted by shis View Post
                  Thanks Michael.Ante. But, how do I know that the barcode is not present in the sequence?
                  I suppose you are referring to adapters (and not barcodes)? In illumina technology, barcode/tag reads are read independently and are never part of the actual sequence read.

                  Comment

                  • mastal
                    Senior Member
                    • Mar 2009
                    • 666

                    #10
                    If it's RAD-Seq data, it could well have both adapters and barcodes in the reads.

                    Has the data already been demultiplexed to separate the reads into different files by barcode?

                    A barcode with several Ns in it suggests that the Illumina index read did not go very well, and you can't really assign that read to a particular barcode.

                    I'm not sure about ddRAD-Seq, but in RAD-Seq data you expect to see an MID (multiplex identifier) and the restriction enzyme site at the start of the read.

                    At the 5' end of the read, bases 9-14, 'TGCAGG', could be the restriction site for Sbf1, one of the enzymes often used in RAD-Seq.
                    Last edited by mastal; 04-30-2014, 12:22 PM.

                    Comment

                    • shis
                      Member
                      • Apr 2014
                      • 16

                      #11
                      Originally posted by mastal View Post
                      If it's RAD-Seq data, it could well have both adapters and barcodes in the reads.

                      Has the data already been demultiplexed to separate the reads into different files by barcode?

                      A barcode with several Ns in it suggests that the Illumina index read did not go very well, and you can't really assign that read to a particular barcode.

                      I'm not sure about ddRAD-Seq, but in RAD-Seq data you expect to see an MID (multiplex identifier) and the restriction enzyme site at the start of the read.

                      At the 5' end of the read, bases 9-14, 'TGCAGG', could be the restriction site for Sbf1, one of the enzymes often used in RAD-Seq.
                      Yes, the data has already been demultiplexed into samples ID files based on barcode.

                      Comment

                      • Michael.Ante
                        Senior Member
                        • Oct 2011
                        • 127

                        #12
                        Yes, the data has already been demultiplexed into samples ID files based on barcode.
                        In this case, the barcode is almost never appearing in the read-sequence.

                        Thanks Michael.Ante. But, how do I know that the barcode is not present in the sequence?
                        Just make an FastQC report from the demultiplexed libraries. You can check there the "per base sequence content". If you still have a barcode present (e.g. GTNNNNTT),you would observe this sequence at the reads' start:
                        Pos 1 a 'G', pos2, pos 7 & pos 8 a 'T'.

                        Comment

                        Latest Articles

                        Collapse

                        • seqadmin
                          Pathogen Surveillance with Advanced Genomic Tools
                          by seqadmin




                          The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
                          03-24-2025, 11:48 AM
                        • seqadmin
                          New Genomics Tools and Methods Shared at AGBT 2025
                          by seqadmin


                          This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

                          The Headliner
                          The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
                          03-03-2025, 01:39 PM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by seqadmin, 03-20-2025, 05:03 AM
                        0 responses
                        41 views
                        0 reactions
                        Last Post seqadmin  
                        Started by seqadmin, 03-19-2025, 07:27 AM
                        0 responses
                        49 views
                        0 reactions
                        Last Post seqadmin  
                        Started by seqadmin, 03-18-2025, 12:50 PM
                        0 responses
                        36 views
                        0 reactions
                        Last Post seqadmin  
                        Started by seqadmin, 03-03-2025, 01:15 PM
                        0 responses
                        192 views
                        0 reactions
                        Last Post seqadmin  
                        Working...