Unconfigured Ad

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

    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

              • mylaser
                Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by mylaser
                Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
                If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
                This guide explains everything you need to know about...
                Yesterday, 01:13 AM
              • SEQadmin2
                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by SEQadmin2



                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                ...
                07-09-2026, 11:10 AM
              • SEQadmin2
                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                by SEQadmin2



                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                07-08-2026, 05:17 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 07-09-2026, 10:04 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              11 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-07-2026, 11:05 AM
              0 responses
              26 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-02-2026, 11:08 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Working...