rbbt-util 5.17.52 → 5.17.53

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87b240245aaa39720c9348169c476d3279b01e0f
4
- data.tar.gz: 77d89d8d0070ac010513780925f8d91a5b0abaab
3
+ metadata.gz: 9998932f7037c551f4aef97c75fa09296f0e4cba
4
+ data.tar.gz: c52cab12dc83feea2d889ecffbc2e07472e02b61
5
5
  SHA512:
6
- metadata.gz: 8a4b612c7a7e4930f2e76c6771cc2872191b036035c8b172098aceb0d224c382ec01f3c59196efcaf47995aca35f7e645e5bb1975497d9801d107f512331c8d5
7
- data.tar.gz: cf2b158c03ac3c3426e723e77b0cea503393c8c0fc08e2e75c5027cc54a4d08a764fca2edeeff1ad0d6c73db375a2cf4fe38b1abd0e0e29ec65ad778b0e330a2
6
+ metadata.gz: b7030c7870cc8ea1ca80d76509c4526ae5435321dcd22561a661c6b57fb190d641a010b9b222e1295504807c7fd226fb4642e8c00e9ac2b02c33aa678b9a0141
7
+ data.tar.gz: 02546e560b57a8bce92689137e58b4dfe8165e5095cf9382a98f6c588b19970b2b2a75dace012ba2067fb38312b9cdd83d4fea17769f85d7bae6265bf9f8592b
@@ -132,7 +132,7 @@ class WorkflowRESTClient
132
132
  end
133
133
  end
134
134
  end
135
- noload ? path : @result
135
+ noload ? path + '?_format=raw' : @result
136
136
  end
137
137
 
138
138
  def exec(*args)
@@ -116,9 +116,6 @@ module Misc
116
116
  "TGA" => "*",
117
117
  }
118
118
 
119
- def self.correct_mutation(pos, ref, mut_str)
120
- end
121
-
122
119
  def self.correct_icgc_mutation(pos, ref, mut_str)
123
120
  mut = mut_str
124
121
  mut = '-' * (mut_str.length - 1) if mut =~/^-[ACGT]/
@@ -174,6 +174,8 @@ module Misc
174
174
  else
175
175
  Log.medium "Consuming stream #{Misc.fingerprint io}"
176
176
  begin
177
+ into = into.find if Path === into
178
+ into = Open.open(into, :mode => 'w') if String === into
177
179
  into.sync == true if IO === into
178
180
  while not io.closed? and block = io.read(2048)
179
181
  into << block if into
@@ -295,7 +297,7 @@ module Misc
295
297
  end
296
298
  end
297
299
 
298
- def self.sort_stream(stream, header_hash = "#", cmd_args = " -u ")
300
+ def self.sort_stream(stream, header_hash = "#", cmd_args = "-u")
299
301
  Misc.open_pipe do |sin|
300
302
  begin
301
303
  if defined? Step and Step === stream
@@ -34,7 +34,11 @@ module TmpFile
34
34
  tmpfile += ".#{options[:extension]}"
35
35
  end
36
36
 
37
- File.open(tmpfile, 'w') do |f| f.write content end if content != nil
37
+ if IO === content
38
+ Misc.consume_stream(content, false, tmpfile)
39
+ else
40
+ File.open(tmpfile, 'w') do |f| f.write content end if content != nil
41
+ end
38
42
 
39
43
  result = yield(tmpfile)
40
44
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.52
4
+ version: 5.17.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake