File: qseq2fastq.pl

package info (click to toggle)
sspace 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,752 kB
  • ctags: 165
  • sloc: perl: 2,382; python: 374; makefile: 19; sh: 18
file content (22 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

use warnings;
use strict;

if($#ARGV<0){
   die "Usage: $0 <file>\n";
}

open(IN,$ARGV[0]) || die "Can't open $ARGV[0] for reading --fatal.\n";

while (<IN>) {
	chomp;
	my @parts = split /\t/;
	print "@";
        print "$parts[0]:$parts[2]:$parts[3]:$parts[4]:$parts[5]#$parts[6]/$parts[7]\n";
	print "$parts[8]\n";
	print "+\n";
	print "$parts[9]\n";
}

close IN;