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
                    The Factors Reshaping Genome Assembly
                    by SEQadmin2



                    When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
                    11-24-2026, 07:04 AM
                  • SEQadmin2
                    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                    by SEQadmin2





                    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                    10-30-2026, 06:46 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 11-23-2026, 11:11 AM
                  0 responses
                  32 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 11-17-2026, 06:27 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 11-12-2026, 07:59 AM
                  0 responses
                  66 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 11-05-2026, 09:25 AM
                  0 responses
                  67 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...