sushi_fabric 0.9.0 → 0.9.1
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/bin/sushi_fabric +10 -1
- data/lib/sushi_fabric/sushiApp.rb +7 -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: 59143df589de70270b5fc2456f1b96b56995ca9b
|
4
|
+
data.tar.gz: 05affa8d9d4782a1cf96ef7efa291232a4247b6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2881e2a987d99718892498fe463f570ea4c53c27fb8bf1960de37802d1c43122d0d9b902b6e7d48c2b7f348bda6cb01c54afd2667b5d0f41217ad76b27de97d
|
7
|
+
data.tar.gz: 3ca221e5d42416287c15f5b8065adf7254d0848d8548b10afcac8a034d393f613440d5d48e47d6653a83157254a75c9db48c75cdc2f722e1569260b26c5c3ec5
|
data/bin/sushi_fabric
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20190425-141759'
|
4
4
|
|
5
5
|
require 'sushi_fabric'
|
6
6
|
|
@@ -22,8 +22,11 @@ Usage:
|
|
22
22
|
o.on(:next_dataset_name, '-n next_dataset_name', '--next_dataset_name', 'Next DataSet Name (default: Analysis_Category+ID+Date )')
|
23
23
|
o.on(:off_bfab, '-f', '--off_bfab', 'Do NOT register the dataset in BFabric (default: false, namely register in BFabric)')
|
24
24
|
o.on(:mango_run_name, '-g mango_run_name', '--mango_run_name', 'ManGO RunName_oBFabricID')
|
25
|
+
o.on(:input_dataset_application, '-a bfabric_application_number', '--input_dataset_application', 'BFabric Application Number for input DataSet')
|
26
|
+
o.on(:next_dataset_application, '-A bfabric_application_number', '--next_dataset_application', 'BFabric Application Number for next DataSet')
|
25
27
|
o.parse!(ARGV)
|
26
28
|
end
|
29
|
+
|
27
30
|
opt.project = 'p' + opt.project
|
28
31
|
if File.exist?('lib')
|
29
32
|
$: << 'lib'
|
@@ -78,6 +81,12 @@ end
|
|
78
81
|
if opt.mango_run_name
|
79
82
|
usecase.mango_run_name = opt.mango_run_name
|
80
83
|
end
|
84
|
+
if opt.input_dataset_application
|
85
|
+
usecase.input_dataset_bfabric_application_number = opt.input_dataset_application
|
86
|
+
end
|
87
|
+
if opt.next_dataset_application
|
88
|
+
usecase.next_dataset_bfabric_application_number = opt.next_dataset_application
|
89
|
+
end
|
81
90
|
if opt.run_mode
|
82
91
|
usecase.run
|
83
92
|
else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20190425-142129'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -225,6 +225,8 @@ class SushiApp
|
|
225
225
|
attr_accessor :logger
|
226
226
|
attr_accessor :off_bfabric_registration
|
227
227
|
attr_accessor :mango_run_name
|
228
|
+
attr_accessor :input_dataset_bfabric_application_number
|
229
|
+
attr_accessor :next_dataset_bfabric_application_number
|
228
230
|
def initialize
|
229
231
|
@gstore_dir = GSTORE_DIR
|
230
232
|
@project = nil
|
@@ -275,7 +277,7 @@ class SushiApp
|
|
275
277
|
if @dataset_sushi_id = save_data_set(data_set_arr.to_a.flatten, headers, rows, @current_user)
|
276
278
|
unless @off_bfabric_registration
|
277
279
|
if dataset = DataSet.find_by_id(@dataset_sushi_id.to_i)
|
278
|
-
dataset.register_bfabric
|
280
|
+
dataset.register_bfabric(bfabric_application_number: @input_dataset_bfabric_application_number)
|
279
281
|
end
|
280
282
|
end
|
281
283
|
elsif data_set = headers[0] and data_set.instance_of?(DataSet)
|
@@ -586,6 +588,7 @@ rm -rf #{@scratch_dir} || exit 1
|
|
586
588
|
org = @scratch_result_dir
|
587
589
|
dest = @gstore_project_dir
|
588
590
|
copy_commands(org, dest, 'now').each do |command|
|
591
|
+
puts `which python`
|
589
592
|
puts command
|
590
593
|
unless system command
|
591
594
|
raise "fails in copying input_dataset, parameters and jobscript files from /scratch to /gstore"
|
@@ -597,6 +600,7 @@ rm -rf #{@scratch_dir} || exit 1
|
|
597
600
|
org = @next_dataset_tsv_path
|
598
601
|
dest = File.join(@gstore_project_dir, @result_dir_base)
|
599
602
|
copy_commands(org, dest, 'now').each do |command|
|
603
|
+
puts `which python`
|
600
604
|
puts command
|
601
605
|
unless system command
|
602
606
|
raise "fails in copying next_dataset files from /scratch to /gstore"
|
@@ -786,7 +790,7 @@ rm -rf #{@scratch_dir} || exit 1
|
|
786
790
|
|
787
791
|
unless @off_bfabric_registration
|
788
792
|
if next_dataset = DataSet.find_by_id(@next_dataset_id)
|
789
|
-
next_dataset.register_bfabric
|
793
|
+
next_dataset.register_bfabric(bfabric_application_number: @next_dataset_bfabric_application_number)
|
790
794
|
end
|
791
795
|
end
|
792
796
|
|
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.9.
|
4
|
+
version: 0.9.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: 2019-
|
11
|
+
date: 2019-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|