Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • CS Student
    Member
    • Apr 2011
    • 20

    Short-reads in FASTA format

    Hi,

    I need to run some experiments on short-reads in fasta format. However, all the sources I found is using FASTAQ format for short-reads. I tried some tools for converting FASTAQ to FASTA, but still having problems with the converted files.

    Could you please point me to sources where I can download short-reads (small files for testing purposes only) in fasta format?

    Thanks.
  • Rocketknight
    Member
    • Sep 2011
    • 86

    #2
    Very few places will have those available, as almost all aligners are designed to work with FASTQ data, and all modern short-read sequencers only output FASTQ. However, since I assume you're just trying out your own alignment programs, this short python script I whipped up should convert FASTQ to FASTA pretty easily (run it with an input FASTQ file as an argument, make sure the file isn't gzipped first):
    Code:
    #!/usr/bin/python
    import re, sys
    
    try:
        filename = sys.argv[1]
    except:
        exit('Need to supply an input file!')
    
    f = open(filename)
    counter = 0
    for line in f:
        counter = 1 if counter == 4 else counter+1
        if counter == 1:
            print '>'+re.sub(r'>','',line)[1:].rstrip()
        elif counter == 2:
            print line.rstrip()
    If for whatever reason this isn't working for you, let me know and I'll run it on one of my FASTQ files here and e-mail you the result.

    Comment

    • CS Student
      Member
      • Apr 2011
      • 20

      #3
      Thanks a lot for your help. I found some tools to convert from FASTAQ to FASTA.

      Comment

      Latest Articles

      Collapse

      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM
      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Today, 11:05 AM
      0 responses
      6 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-02-2026, 11:08 AM
      0 responses
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-30-2026, 05:37 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-26-2026, 11:10 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Working...