Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

  • #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


    • #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


      • #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


        • #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

          • seqadmin
            Advanced Tools Transforming the Field of Cytogenomics
            by seqadmin


            At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
            09-26-2023, 06:26 AM
          • seqadmin
            How RNA-Seq is Transforming Cancer Studies
            by seqadmin



            Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
            09-07-2023, 11:15 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 09-29-2023, 09:38 AM
          0 responses
          10 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-27-2023, 06:57 AM
          0 responses
          13 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-26-2023, 07:53 AM
          0 responses
          30 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-25-2023, 07:42 AM
          0 responses
          18 views
          0 likes
          Last Post seqadmin  
          Working...
          X