sushi_fabric 1.0.2 → 1.0.7

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
  SHA256:
3
- metadata.gz: f9006b34b7600a8d1eadd5016f972427a3b879c33773e71b73f824252c238e2c
4
- data.tar.gz: 1211f6f928b02c9cb3257a000f13a57685dbabca9d947dfa8b3d3e0fea105c57
3
+ metadata.gz: 437c1a17818ce1c691886fface6c5395eae69d72024f542eb6497885814d7b82
4
+ data.tar.gz: d08bf18f1fd4d58285df67b682e134951afa6325a6192097b3ecd7b0d8f3b823
5
5
  SHA512:
6
- metadata.gz: 8a0d8d0cee0aba783393f144ff6eaf7f22b01e5ec9e781870bec342e7ad7bdf04fa10ecd10d49f548cd010c576e606d38b76846093314a554564eafae868ec14
7
- data.tar.gz: e7909f64a0328680f1fd680ec1bfed5fc852c4e64876d74eff3b113cfcddabd2baf23199d89c734344dd298bea6a44c798978788269b999be953ac0f1f531d75
6
+ metadata.gz: ab3b854e32de48cfe000dc4d524a3fb6a3998ca60b23ee3754f10755faee45b9e5c50de6d37e2ab48e91f3dbea415eb8675c4b30256bed7df297fac6ab98860f
7
+ data.tar.gz: 5b4ddc75fe749426e0765e5bca55fc41003387e46d9ac53317c1462552c71d5f82efebb3b93166128efd9e7a2784460ec4a1146eb77cd1314b25319cabfbfb96
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20201109-225541'
3
+ # Version = '20210211-145021'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -228,6 +228,8 @@ class SushiApp
228
228
  attr_accessor :input_dataset_bfabric_application_number
229
229
  attr_accessor :next_dataset_bfabric_application_number
230
230
  attr_reader :inactivate_nodes
231
+ attr_reader :employee
232
+
231
233
  def initialize
232
234
  @gstore_dir = GSTORE_DIR
233
235
  @project = nil
@@ -238,6 +240,7 @@ class SushiApp
238
240
  @params['scratch'] = nil
239
241
  @params['node'] = ''
240
242
  @params['queue'] = ''
243
+ @params['partition'] = ''
241
244
  @params['process_mode'] = 'SAMPLE'
242
245
  @params['samples'] = ''
243
246
  @job_ids = []
@@ -409,12 +412,11 @@ class SushiApp
409
412
  else
410
413
  @scratch_result_dir + '_temp$$'
411
414
  end
412
- hold_jid_option = if @dataset_sushi_id and parent_data_set = DataSet.find_by_id(@dataset_sushi_id.to_i) and !parent_data_set.jobs.empty?
413
- parent_data_set_job_ids = parent_data_set.jobs.map{|job| job.submit_job_id}.join(",")
414
- "#\$ -hold_jid #{parent_data_set_job_ids}"
415
- else
416
- ''
417
- end
415
+ hold_jid_option = if @dataset_sushi_id and parent_data_set = DataSet.find_by_id(@dataset_sushi_id.to_i) and !parent_data_set.jobs.empty? and parent_data_set_job_ids = parent_data_set.jobs.map{|job| job.submit_job_id} and !parent_data_set_job_ids.join.empty?
416
+ "#SBATCH --dependency=afterany:#{parent_data_set_job_ids.join(":")}"
417
+ else
418
+ ''
419
+ end
418
420
  module_src_command = if @module_source and @modules and !@modules.empty?
419
421
  "source #{@module_source}"
420
422
  else
@@ -494,6 +496,7 @@ rm -rf #{@scratch_dir} || exit 1
494
496
  gsub_options = []
495
497
  gsub_options << "-c #{@params['cores']}" unless @params['cores'].to_s.empty?
496
498
  gsub_options << "-n #{@params['node']}" unless @params['node'].to_s.empty?
499
+ gsub_options << "-p #{@params['partition']}" unless @params['partition'].to_s.empty?
497
500
  gsub_options << "-r #{@params['ram']}" unless @params['ram'].to_s.empty?
498
501
  gsub_options << "-s #{@params['scratch']}" unless @params['scratch'].to_s.empty?
499
502
  command = "wfm_monitoring --server #{WORKFLOW_MANAGER} --user #{@user} --project #{@project.gsub(/p/,'')} --logdir #{@gstore_script_dir} #{job_script} #{gsub_options.join(' ')}"
@@ -862,17 +865,7 @@ rm -rf #{@scratch_dir} || exit 1
862
865
  save_parameters_as_tsv
863
866
  save_input_dataset_as_tsv
864
867
 
865
- if SushiFabric::Application.config.fgcz?
866
- # this causes sqlite3 IO error in Mac OSX (Yosemite)
867
- pid = Process.fork do
868
- Process.fork do
869
- main
870
- end # grand-child process
871
- end # child process
872
- Process.waitpid pid
873
- else
874
- main
875
- end
868
+ main
876
869
  end
877
870
  def make_dummy_files
878
871
  dummy_files_header = []
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.7"
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.0.2
4
+ version: 1.0.7
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: 2020-11-09 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler