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
                            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
                            ...
                            Yesterday, 09:55 AM
                          • SEQadmin2
                            New Genomics Technologies Take Aim at Long-Standing Limits
                            by SEQadmin2


                            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                            ...
                            09-28-2026, 10:25 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, Today, 10:52 AM
                          0 responses
                          8 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, Yesterday, 05:39 AM
                          0 responses
                          17 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-13-2026, 09:56 AM
                          0 responses
                          15 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-09-2026, 11:14 AM
                          0 responses
                          27 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...