![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
BWA using reads in FASTA format | aggp11 | RNA Sequencing | 7 | 08-11-2012 06:55 PM |
Align multiple sequences in tabular or fasta format | pchiang | Bioinformatics | 7 | 07-01-2011 11:18 PM |
help needed to retrieve fasta reads from fasta db | prashanthpnu | Bioinformatics | 1 | 06-21-2011 06:59 AM |
Where can I find the complete FASTA format sequence(human and mouse)? | iloveneworleans | Bioinformatics | 5 | 02-24-2010 05:00 PM |
newbler assembly of mated reads (FASTA format) | dpuiu | De novo discovery | 1 | 01-22-2010 12:27 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: US Join Date: Apr 2011
Posts: 20
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Member
Location: Ireland Join Date: Sep 2011
Posts: 86
|
![]()
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() |
![]() |
![]() |
![]() |
#3 |
Member
Location: US Join Date: Apr 2011
Posts: 20
|
![]()
Thanks a lot for your help. I found some tools to convert from FASTAQ to FASTA.
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|