Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • me91
    Member
    • Aug 2012
    • 15

    #1

    convert to fasta format on "windows"

    Hi,
    I need a software compatible with windows which converts files with fastq format to fasta format.
    I searched forum and found some code or softwares just for linux.
    Thank you for any advice.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    You can visit http://usegalaxy.org and use the "fastq to fasta converter" tool under the "NGS:QC and manipulation" category. You will need to upload your files to galaxy.

    You could use a live CD of biolinux (http://nebc.nerc.ac.uk/tools/bio-linux) but the above option would be the most simple.

    Comment

    • me91
      Member
      • Aug 2012
      • 15

      #3
      i had several .sra files with size near to 1GB when converted to fastq their size increased to 4GB, so uploading them takes a long time and is impossible.

      Comment

      • xied75
        Senior Member
        • Feb 2012
        • 129

        #4
        Show me a sample fastq and the fasta you want, I can give you a script if you run PowerShell; or if you are ok with CMD, I can compile a C# program for you.

        Best,

        dong

        Comment

        • me91
          Member
          • Aug 2012
          • 15

          #5
          The format (fastq) looks something like this:

          @HWI-962:55:C0A4UACXX:4:1101:1375:2341 1:N:0:TCTCAG
          GTCACTGATCGGGGAATTCGTACAGTCTCGTATATGTGAGTCAATGCGTCGTNGCTCCCCTTAACG
          TACGTGCAATCTTGTCGGTTCGGCGGCACAAAA
          +
          B?BDFDDFHHHHHJJJDHHIEFGGGCGBFF6DFH@HBFHI9B@FDHIJBHH;#-5;CHFF;@@CED?BBD(5AACDACDDCCDD59@@BBBDB-9ABDB


          and output fasta file format is not important. just standard one to work with it in bowtie or mega is ok.

          Comment

          • me91
            Member
            • Aug 2012
            • 15

            #6
            fastq file is exactly like this :

            @SRR017963.1 HWI-EAS153_5_30KE6AAXX:2:1:105:2042 length=76
            GTNNNTTNTTCTTGTGNTTTGAATTTAACCATGGAAGACAGTGATGGTGTAACTTATGCATTAAAGTGTGACAGTA
            +SRR017963.1 HWI-EAS153_5_30KE6AAXX:2:1:105:2042 length=76
            :6!!!::!::::::::!:::::::::::::7777711131311331131111/13111101013/0/0111111/0
            @SRR017963.2 HWI-EAS153_5_30KE6AAXX:2:1:172:1564 length=76
            GTAAGGGCATGCAAGACACACTGAGCTGCCGTAGGCACCGGGGGCCCGAGAATGGTGAGCAGGCGGGCCGGAAGCC
            +SRR017963.2 HWI-EAS153_5_30KE6AAXX:2:1:172:1564 length=76
            :&52&,*&-6655166:.(&31*3(&53:.&,20+/++/'(&.'$&('+0%/(-&%(&0$$-'&+&+(-''$)-&$

            Comment

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

              #7
              You should be able to install Perl or Python on your Windows machine. This kind of conversion is just two lines of Python with Biopython (using the Bio.SeqIO.convert function).

              Comment

              • me91
                Member
                • Aug 2012
                • 15

                #8
                You should be able to install Perl or Python on your Windows machine. This kind of conversion is just two lines of Python with Biopython (using the Bio.SeqIO.convert function).
                i have installed python and when use these commands to convert no output data creates.
                Code:
                from Bio import SeqIO
                SeqIO.convert("C:\Python27\SRR017963.fastq", "fastq", "C:\Python27\out.fasta", "fasta")

                Comment

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

                  #9
                  Originally posted by me91 View Post
                  i have installed python and when use these commands to convert no output data creates.
                  Did you install Biopython too? Which version (although any recent version should be OK with this example)? Was there any output to screen - for example an error message?

                  The only thing I would suggest is to beware of slashes in strings. Python (and C and many other programming languages) treat slash as an escape character, for example \n means new line and \t means tab. Therefore you'd have to use \\ for just \ or in Python prefix the string with an 'r' for 'raw' mode (no slash escaping). i.e.
                  Code:
                  from Bio import SeqIO
                  count = SeqIO.convert(r"C:\Python27\SRR017963.fastq", "fastq", r"C:\Python27\out.fasta", "fasta")
                  print "Converted %i records" % count

                  Comment

                  • me91
                    Member
                    • Aug 2012
                    • 15

                    #10
                    Thank you peter.
                    It worked! i think it was just because i wrote the whole code and then executed them so i could not see error messages.

                    Comment

                    • xied75
                      Senior Member
                      • Feb 2012
                      • 129

                      #11
                      .NET Bio solution here:

                      1, go to http://bio.codeplex.com/ download and install .NET Bio 1.01.
                      2, from Start -> All Programs -> .NET Bio -> .NET Bio Command Prompt
                      3, change directory to where your fastq is, then type
                      Code:
                       FileFormatConverter.exe example.fastq example.fasta

                      Comment

                      • me91
                        Member
                        • Aug 2012
                        • 15

                        #12
                        Originally posted by xied75 View Post
                        .NET Bio solution here:

                        1, go to http://bio.codeplex.com/ download and install .NET Bio 1.01.
                        2, from Start -> All Programs -> .NET Bio -> .NET Bio Command Prompt
                        3, change directory to where your fastq is, then type
                        Code:
                         FileFormatConverter.exe example.fastq example.fasta
                        thanks for your solution. sounds a quick way to format conversions and do assemblies.

                        Comment

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

                          #13
                          I forgot to mention EMBOSS seqret:


                          The open source EMBOSS suite is written in C, and is available for all the main operating systems (including Windows).

                          Comment

                          Latest Articles

                          Collapse

                          • SEQadmin2
                            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                            by SEQadmin2



                            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                            Despite this, “CRISPR helped turn genome editing from a specialized technique into
                            ...
                            07-31-2026, 11:01 AM
                          • SEQadmin2
                            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                            by SEQadmin2


                            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                            The systematic characterization of the human proteome has
                            ...
                            07-20-2026, 11:48 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

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, 07-31-2026, 02:55 AM
                          0 responses
                          18 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-24-2026, 12:17 PM
                          0 responses
                          15 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-23-2026, 11:41 AM
                          0 responses
                          14 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-20-2026, 11:10 AM
                          0 responses
                          25 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...