sushi_fabric 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sushi_fabric/sushiApp.rb +4 -5
- data/lib/sushi_fabric/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 18274b38a1b2b7a5c044435c9fb66406f865690b2807b01413d3fe349d1cdb90
|
|
4
|
+
data.tar.gz: 82d53f12e77604cc72b334103c0330e08b458ea4220579cd1f6284a4ee918bea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9199dd3d05f40b71e86c1277dde1970200ff8c89e95547853e22acd66ad0ccdc8c7a6bf27fc1d2f6520796c26bc7adb569d1dc23cadff45ba20fc3db54c977ad
|
|
7
|
+
data.tar.gz: 534f1f1ea9e36c750255affed0925db10389fd9f27aacb13660e4638dc127c64f63f1b70b4fa15012c28514e46570c1488cc73efc0a9d4bdce9acd726f07a230
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# encoding: utf-8
|
|
3
|
-
# Version = '
|
|
3
|
+
# Version = '20230623-165238'
|
|
4
4
|
|
|
5
5
|
require 'csv'
|
|
6
6
|
require 'fileutils'
|
|
@@ -349,7 +349,7 @@ class SushiApp
|
|
|
349
349
|
end
|
|
350
350
|
def check_application_parameters
|
|
351
351
|
if @required_params and (@required_params - @params.keys).empty?
|
|
352
|
-
@output_params = @params.clone
|
|
352
|
+
@output_params = {"sushi_app" => self.class.name}.merge(@params.clone)
|
|
353
353
|
end
|
|
354
354
|
end
|
|
355
355
|
def set_user_parameters
|
|
@@ -588,9 +588,8 @@ rm -rf #{@scratch_dir} || exit 1
|
|
|
588
588
|
def save_parameters_as_tsv
|
|
589
589
|
file_path = File.join(@scratch_result_dir, @parameter_file)
|
|
590
590
|
CSV.open(file_path, 'w', :col_sep=>"\t") do |out|
|
|
591
|
-
out << ["sushi_app", self.class.name]
|
|
592
591
|
@output_params.each do |key, value|
|
|
593
|
-
if @output_params[key, 'file_upload']
|
|
592
|
+
if @output_params[key, 'file_upload'] and !value.to_s.empty?
|
|
594
593
|
uploaded_file_path = File.join(@result_dir, "uploaded", File.basename(value))
|
|
595
594
|
out << [key, uploaded_file_path]
|
|
596
595
|
@params[key] = uploaded_file_path
|
|
@@ -651,7 +650,7 @@ rm -rf #{@scratch_dir} || exit 1
|
|
|
651
650
|
end
|
|
652
651
|
def copy_uploaded_files
|
|
653
652
|
if not @uploaded_files.empty?
|
|
654
|
-
@uploaded_files.each do |file|
|
|
653
|
+
@uploaded_files.compact.select{|file| !file.empty?}.each do |file|
|
|
655
654
|
FileUtils.cp(file, @uploaded_files_dir)
|
|
656
655
|
command = "cp #{file} #{@uploaded_files_dir}"
|
|
657
656
|
puts command
|
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: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
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: 2023-
|
|
11
|
+
date: 2023-06-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|