Skip to content

Commit

Permalink
Use gunzip -c instead of zcat on gzipped genomes
Browse files Browse the repository at this point in the history
On OSX zcat appends ".Z" to all filenames so just using zcat won't work.
  • Loading branch information
John Sundh authored Oct 27, 2017
1 parent 2132b5d commit 283c1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rsync_from_ncbi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
my $max_out_chars = 0;
for my $in_filename (keys %manifest) {
my $taxid = $manifest{$in_filename};
open IN, "zcat $in_filename |" or die "$PROG: can't read $in_filename: $!\n";
open IN, "gunzip -c $in_filename |" or die "$PROG: can't read $in_filename: $!\n";
while (<IN>) {
if (/^>/) {
s/^>/>kraken:taxid|$taxid|/;
Expand Down

0 comments on commit 283c1a7

Please sign in to comment.