Skip to content

Commit

Permalink
Simplify decompression, don't check for .gz extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika committed Sep 2, 2017
1 parent 39aaaa0 commit 89e6e56
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/convert_gb_to_fa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@

my $input_file = $ARGV[0];

if ($input_file =~ /.gz$/) {
open(IN, "gunzip -c $input_file |") or die "can’t open pipe to $input_file";
} else {
open(IN, $input_file) or die "can’t open $input_file";
}
open(IN, "gunzip -c -f $input_file |") or die "can’t open pipe to $input_file";

while (<IN>) {
if (m/^VERSION\s+(\S+)/) {
Expand Down

0 comments on commit 89e6e56

Please sign in to comment.