sushi_fabric 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sushi_fabric/sushiApp.rb +9 -3
- data/lib/sushi_fabric/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed87d2fccd596f1751bfd355ee0b98b71dc2c64b
|
4
|
+
data.tar.gz: abca70f978344f35a75cdd906c50fe0b9e7f989a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d5f29f9110262aece8b223b1d3570b7f5d88cc5fc5a6ec039a6ebcfcec030be49a8612ee576ffb0c013a7e6983093e35789a049f1697b2ca624ce7d605a1ac2
|
7
|
+
data.tar.gz: 417c557bd12fa8c0ccbf79d0c315f4be3eee317cb3602d1640fd59a631d057cdde5473cc8e93e4173a90f1be91dd4afa555cb3d67ae2b7162771bd1a0c68c46a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20160930-163938'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -477,7 +477,10 @@ rm -rf #{@scratch_dir} || exit 1
|
|
477
477
|
headers = @dataset_hash.map{|row| row.keys}.flatten.uniq
|
478
478
|
out << headers
|
479
479
|
@dataset_hash.each do |row|
|
480
|
-
out << headers.map{|header|
|
480
|
+
out << headers.map{|header|
|
481
|
+
val = row[header]
|
482
|
+
val.to_s.empty? ? nil:val
|
483
|
+
}
|
481
484
|
end
|
482
485
|
end
|
483
486
|
file_path
|
@@ -488,7 +491,10 @@ rm -rf #{@scratch_dir} || exit 1
|
|
488
491
|
CSV.open(file_path, 'w', :col_sep=>"\t") do |out|
|
489
492
|
out << headers
|
490
493
|
@result_dataset.each do |row_hash|
|
491
|
-
out << headers.map{|header|
|
494
|
+
out << headers.map{|header|
|
495
|
+
val = row_hash[header]
|
496
|
+
val.to_s.empty? ? nil:val
|
497
|
+
}
|
492
498
|
end
|
493
499
|
end
|
494
500
|
file_path
|
data/lib/sushi_fabric/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sushi_fabric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Functional Genomics Center Zurich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|