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

                          • kinpict.com
                            Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                            by kinpict.com
                            The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
                            Today, 06:37 PM
                          • 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,...
                            10-30-2026, 06:46 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, 11-12-2026, 07:59 AM
                          0 responses
                          27 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 11-05-2026, 09:25 AM
                          0 responses
                          35 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 11-03-2026, 11:54 AM
                          2 responses
                          56 views
                          0 reactions
                          Last Post kinpict.com  
                          Started by SEQadmin2, 10-28-2026, 09:57 AM
                          0 responses
                          175 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...