rbbt-util 5.26.151 → 5.26.152

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
- SHA256:
3
- metadata.gz: 11b833bbcd15bc363a8bc7923828bc7545c276f79d9ed2d41a1078e8d57fff10
4
- data.tar.gz: 83bfc6713a4333ae904cd8636eb8e9724545085d1c4aff1973b534287521d342
2
+ SHA1:
3
+ metadata.gz: 85aa7a358c16c13eeb0528c2f67a8eacc94d6aef
4
+ data.tar.gz: b4d62fb09f600f50c973dc0eb53a195a7fb9752a
5
5
  SHA512:
6
- metadata.gz: 23f47354eba951a3d299b132c25e096d6de81e3e1254fda1a5a6b0a245455139c9bfcbf4db4d20ca50b7d91828a04fdca517109235ffd4fae69feb118f252392
7
- data.tar.gz: a3fbc000a6626b94da9a6895a473a1300b388e7350d05327cd824e3a027a7ca50c5c761a29fe7c52b39ea66be8e89f81c6c76137ee6283be0a1ad254e95b4960
6
+ metadata.gz: d07f838e26b9c02495367a6d886eae1b092c230b1c6b622267e04d972e4216ebbef4c04bc489595a5dca429147ad0ed9b6fd5c901e65eb13036d94aa10521d3c
7
+ data.tar.gz: f95e14b56df996c1a57e269807bdf578eae7dcb5216debc7630d01d5e18fde66a35a573cf7f52d45239de825451da65b5a800156c0c5922a6e0c843ef2e01e32
@@ -3,6 +3,7 @@ module Rbbt
3
3
 
4
4
  def self.add_version(file)
5
5
  dir = Path.setup(Path.caller_lib_dir(file))
6
+ return if dir.nil?
6
7
  libname = File.basename(dir).sub('rbbt-','')
7
8
  return if VERSIONS.include? libname
8
9
 
@@ -35,6 +35,7 @@ module Workflow
35
35
  end
36
36
 
37
37
  def documentation_markdown
38
+ return "" if @libdir.nil?
38
39
  file = @libdir['workflow.md'].find
39
40
  if file.exists?
40
41
  file.read
@@ -78,10 +78,10 @@ module WorkflowRESTClient
78
78
 
79
79
  def init_remote_tasks
80
80
  task_exports = WorkflowRESTClient.get_json(url)
81
- @asynchronous_exports = task_exports["asynchronous"].collect{|task| task.to_sym }
82
- @synchronous_exports = task_exports["synchronous"].collect{|task| task.to_sym }
83
- @exec_exports = task_exports["exec"].collect{|task| task.to_sym }
84
- @stream_exports = task_exports["stream"].collect{|task| task.to_sym }
81
+ @asynchronous_exports = (task_exports["asynchronous"] || []).collect{|task| task.to_sym }
82
+ @synchronous_exports = (task_exports["synchronous"] || []).collect{|task| task.to_sym }
83
+ @exec_exports = (task_exports["exec"] || []).collect{|task| task.to_sym }
84
+ @stream_exports = (task_exports["stream"] || []).collect{|task| task.to_sym }
85
85
  @can_stream = task_exports["can_stream"]
86
86
  end
87
87
 
data/lib/rbbt/workflow.rb CHANGED
@@ -36,7 +36,9 @@ module Workflow
36
36
 
37
37
  def self.extended(base)
38
38
  self.workflows << base
39
- base.libdir = Path.setup(Path.caller_lib_dir).tap{|p| p.resource = base}
39
+ libdir = Path.caller_lib_dir
40
+ return if libdir.nil?
41
+ base.libdir = Path.setup(libdir).tap{|p| p.resource = base}
40
42
  end
41
43
 
42
44
  def self.init_remote_tasks
@@ -85,7 +85,7 @@ Misc.in_dir(app_dir) do
85
85
 
86
86
  case server
87
87
  when 'passenger'
88
- system ENV, "env RBBT_LOG=0 passenger start -R '#{config_ru_file}' -p #{options[:port] || "2887"}"
88
+ system ENV, "env RBBT_LOG=0 passenger start -R '#{config_ru_file}' -p #{options[:Port] || "2887"}"
89
89
  when 'puma_alt'
90
90
  system ENV, "puma '#{config_ru_file}' -p #{options[:Port] || "2887"} -w 3 -t 8:32 --preload"
91
91
  else
@@ -111,7 +111,7 @@ TmpFile.with_file do |app_dir|
111
111
 
112
112
  case server
113
113
  when 'unicorn'
114
- `env RBBT_LOG=#{Log.severity.to_s} unicorn -c #{ Rbbt.share['unicorn.rb'].find } '#{config_ru_file}' -p #{options[:port] || "2887"}`
114
+ `env RBBT_LOG=#{Log.severity.to_s} unicorn -c #{ Rbbt.share['unicorn.rb'].find } '#{config_ru_file}' -p #{options[:Port] || "2887"}`
115
115
  when 'puma_alt'
116
116
  #`puma '#{config_ru_file}' -p #{options[:Port] || "2887"} -w 3 -t 8:32 --preload`
117
117
  `env RBBT_LOG=#{Log.severity.to_s} puma '#{config_ru_file}' -p #{options[:Port] || "2887"} -w 20 -t 10:160 --preload`
@@ -18,11 +18,12 @@ $0 = "rbbt #{$previous_commands*""} #{ File.basename(__FILE__) }" if $previous_c
18
18
  options = SOPT.setup <<EOF
19
19
  Examine the provenance of a job result
20
20
 
21
- $ rbbt workflow trace <job-result> <file.png>
21
+ $ rbbt workflow trace <job-result>
22
22
 
23
23
  -h--help Help
24
24
  -w--width* Image Width
25
25
  -h--height* Image Height
26
+ -p--plot Plot file
26
27
  -s--size* Image Size (Height and Width)
27
28
  -fg--fix_gap Remove execution gaps
28
29
  -pd--plot_data Print plot data
@@ -30,8 +31,8 @@ EOF
30
31
 
31
32
  SOPT.usage if options[:help]
32
33
 
33
- file = ARGV.shift || "/home/mvazque2/.rbbt/var/jobs/Sample/haplotype/NA12878"
34
- plot = ARGV.shift
34
+ files = ARGV
35
+ plot = options[:plot]
35
36
 
36
37
  width, height, size = options.values_at :width, :height, :size
37
38
 
@@ -45,20 +46,22 @@ def get_step(file)
45
46
  Workflow.load_step file
46
47
  end
47
48
 
48
- step = get_step file
49
+ jobs = []
50
+ files.each do |file|
51
+ step = get_step file
49
52
 
53
+ jobs += step.rec_dependencies + [step]
50
54
 
51
- jobs = step.rec_dependencies + [step]
52
-
53
- step.info[:archived_info].each do |path,ainfo|
54
- archived_step = Step.new path
55
- class << archived_step
56
- self
57
- end.define_method :info do
58
- ainfo
59
- end
60
- jobs << archived_step
61
- end if step.info[:archived_info]
55
+ step.info[:archived_info].each do |path,ainfo|
56
+ archived_step = Step.new path
57
+ class << archived_step
58
+ self
59
+ end.define_method :info do
60
+ ainfo
61
+ end
62
+ jobs << archived_step
63
+ end if step.info[:archived_info]
64
+ end
62
65
 
63
66
  jobs = jobs.select{|job| job.info[:done]}.sort_by{|job| job.info[:started]}
64
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.26.151
4
+ version: 5.26.152
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-18 00:00:00.000000000 Z
11
+ date: 2020-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -537,93 +537,94 @@ required_rubygems_version: !ruby/object:Gem::Requirement
537
537
  - !ruby/object:Gem::Version
538
538
  version: '0'
539
539
  requirements: []
540
- rubygems_version: 3.0.6
540
+ rubyforge_project:
541
+ rubygems_version: 2.5.2.3
541
542
  signing_key:
542
543
  specification_version: 4
543
544
  summary: Utilities for the Ruby Bioinformatics Toolkit (rbbt)
544
545
  test_files:
545
- - test/rbbt/test_entity.rb
546
- - test/rbbt/workflow/test_doc.rb
547
- - test/rbbt/workflow/test_step.rb
548
- - test/rbbt/workflow/remote/test_client.rb
549
- - test/rbbt/workflow/step/test_dependencies.rb
550
- - test/rbbt/workflow/test_task.rb
551
- - test/rbbt/resource/test_path.rb
552
- - test/rbbt/util/test_colorize.rb
553
- - test/rbbt/util/misc/test_omics.rb
554
- - test/rbbt/util/misc/test_pipes.rb
555
- - test/rbbt/util/misc/test_lock.rb
546
+ - test/rbbt/test_knowledge_base.rb
547
+ - test/rbbt/association/test_item.rb
548
+ - test/rbbt/association/test_index.rb
549
+ - test/rbbt/association/test_open.rb
550
+ - test/rbbt/association/test_util.rb
551
+ - test/rbbt/association/test_database.rb
552
+ - test/rbbt/test_association.rb
556
553
  - test/rbbt/util/misc/test_multipart_payload.rb
554
+ - test/rbbt/util/misc/test_omics.rb
557
555
  - test/rbbt/util/misc/test_bgzf.rb
558
- - test/rbbt/util/test_concurrency.rb
559
- - test/rbbt/util/test_cmd.rb
560
- - test/rbbt/util/R/test_plot.rb
556
+ - test/rbbt/util/misc/test_lock.rb
557
+ - test/rbbt/util/misc/test_pipes.rb
558
+ - test/rbbt/util/simpleopt/test_get.rb
559
+ - test/rbbt/util/simpleopt/test_parse.rb
560
+ - test/rbbt/util/simpleopt/test_setup.rb
561
+ - test/rbbt/util/test_semaphore.rb
562
+ - test/rbbt/util/test_config.rb
563
+ - test/rbbt/util/test_R.rb
561
564
  - test/rbbt/util/R/test_eval.rb
562
565
  - test/rbbt/util/R/test_model.rb
563
- - test/rbbt/util/test_config.rb
566
+ - test/rbbt/util/R/test_plot.rb
567
+ - test/rbbt/util/test_excel2tsv.rb
568
+ - test/rbbt/util/test_open.rb
569
+ - test/rbbt/util/test_colorize.rb
570
+ - test/rbbt/util/concurrency/processes/test_socket.rb
571
+ - test/rbbt/util/concurrency/test_threads.rb
572
+ - test/rbbt/util/concurrency/test_processes.rb
573
+ - test/rbbt/util/test_cmd.rb
564
574
  - test/rbbt/util/test_log.rb
565
575
  - test/rbbt/util/test_simpleDSL.rb
566
576
  - test/rbbt/util/log/test_progress.rb
567
577
  - test/rbbt/util/test_tmpfile.rb
568
- - test/rbbt/util/test_R.rb
569
- - test/rbbt/util/test_excel2tsv.rb
570
578
  - test/rbbt/util/test_misc.rb
571
- - test/rbbt/util/test_open.rb
572
- - test/rbbt/util/test_simpleopt.rb
573
- - test/rbbt/util/simpleopt/test_parse.rb
574
- - test/rbbt/util/simpleopt/test_setup.rb
575
- - test/rbbt/util/simpleopt/test_get.rb
576
579
  - test/rbbt/util/test_python.rb
577
- - test/rbbt/util/test_filecache.rb
578
- - test/rbbt/util/concurrency/test_processes.rb
579
- - test/rbbt/util/concurrency/test_threads.rb
580
- - test/rbbt/util/concurrency/processes/test_socket.rb
581
- - test/rbbt/util/test_semaphore.rb
582
580
  - test/rbbt/util/test_chain_methods.rb
583
- - test/rbbt/test_resource.rb
584
- - test/rbbt/test_packed_index.rb
585
- - test/rbbt/tsv/test_change_id.rb
581
+ - test/rbbt/util/test_concurrency.rb
582
+ - test/rbbt/util/test_filecache.rb
583
+ - test/rbbt/util/test_simpleopt.rb
584
+ - test/rbbt/entity/test_identifiers.rb
585
+ - test/rbbt/test_fix_width_table.rb
586
586
  - test/rbbt/tsv/test_attach.rb
587
- - test/rbbt/tsv/test_filter.rb
588
- - test/rbbt/tsv/test_parser.rb
589
- - test/rbbt/tsv/test_accessor.rb
590
- - test/rbbt/tsv/test_matrix.rb
591
- - test/rbbt/tsv/test_field_index.rb
592
- - test/rbbt/tsv/test_util.rb
593
- - test/rbbt/tsv/test_index.rb
594
- - test/rbbt/tsv/test_parallel.rb
595
- - test/rbbt/tsv/test_manipulate.rb
587
+ - test/rbbt/tsv/test_stream.rb
596
588
  - test/rbbt/tsv/test_excel.rb
597
589
  - test/rbbt/tsv/parallel/test_through.rb
598
590
  - test/rbbt/tsv/parallel/test_traverse.rb
599
- - test/rbbt/tsv/test_stream.rb
600
- - test/rbbt/test_association.rb
601
- - test/rbbt/association/test_database.rb
602
- - test/rbbt/association/test_item.rb
603
- - test/rbbt/association/test_open.rb
604
- - test/rbbt/association/test_util.rb
605
- - test/rbbt/association/test_index.rb
606
- - test/rbbt/test_knowledge_base.rb
607
- - test/rbbt/persist/tsv/test_kyotocabinet.rb
608
- - test/rbbt/persist/tsv/test_cdb.rb
609
- - test/rbbt/persist/tsv/test_lmdb.rb
610
- - test/rbbt/persist/tsv/test_sharder.rb
611
- - test/rbbt/persist/tsv/test_leveldb.rb
612
- - test/rbbt/persist/tsv/test_tokyocabinet.rb
613
- - test/rbbt/persist/test_tsv.rb
614
- - test/rbbt/test_tsv.rb
615
- - test/rbbt/test_annotations.rb
616
- - test/rbbt/test_fix_width_table.rb
591
+ - test/rbbt/tsv/test_index.rb
592
+ - test/rbbt/tsv/test_matrix.rb
593
+ - test/rbbt/tsv/test_parallel.rb
594
+ - test/rbbt/tsv/test_util.rb
595
+ - test/rbbt/tsv/test_accessor.rb
596
+ - test/rbbt/tsv/test_field_index.rb
597
+ - test/rbbt/tsv/test_manipulate.rb
598
+ - test/rbbt/tsv/test_change_id.rb
599
+ - test/rbbt/tsv/test_filter.rb
600
+ - test/rbbt/tsv/test_parser.rb
617
601
  - test/rbbt/test_workflow.rb
618
- - test/rbbt/entity/test_identifiers.rb
619
- - test/rbbt/annotations/test_util.rb
620
- - test/rbbt/test_hpc.rb
621
- - test/rbbt/test_monitor.rb
602
+ - test/rbbt/test_packed_index.rb
603
+ - test/rbbt/test_annotations.rb
622
604
  - test/rbbt/test_persist.rb
623
- - test/rbbt/knowledge_base/test_entity.rb
624
- - test/rbbt/knowledge_base/test_registry.rb
605
+ - test/rbbt/annotations/test_util.rb
606
+ - test/rbbt/workflow/test_doc.rb
607
+ - test/rbbt/workflow/test_step.rb
608
+ - test/rbbt/workflow/step/test_dependencies.rb
609
+ - test/rbbt/workflow/test_task.rb
610
+ - test/rbbt/workflow/remote/test_client.rb
625
611
  - test/rbbt/knowledge_base/test_syndicate.rb
626
- - test/rbbt/knowledge_base/test_query.rb
627
612
  - test/rbbt/knowledge_base/test_enrichment.rb
613
+ - test/rbbt/knowledge_base/test_query.rb
628
614
  - test/rbbt/knowledge_base/test_traverse.rb
615
+ - test/rbbt/knowledge_base/test_entity.rb
616
+ - test/rbbt/knowledge_base/test_registry.rb
617
+ - test/rbbt/test_resource.rb
618
+ - test/rbbt/test_tsv.rb
619
+ - test/rbbt/test_hpc.rb
620
+ - test/rbbt/resource/test_path.rb
621
+ - test/rbbt/test_entity.rb
622
+ - test/rbbt/test_monitor.rb
623
+ - test/rbbt/persist/tsv/test_tokyocabinet.rb
624
+ - test/rbbt/persist/tsv/test_leveldb.rb
625
+ - test/rbbt/persist/tsv/test_lmdb.rb
626
+ - test/rbbt/persist/tsv/test_kyotocabinet.rb
627
+ - test/rbbt/persist/tsv/test_cdb.rb
628
+ - test/rbbt/persist/tsv/test_sharder.rb
629
+ - test/rbbt/persist/test_tsv.rb
629
630
  - test/test_helper.rb