sushi_fabric 0.8.9 → 0.9.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a253b6d0f03b89ae2cf1cfa373b30cf0db64e4e
4
- data.tar.gz: 525eaeceb14f997b993e0bfcf25607e8156d428e
3
+ metadata.gz: 427128c3c395e175874c00dd5cdc0bd3a17a062c
4
+ data.tar.gz: c1adc24e9c0c02cb980bb772905e661673008a19
5
5
  SHA512:
6
- metadata.gz: 7f6c4664b86ca5d2ac62f949db298158f610ff94903637920157ce10b9d32d1eb9099b064a572962ee04d7365e726f1b876c5d4090d26dd4f17674be457da41a
7
- data.tar.gz: 966334d7146fb8fa6d6c00bbda14ab118f0b5a67c47eeea5f4683c980668ebdda22fb4f2ffb2833e1223b7568c946c5f80ca22a3ac2842924cf83f4ee4662a24
6
+ metadata.gz: 3a0bd9e974f7a85905b94e7fe537a766b13986f92d5d760753715522b2c9278f9d03c038832e568ad57eb61362e026544291d3410c57eccae84f9109bf5dcf0c
7
+ data.tar.gz: 41cbb1a4c7708d984b754b2fe6bd3e5d7c40f63e4126161f76b8f2050382cbd95f1d8379ba97edd1e4dbf90ddfddcd318f788fc4e43d661cbe0c8c08435886ce
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20181012-131954'
3
+ # Version = '20190104-191156'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -319,7 +319,9 @@ class SushiApp
319
319
  end
320
320
 
321
321
  def set_output_files
322
- @dataset = {}
322
+ if @params['process_mode'] == 'SAMPLE'
323
+ @dataset = {}
324
+ end
323
325
  next_dataset.keys.select{|header| header.tag?('File')}.each do |header|
324
326
  @output_files ||= []
325
327
  @output_files << header
@@ -520,7 +522,7 @@ rm -rf #{@scratch_dir} || exit 1
520
522
  @input_dataset_file = 'input_dataset.tsv'
521
523
  @next_dataset_file = 'dataset.tsv'
522
524
  @input_dataset_tsv_path = File.join(@gstore_result_dir, @input_dataset_file)
523
- @parameters_tsv_path = File.join(@gstore_result_dir, @input_dataset_file)
525
+ @parameters_tsv_path = File.join(@gstore_result_dir, @parameter_file)
524
526
  @next_dataset_tsv_path = File.join(@gstore_result_dir, @next_dataset_file)
525
527
  end
526
528
  def save_parameters_as_tsv
@@ -994,7 +996,9 @@ rm -rf #{@scratch_dir} || exit 1
994
996
  puts "\trequired : #{@required_params}"
995
997
 
996
998
  print 'check next dataset: '
997
- @dataset={}
999
+ if @params['process_mode'] == 'SAMPLE'
1000
+ @dataset={}
1001
+ end
998
1002
  unless self.next_dataset
999
1003
  err_msg = []
1000
1004
  err_msg << "\e[31mFAILURE\e[0m: next dataset is not set yet. you should overwrite SushiApp#next_dataset method in #{self.class}"
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "0.8.9"
2
+ VERSION = "0.9.0"
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: 0.8.9
4
+ version: 0.9.0
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: 2018-10-12 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler