Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Giorgio C
    Member
    • Oct 2010
    • 89

    #1

    How to extract sequences between adaptors ?

    Hy Everybody,

    i have a fasta file with a lots of miRNAsequences. The problem is that we have done a concameration experiment before run on 454 machine. So now i have this situation:

    >1
    AdaptorA__miRNA_AdaptorB
    >2
    XXXXXX-AdaptorA_ miRNA_AdaptorB_XXXXXX_AdaptorA_miRNA_AdaptorB

    etc. ( XXX.. are random nucleotides)

    How can i extract sequences between the two adaptors considering that some reads may present the possibilities to have until 4 miRNA ( wiht 4 adaptorA and 4 AdaporB) ???

    Can anyone suggest me a script so to not loose any miRNA ??? Thank you very much

    Giorgio
  • husamia
    Member
    • Apr 2010
    • 66

    #2
    I think I might have an advice and question, I have similar situation in my case its not straight forward and I am not sure about your case.
    If the adapter is consistently placed for example XXXX is always the same place with reference to all reads then a script would make sense, provided a fasta file with known adapters. see (http://www.bioperl.org/wiki/Removing...ncing_adapters) I use tool provided with commencial software from softgenetics to remove adapters and it can automatically detect them or provide file. However, if your describing concatenation which is random then XXXX is entirely dependent on your alignment. There is no way you can remove them without doing alignment.
    Also I thought contatenation applies to ends of the reads i.e.

    >1
    XXXXX_AdpaterA
    >or 2
    Adapter2_XXXXX

    This has been my case with miRNA seq at least with illumina. You may consult the sequencing platform documentation.
    Last edited by husamia; 07-08-2011, 09:05 AM.

    Comment

    • Giorgio C
      Member
      • Oct 2010
      • 89

      #3
      Thank yo for your reply. Yes the problem is that the adaptors and the miRNAs don't occure always in a regular way. All the reads are different from the others. I may have only one miRNA in a read between two adaptors, or Two miRNAs or Three until a max of four miRNAs in one read. But not always these miRNAs are perfectly closed by their adaptors so i can't use the most frequently scripts to extract adaptors and obtai only the miRNAs. If is it suitable for this situation can you explain me the way of the alignment please, telling a little pipeline ??? Thanks a lot.

      Cheers,

      Giorgio

      Comment

      • chadn737
        Senior Member
        • Jan 2009
        • 392

        #4
        I have used a tool called cutadapt for trimming adapter sequences. It works really well when you have partial adapter sequence in your reads:

        Comment

        • husamia
          Member
          • Apr 2010
          • 66

          #5
          Originally posted by Giorgio C View Post
          If is it suitable for this situation can you explain me the way of the alignment please, telling a little pipeline ???
          it seems that your read lengths are variable, i.e. you may be using 454 instead of illumina. In my case my read length is same for all reads. It makes it easier to generalize when taking read length into account for all reads since they are the same length for script writing which requires some assumptions.
          In my case the read length of all reads is 40 and my adapter is 15 so my unknown mirs is 25bps. You see in my case I doubt that I will be capturing more than one read or adapter so 1adapter=1read for all reads. I simply trimmed my reads based on known adapter sequence. So I ended up with reads ranging from 25-40. I also did quality trimming based on base call but read length is not below 25bps. Then I did alginment to whole genome for reads that were trimmed and reads that were not trimmed I got ~40% of non-trimmed reads and ~90% of trimmed reads to whole genome. Thats my general pipeline. I am sure there are better ways than this but I have limited set of tools. If you can write script I hope this may help you make basic assumptions which is needed to try removing reads based on certain criteria and see what you get.

          Comment

          • Giorgio C
            Member
            • Oct 2010
            • 89

            #6
            Thanks for your reply. Infact in my case these are 454 reads. And as you said this pipeline is not aplicable. I try other ways.

            Cheers,
            Giorgio

            Comment

            • gringer
              David Eccles (gringer)
              • May 2011
              • 845

              #7
              Perl script?

              a quick perl script that just clips out adaptor sequences may work:

              Code:
              perl -pe 's/(AdaptorA|AdaptorB)//g' <fileName>
              For example:
              Code:
              $ perl -pe 's/(AdaptorA|AdaptorB)//g' file.txt 
              >1
              __miRNA_
              >2
              XXXXXX-_ miRNA__XXXXXX__miRNA_
              Last edited by gringer; 07-12-2011, 07:58 AM. Reason: wrong tag

              Comment

              • gringer
                David Eccles (gringer)
                • May 2011
                • 845

                #8
                Oh, wait, you wanted the sequence between the adaptors only. That's a bit more tricky, but might still come under the 'perl can do it easy' umbrella.

                Code:
                $ perl -pe 's/.*?((AdaptorA|AdaptorB)(.*?)(AdaptorA|AdaptorB))/$3/g' file.txt 
                >1
                __miRNA_
                >2
                _ miRNA__miRNA_

                Comment

                • Giorgio C
                  Member
                  • Oct 2010
                  • 89

                  #9
                  Thanks you very much, it's a very useful script !!!

                  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, 10-22-2026, 11:13 AM
                  0 responses
                  24 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 10:48 AM
                  0 responses
                  20 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...