From 0947b49340ee1a3618b1791a8f3a68fc6d354e19 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Mon, 7 Oct 2013 14:23:35 +0000 Subject: [PATCH] gzip fiddling git-svn-id: http://biopieces.googlecode.com/svn/trunk@2226 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/lib/maasha/filesys.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_ruby/lib/maasha/filesys.rb b/code_ruby/lib/maasha/filesys.rb index 81190f5..eadb536 100644 --- a/code_ruby/lib/maasha/filesys.rb +++ b/code_ruby/lib/maasha/filesys.rb @@ -65,7 +65,7 @@ class Filesys case `file -L #{file}` when /gzip/ # ios = Zlib::GzipReader.new File.open(file, mode, options) - ios = IO.popen("zcat #{file}") + ios = IO.popen("gzip -cd #{file}") when /bzip/ # ios = Bzip2::Reader.new File.open(file, mode, options) # TODO this method is buggy, investigate ios = IO.popen("bzcat #{file}") -- 2.39.2