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 +5 -5
- data/lib/rbbt/util/version.rb +1 -0
- data/lib/rbbt/workflow/doc.rb +1 -0
- data/lib/rbbt/workflow/remote/rest/adaptor.rb +4 -4
- data/lib/rbbt/workflow.rb +3 -1
- data/share/rbbt_commands/app/start +1 -1
- data/share/rbbt_commands/workflow/server +1 -1
- data/share/rbbt_commands/workflow/trace +18 -15
- metadata +68 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 85aa7a358c16c13eeb0528c2f67a8eacc94d6aef
|
4
|
+
data.tar.gz: b4d62fb09f600f50c973dc0eb53a195a7fb9752a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d07f838e26b9c02495367a6d886eae1b092c230b1c6b622267e04d972e4216ebbef4c04bc489595a5dca429147ad0ed9b6fd5c901e65eb13036d94aa10521d3c
|
7
|
+
data.tar.gz: f95e14b56df996c1a57e269807bdf578eae7dcb5216debc7630d01d5e18fde66a35a573cf7f52d45239de825451da65b5a800156c0c5922a6e0c843ef2e01e32
|
data/lib/rbbt/util/version.rb
CHANGED
data/lib/rbbt/workflow/doc.rb
CHANGED
@@ -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
|
-
|
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[:
|
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[:
|
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>
|
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
|
-
|
34
|
-
plot =
|
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
|
-
|
49
|
+
jobs = []
|
50
|
+
files.each do |file|
|
51
|
+
step = get_step file
|
49
52
|
|
53
|
+
jobs += step.rec_dependencies + [step]
|
50
54
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
end
|
60
|
-
|
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.
|
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-
|
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
|
-
|
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/
|
546
|
-
- test/rbbt/
|
547
|
-
- test/rbbt/
|
548
|
-
- test/rbbt/
|
549
|
-
- test/rbbt/
|
550
|
-
- test/rbbt/
|
551
|
-
- test/rbbt/
|
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/
|
559
|
-
- test/rbbt/util/
|
560
|
-
- test/rbbt/util/
|
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/
|
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/
|
584
|
-
- test/rbbt/
|
585
|
-
- test/rbbt/
|
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/
|
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/
|
600
|
-
- test/rbbt/
|
601
|
-
- test/rbbt/
|
602
|
-
- test/rbbt/
|
603
|
-
- test/rbbt/
|
604
|
-
- test/rbbt/
|
605
|
-
- test/rbbt/
|
606
|
-
- test/rbbt/
|
607
|
-
- test/rbbt/
|
608
|
-
- test/rbbt/
|
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/
|
619
|
-
- test/rbbt/
|
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/
|
624
|
-
- test/rbbt/
|
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
|