]> git.donarmstrong.com Git - biopieces.git/commitdiff
gzip fiddling
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 7 Oct 2013 14:23:35 +0000 (14:23 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 7 Oct 2013 14:23:35 +0000 (14:23 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2226 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/filesys.rb

index 81190f532d6ee54281d85d923168e5fd703c51fe..eadb53649e785a4144e82f63a3b607e2b314d49e 100644 (file)
@@ -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}")