Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raymoniz
    Junior Member
    • Sep 2010
    • 3

    #1

    batch editing of ABI files

    Hello all. I am unsure if this is the correct forum, but was referred here wit sort of a unique question.

    I have a run of over 1000 sequences, in ABI format. Each read is relatively short, less than 1 kb. Our goal is to align/analyze each read together - but to do so we must first eliminate sequence from both the 5' and 3' ends.

    We typically do this by "hand" in Geneious, using unique restriction sites at both the 5' and 3' ends. Simply put, we delete sequence upstream of one restriction site and then everything downstream of another restriction site (which is also downstream of the first restriction site.)

    With less than 100 sequences, this is just a few hours of work. However with over 1000 reads, it gets to be very time consuming!

    Does software exist which would allow me to do this sequence editing in a batch format? I believe we're looking for something which would identify two restriction sites in a read, and delete the sequence either upstream or downstream of those sites. Below is the general idea, in case the description above is not clear.

    Thanks for any help,

    Ray

  • ffinkernagel
    Senior Member
    • Oct 2009
    • 110

    #2
    sure, any scripting language (such as Python) will do this, especially since both the hindIII and the ecoRi site have no ambiguity whatsoever.
    Only problem might be that your files are in ABI, and you either need to convert this to something the script will be able to read (FASTA), or find an adaptor.. there is one for python http://www.bioinformatics.org/groups/?group_id=497

    here's a simple script from the top of my head that will do it to a folder of fasta files...
    Code:
    #!/usr/bin/python
    directory = 'path/to/data'
    target_directory = 'path/to/output'
    for filename in os.listdir(directory):
        op = open(os.path.join(directory, filename),'rb')
        fasta = op.read().split("\n")
        op.close()
        name = fasta[0][1:] #cut off >
        sequence = "".join(fasta[1:]).upper() #transform into one line of uppercase bases...
        hindIIIpos = sequence.find("AAGCTT")
        if hindIIIpos == -1:
            raise ValueError("%s did not contain a hindIII site" % filename)
        ecoRIpos = sequence.rfind("GAATTC")#search for last ecoRI site
        if ecoRIpos == -1:
            raise ValueError("%s did not contain a ecoRI site" % filename)
        cut = sequence[hindIIIpos + 1: ecoRIpos + 1] #compensate for actual cutting position
        op = open(os.path.join(target_directory, filename), 'wb')
        op.write('>%s\n%s' % (name, cut))
        op.close()
    Last edited by ffinkernagel; 09-28-2010, 07:23 AM.

    Comment

    • raymoniz
      Junior Member
      • Sep 2010
      • 3

      #3
      Thanks for the help. I should have also disclosed that I am not versed in any computer language - but am fortunate to have some friends who are. I will take this to them. Thank you again.

      Comment

      • sklages
        Senior Member
        • May 2008
        • 628

        #4
        you might want to download 'lucy' at
        AMOS files. Full list of files for AMOS, AMOS is a collection of tools for genome assembly


        or, if you prefer a GUI,


        cheers,
        Sven

        Comment

        • raymoniz
          Junior Member
          • Sep 2010
          • 3

          #5
          Thanks very much Sven, I will give those a try.

          Comment

          • Richard Finney
            Senior Member
            • Feb 2009
            • 701

            #6
            I am not versed in any computer language
            Doing nextgen without knowing Perl/bash/c/java/sed/awk and/or python is like backpacking through South America without knowing any Spanish. You're liable to wind up lost and sick. You need to make the time to learn some basic text stream manipulation.

            Comment

            • sklages
              Senior Member
              • May 2008
              • 628

              #7
              Well, the OP's questions was a bit off-topic, as he still uses PGS data (previous generation sequencing ;-) ), some 1000 ABI traces ... lucy2 should do the job. If not, I totally agree, without basic knowledge of e.g. perl it gets pretty hard ...

              Sven

              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
              23 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...