Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peruano
    Junior Member
    • Dec 2009
    • 1

    #1

    sff 454 files into fasta

    Dear users, I have question:

    I am trying to convert a .sff 454 file into fasta, using sff_extract in python2.3.4 that includes Biophyton-1.49. I have used the following command:

    $ python sff_extract my_file.sff

    and this results in a syntax error:


    File "sff_extract", line 405

    qual_line = ' '.join((str(q) for q in qual))

    ^

    SyntaxError: invalid syntax


    Does anyone could suggest what's wrong?

    Thank you in advance

    P.R.
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    That looks to me like some Python syntax requiring Python 2.4 or later. You could change this:

    qual_line = ' '.join((str(q) for q in qual))

    to:

    qual_line = ' '.join([str(q) for q in qual])

    but there are probably going to be more issues. I would urge you to update to Python 2.6, Python 2.5 or Python 2.4 (in that order of preference assuming you have no other constraints).

    You mentioned Biopython 1.49. You should update (e.g. for FASTQ support). However, the more recent releases also required Python 2.4 or later.

    Also, although there is SFF in the pipeline for Biopython is isn't included as yet (i.e. it is not even in the brand new Biopython 1.53 released yesterday). Its on a branch on github, but if you (or anyone else) would like to help test it I am confident we can have this in the next release of Biopython.

    Comment

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #3
      Originally posted by maubp View Post
      You mentioned Biopython 1.49. You should update (e.g. for FASTQ support). However, the more recent releases also required Python 2.4 or later.

      Also, although there is SFF in the pipeline for Biopython is isn't included as yet (i.e. it is not even in the brand new Biopython 1.53 released yesterday). Its on a branch on github, but if you (or anyone else) would like to help test it I am confident we can have this in the next release of Biopython.
      In case anyone is interested, the SFF support has been merged into the Biopython main branch, and should be included with our next release (Biopython 1.54). Anyone interested in testing it before then can grab the code from our repository.

      Comment

      • Baseless
        Member
        • Feb 2010
        • 31

        #4
        I know it wont help if you are setting up something very customized, but for just extracting the sequences sffinfo -s should do the trick.

        And its included in the recent 2.3 software.

        Comment

        • maubp
          Peter (Biopython etc)
          • Jul 2009
          • 1544

          #5
          Yeah, if you have the Roche Linux only tools, sffinfo does offer SFF to FASTA (or QUAL, with or without trimming). It was there in v2.0 as well, and I expect in v1 too. See also this thread for getting the tools:
          Pyrosequencing in picotiter plates, custom arrays for enrichment/decomplexing. (Roche)

          Comment

          Latest Articles

          Collapse

          • 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, detection...
            Today, 06:46 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-28-2026, 09:51 AM
          0 responses
          15 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          68 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          48 views
          0 reactions
          Last Post SEQadmin2  
          Working...