sushi_fabric 1.1.5 → 1.1.6

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
  SHA256:
3
- metadata.gz: df087d665373defd52bfde8eb52acd6f3bfafd3092d220f7c95cdc75d949045c
4
- data.tar.gz: 4dbc0933dfe40e740879b2a7b757f75a16f1a0f88a8df67800537c1ea3d42ea0
3
+ metadata.gz: 9fedc477c136f74445e146138c9e0aa66be6fb2ab0c01da53c88827f19ac6363
4
+ data.tar.gz: 935cee957707889446cbd842e506551cb6269a38f71ad300e3c828bdac6790a0
5
5
  SHA512:
6
- metadata.gz: dfa9b02cd70f2b112d2ffc9c3679a7d1590a5ce9388149588b7d026d34b705832af3371b7c84f9a873056dda454372be9dfd33e8cb491ddc7322b0f6192402a7
7
- data.tar.gz: 4b79c6dda54fb542ac3d4e0bad03f5333729b76f21b0e2758b14a3402b6dba04f9824b1e26d9cca05e050a69af19cf5e3ce8e8338894b116c4ad89a61144419d
6
+ metadata.gz: 42da71dbf0da6dab834e42f943d2dd0fb8a8a29598e8274927abb2233fc9db15953961adb60fd99ce45ed265ea7d33e3f77949be7c6aaf05c9699d7c69ba94d0
7
+ data.tar.gz: 79f887cb36630cbc1ad3c8d8b1b8c6431348a5707cc83db17572223724ea275e6564c2ca885cbe52b7d427fb1ddafa69cd50db96d101797b266852b088861345
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20211209-162918'
3
+ # Version = '20220127-101054'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -590,6 +590,7 @@ rm -rf #{@scratch_dir} || exit 1
590
590
  uploaded_file_path = File.join(@result_dir, "uploaded", File.basename(value))
591
591
  out << [key, uploaded_file_path]
592
592
  @params[key] = uploaded_file_path
593
+ @output_params[key] = uploaded_file_path
593
594
  else
594
595
  out << [key, value]
595
596
  end
@@ -806,6 +807,12 @@ rm -rf #{@scratch_dir} || exit 1
806
807
  data_set.id
807
808
  end
808
809
  end
810
+ def save_parameters_in_sushi_db
811
+ if @next_dataset_id and next_dataset = DataSet.find_by_id(@next_dataset_id)
812
+ next_dataset.job_parameters = @output_params
813
+ next_dataset.save
814
+ end
815
+ end
809
816
  def main(mock=false)
810
817
  ## sushi writes creates the job scripts and builds the result data set that is to be generated
811
818
  @result_dataset = []
@@ -852,6 +859,7 @@ rm -rf #{@scratch_dir} || exit 1
852
859
  unless NO_ROR
853
860
  @current_user ||= nil
854
861
  @next_dataset_id = save_data_set(data_set_arr.to_a.flatten, headers, rows, @current_user, @child)
862
+ save_parameters_in_sushi_db
855
863
 
856
864
  unless @off_bfabric_registration
857
865
  if next_dataset = DataSet.find_by_id(@next_dataset_id)
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
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.1.5
4
+ version: 1.1.6
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: 2021-12-09 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler