![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
For MAQ: Is there a Tool to convert sanger-format fastq file to illumina-fotmat fastq | byb121 | Bioinformatics | 6 | 12-20-2013 02:26 AM |
i converted illumina fastq into sanger fastq, need advice | Aicen | Bioinformatics | 5 | 08-27-2012 07:24 AM |
Convert SOLiD fastq to Illumina fastq | samt | SOLiD | 34 | 08-23-2012 07:29 AM |
how to transfer sanger fastQ into illumina FastQ | sunsnow86 | Bioinformatics | 3 | 06-17-2011 03:21 PM |
Reduce file size after Illumina FASTQ to Sanger FASTQ conversion? | jjw14 | Illumina/Solexa | 2 | 06-01-2010 05:35 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: tx Join Date: Dec 2009
Posts: 46
|
![]()
I'm new to working with NGS and we have some illumina reads we'd like to convert to fastq.
I've read the posts and tried to run the script qseq2fastq.pl on the samples w/o success. the files have the following format which doesn't look quite like qseq: USI-EAS39:1:1:2:1362#0/1:CTGGNTTCCACAGGCACATAGCCAAACCGGTGCCT:32 32 29 24 4 28 33 32 32 34 32 34 32 30 33 33 32 33 33 33 33 32 33 29 30 33 33 33 28 21 26 30 30 33 30 Appreciate any conversions ideas. Charles |
![]() |
![]() |
![]() |
#2 |
Simon Andrews
Location: Babraham Inst, Cambridge, UK Join Date: May 2009
Posts: 871
|
![]()
The script below should convert this format of data into a fastq file with Illlumina 1.5 quality encoding (you can change the offset value on line 20 if you'd prefer Sanger format).
Code:
#!/usr/bin/perl use warnings; use strict; my ($infile,$outfile) = @ARGV; die "Must specify input and output filename\n" unless ($outfile); open (IN,$infile) or die $!; open (OUT,'>',$outfile) or die $!; while (<IN>) { chomp; my @sections = split(/:/); my @qualities = split(/\s+/,$sections[-1]); my $quality_string = ''; $quality_string .= chr($_ + 64) foreach (@qualities); my $seq_id = join(":",@sections[0..4]); print OUT '@',$seq_id,"\n",$sections[5],"\n+",$seq_id,"\n",$quality_string,"\n"; } close OUT or die $!; |
![]() |
![]() |
![]() |
#3 |
Member
Location: tx Join Date: Dec 2009
Posts: 46
|
![]()
Thanks Simon,
what should the offset be for sanger fastq? Charles |
![]() |
![]() |
![]() |
#5 |
Member
Location: tx Join Date: Dec 2009
Posts: 46
|
![]()
Thanks again Simon - works fine.
Is the original format I have 'Gerald'? Charles |
![]() |
![]() |
![]() |
#6 |
Senior Member
Location: Western Australia Join Date: Feb 2010
Posts: 308
|
![]()
Biopython Seq I/O does these conversions. Pretty easy to use and with pretty good documentation.
|
![]() |
![]() |
![]() |
#7 |
Senior Member
Location: USA, Midwest Join Date: May 2008
Posts: 1,178
|
![]()
It's a very old Solexa format called SCARF (Solexa Compact ASCII Read Format). It's not used anymore. Is this data really old?
Last edited by kmcarr; 04-08-2011 at 01:14 PM. Reason: Expand acronym |
![]() |
![]() |
![]() |
#8 |
Member
Location: tx Join Date: Dec 2009
Posts: 46
|
![]()
I've used bioperl mostly, I'll check if they have seq conversions for illumina formats.
regarding the reads, I believe they are ~2 yrs old now. thanks |
![]() |
![]() |
![]() |
Thread Tools | |
|
|