41 |
my $excelfile; |
my $excelfile; |
42 |
my $excelfilelink=""; |
my $excelfilelink=""; |
43 |
BEGIN { |
BEGIN { |
|
use lib '/home/seed/Rob/perl/lib/perl5/site_perl/5.8.5/'; |
|
44 |
eval "use Spreadsheet::WriteExcel"; |
eval "use Spreadsheet::WriteExcel"; |
45 |
unless ($@) {$useexcel=1} |
unless ($@) {$useexcel=1} |
46 |
} |
} |
745 |
|
|
746 |
sub read_fasta { |
sub read_fasta { |
747 |
my ($self, $file, $keepcomments)=@_; |
my ($self, $file, $keepcomments)=@_; |
748 |
open (IN, $file) || die "Can't open $file"; |
if ($file =~ /\.gz$/) {open(IN, "gunzip -c $file|") || die "Can't open a pipe from gunzip -c $file"} |
749 |
|
else {open (IN, $file) || die "Can't open $file"} |
750 |
my %f; my $t; my $s; my %c; |
my %f; my $t; my $s; my %c; |
751 |
while (<IN>) { |
while (<IN>) { |
752 |
chomp; |
chomp; |