Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xhuister
    Member
    • Apr 2010
    • 41

    #1

    Removing adapters, primers and polyA/T tails using Perl?

    Hi all,

    I've got many short sequences like the following:
    ADAPTER1 (or 2) + insert + Poly(A) + GGGG(n) + ADAPTER 1 ( or 2)

    I'd like to get the insert part for mapping. Also I need to record the adapter type, the length of poly(A) tail and length of GGGG(n) part.

    Because it is more than just adpater trimming, I think it is better to write a script to record and trim the adapter, poly(A), GGGG(n) by myself. I can only write some Perl scripts.

    But there should be some insertions or deletions in the adapter/polyA/GGG. Is there any Perl function or BioPerl function or some tool/package can search substrings with insertion/deletions/substitution?

    Thank you!
  • sphil
    Senior Member
    • Apr 2010
    • 192

    #2
    Maybe you can have a look at http://hannonlab.cshl.edu/fastx_toolkit/. There is trimming as well as clipping of reads in a fasta/q file. Using these and manually (of course using s script) monitor the length should do the job...

    Comment

    • xhuister
      Member
      • Apr 2010
      • 41

      #3
      Originally posted by sphil View Post
      Maybe you can have a look at http://hannonlab.cshl.edu/fastx_toolkit/. There is trimming as well as clipping of reads in a fasta/q file. Using these and manually (of course using s script) monitor the length should do the job...
      Thank you, sphil. The FASTX can only trim the adapter, but it cannot trim the polyA tail (A-stretch). I need to get the A-stretch and G-stretch length, is there any function (or regEx) to get this information? Sometimes, the A-stretch also has some deletions or insertions, like AAAAAAGAAAATAAA.

      Comment

      • sphil
        Senior Member
        • Apr 2010
        • 192

        #4
        hmmm in python there is a regex moduk named "re" since there are mismatches it will be quite tricky to filter thos except you have defined length, which I highly doubt...

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 11:13 AM
        0 responses
        19 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        18 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...