rbbt-util 5.21.120 → 5.21.121
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 +4 -4
- data/lib/rbbt/knowledge_base/query.rb +1 -1
- data/lib/rbbt/workflow/step/dependencies.rb +2 -1
- data/lib/rbbt/workflow/step/run.rb +6 -6
- data/share/Rlib/util.R +28 -0
- metadata +65 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 435a3cc2ef4b1d9f0838bbd85f75e8be462cbbc3
|
4
|
+
data.tar.gz: 7b5549e9ceee2715acc0214e92797722b04da22a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd02ef90d9343947194eda5f35e3dcb6edc528b431e3ecff890f12dd6f7be5e7567215fc9a01009493f1a1f106eb4e2969f95f1c8ec5b75e5153b91cfca14e69
|
7
|
+
data.tar.gz: 86040779d87fe38a288c7e1a274ad2cd2319cad9409dac48ed0276911b8942ee06f43ad68265138ae682aac354d1e605c0c90e3cddc1fc2ffb72a0f937c45451
|
@@ -61,7 +61,7 @@ class KnowledgeBase
|
|
61
61
|
def parents(name, entity)
|
62
62
|
entity = identify_target(name, entity)
|
63
63
|
matches = _parents(name, entity)
|
64
|
-
matches.each{|m| m.replace(m.partition("~").reverse*"") } unless undirected(name)
|
64
|
+
#matches.each{|m| m.replace(m.partition("~").reverse*"") } unless undirected(name)
|
65
65
|
setup(name, matches, true)
|
66
66
|
end
|
67
67
|
|
@@ -82,7 +82,8 @@ class Step
|
|
82
82
|
|
83
83
|
if (status == 'error' && (job.recoverable_error? || job.dirty?)) ||
|
84
84
|
job.aborted? ||
|
85
|
-
(job.done? && job.
|
85
|
+
(job.done? && ! job.updated?) || (job.error? && ! job.updated?)
|
86
|
+
(job.done? && job.dirty?) || (job.error? && job.dirty?)
|
86
87
|
(! (job.status == :waiting || job.status == :noinfo || job.done? || job.error? || job.aborted?) && ! job.running?)
|
87
88
|
|
88
89
|
job.clean
|
@@ -93,7 +93,7 @@ class Step
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def input_checks
|
96
|
-
inputs.select{|i| Step === i
|
96
|
+
inputs.select{|i| Step === i }
|
97
97
|
end
|
98
98
|
|
99
99
|
def checks
|
@@ -106,10 +106,10 @@ class Step
|
|
106
106
|
outdated_time = []
|
107
107
|
outdated_dep = []
|
108
108
|
checks.each do |dep|
|
109
|
-
if File.mtime(dep.path) > File.mtime(self.path)
|
109
|
+
if dep.done? && self.done? && (File.mtime(dep.path) > File.mtime(self.path))
|
110
110
|
outdated_time << dep
|
111
111
|
end
|
112
|
-
if ! dep.updated?
|
112
|
+
if ! dep.done? || ! dep.updated?
|
113
113
|
outdated_dep << dep
|
114
114
|
end
|
115
115
|
end
|
@@ -121,7 +121,7 @@ class Step
|
|
121
121
|
end
|
122
122
|
|
123
123
|
def updated?
|
124
|
-
return true unless done?
|
124
|
+
return true unless (done? || error?)
|
125
125
|
|
126
126
|
@updated ||= out_of_date.empty?
|
127
127
|
end
|
@@ -583,7 +583,7 @@ class Step
|
|
583
583
|
end
|
584
584
|
|
585
585
|
def grace
|
586
|
-
until done? or result or error? or aborted? or streaming?
|
586
|
+
until done? or result or error? or aborted? or streaming? or waiting?
|
587
587
|
sleep 1
|
588
588
|
end
|
589
589
|
self
|
@@ -622,7 +622,7 @@ class Step
|
|
622
622
|
dependencies.each{|dep| dep.join }
|
623
623
|
end
|
624
624
|
|
625
|
-
until (path.exists? && status == :done) or error? or aborted?
|
625
|
+
until (path.exists? && status == :done) or error? or aborted? or waiting?
|
626
626
|
sleep 1
|
627
627
|
join_stream if streaming?
|
628
628
|
end
|
data/share/Rlib/util.R
CHANGED
@@ -722,3 +722,31 @@ rbbt.require <- function(pkg, ...){
|
|
722
722
|
library(clean.packages, character.only=T)
|
723
723
|
}
|
724
724
|
|
725
|
+
rbbt.psd <- function(m){
|
726
|
+
e = eigen(m)
|
727
|
+
library(MASS)
|
728
|
+
|
729
|
+
values = e$values
|
730
|
+
values[values < 0] = 0
|
731
|
+
|
732
|
+
p = e$vectors %*% diag(values) %*% t(e$vectors)
|
733
|
+
|
734
|
+
rownames(p) <- rownames(m)
|
735
|
+
colnames(p) <- colnames(m)
|
736
|
+
|
737
|
+
return(p)
|
738
|
+
}
|
739
|
+
|
740
|
+
rbbt.fix_distance <- function(data){
|
741
|
+
rbbt.require('Hmisc')
|
742
|
+
|
743
|
+
m = impute(as.matrix(data))
|
744
|
+
|
745
|
+
p <- rbbt.psd(m)
|
746
|
+
p <- m
|
747
|
+
|
748
|
+
d <- as.dist(p)
|
749
|
+
|
750
|
+
return(d)
|
751
|
+
}
|
752
|
+
|
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.21.
|
4
|
+
version: 5.21.121
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -503,88 +503,88 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
503
503
|
version: '0'
|
504
504
|
requirements: []
|
505
505
|
rubyforge_project:
|
506
|
-
rubygems_version: 2.6.
|
506
|
+
rubygems_version: 2.6.13
|
507
507
|
signing_key:
|
508
508
|
specification_version: 4
|
509
509
|
summary: Utilities for the Ruby Bioinformatics Toolkit (rbbt)
|
510
510
|
test_files:
|
511
|
-
- test/
|
512
|
-
- test/rbbt/
|
513
|
-
- test/rbbt/
|
514
|
-
- test/rbbt/
|
515
|
-
- test/rbbt/
|
516
|
-
- test/rbbt/
|
517
|
-
- test/rbbt/
|
518
|
-
- test/rbbt/
|
519
|
-
- test/rbbt/knowledge_base/test_syndicate.rb
|
520
|
-
- test/rbbt/knowledge_base/test_enrichment.rb
|
521
|
-
- test/rbbt/knowledge_base/test_query.rb
|
522
|
-
- test/rbbt/knowledge_base/test_entity.rb
|
523
|
-
- test/rbbt/knowledge_base/test_registry.rb
|
524
|
-
- test/rbbt/knowledge_base/test_traverse.rb
|
525
|
-
- test/rbbt/util/test_R.rb
|
526
|
-
- test/rbbt/util/test_tmpfile.rb
|
527
|
-
- test/rbbt/util/test_filecache.rb
|
528
|
-
- test/rbbt/util/test_misc.rb
|
529
|
-
- test/rbbt/util/test_excel2tsv.rb
|
530
|
-
- test/rbbt/util/log/test_progress.rb
|
531
|
-
- test/rbbt/util/misc/test_multipart_payload.rb
|
511
|
+
- test/rbbt/test_entity.rb
|
512
|
+
- test/rbbt/workflow/test_doc.rb
|
513
|
+
- test/rbbt/workflow/test_step.rb
|
514
|
+
- test/rbbt/workflow/step/test_dependencies.rb
|
515
|
+
- test/rbbt/workflow/test_task.rb
|
516
|
+
- test/rbbt/resource/test_path.rb
|
517
|
+
- test/rbbt/util/test_colorize.rb
|
518
|
+
- test/rbbt/util/misc/test_omics.rb
|
532
519
|
- test/rbbt/util/misc/test_pipes.rb
|
533
|
-
- test/rbbt/util/misc/test_bgzf.rb
|
534
520
|
- test/rbbt/util/misc/test_lock.rb
|
535
|
-
- test/rbbt/util/misc/
|
536
|
-
- test/rbbt/util/
|
537
|
-
- test/rbbt/util/
|
521
|
+
- test/rbbt/util/misc/test_multipart_payload.rb
|
522
|
+
- test/rbbt/util/misc/test_bgzf.rb
|
523
|
+
- test/rbbt/util/test_concurrency.rb
|
524
|
+
- test/rbbt/util/test_cmd.rb
|
525
|
+
- test/rbbt/util/R/test_eval.rb
|
526
|
+
- test/rbbt/util/R/test_model.rb
|
527
|
+
- test/rbbt/util/test_log.rb
|
528
|
+
- test/rbbt/util/test_simpleDSL.rb
|
529
|
+
- test/rbbt/util/log/test_progress.rb
|
530
|
+
- test/rbbt/util/test_tmpfile.rb
|
531
|
+
- test/rbbt/util/test_R.rb
|
532
|
+
- test/rbbt/util/test_excel2tsv.rb
|
533
|
+
- test/rbbt/util/test_misc.rb
|
534
|
+
- test/rbbt/util/test_open.rb
|
535
|
+
- test/rbbt/util/test_simpleopt.rb
|
538
536
|
- test/rbbt/util/simpleopt/test_parse.rb
|
539
537
|
- test/rbbt/util/simpleopt/test_setup.rb
|
540
|
-
- test/rbbt/util/
|
538
|
+
- test/rbbt/util/simpleopt/test_get.rb
|
539
|
+
- test/rbbt/util/test_filecache.rb
|
541
540
|
- test/rbbt/util/concurrency/test_processes.rb
|
542
541
|
- test/rbbt/util/concurrency/test_threads.rb
|
543
542
|
- test/rbbt/util/concurrency/processes/test_socket.rb
|
544
|
-
- test/rbbt/util/
|
545
|
-
- test/rbbt/util/test_colorize.rb
|
546
|
-
- test/rbbt/util/test_cmd.rb
|
547
|
-
- test/rbbt/util/test_concurrency.rb
|
548
|
-
- test/rbbt/util/R/test_eval.rb
|
549
|
-
- test/rbbt/util/R/test_model.rb
|
550
|
-
- test/rbbt/util/test_simpleopt.rb
|
543
|
+
- test/rbbt/util/test_semaphore.rb
|
551
544
|
- test/rbbt/util/test_chain_methods.rb
|
552
|
-
- test/rbbt/
|
553
|
-
- test/rbbt/
|
554
|
-
- test/rbbt/tsv/test_parser.rb
|
555
|
-
- test/rbbt/tsv/test_field_index.rb
|
556
|
-
- test/rbbt/tsv/test_stream.rb
|
557
|
-
- test/rbbt/tsv/test_accessor.rb
|
545
|
+
- test/rbbt/test_resource.rb
|
546
|
+
- test/rbbt/test_packed_index.rb
|
558
547
|
- test/rbbt/tsv/test_change_id.rb
|
559
|
-
- test/rbbt/tsv/
|
560
|
-
- test/rbbt/tsv/parallel/test_through.rb
|
561
|
-
- test/rbbt/tsv/parallel/test_traverse.rb
|
562
|
-
- test/rbbt/tsv/test_manipulate.rb
|
548
|
+
- test/rbbt/tsv/test_attach.rb
|
563
549
|
- test/rbbt/tsv/test_filter.rb
|
550
|
+
- test/rbbt/tsv/test_parser.rb
|
551
|
+
- test/rbbt/tsv/test_accessor.rb
|
564
552
|
- test/rbbt/tsv/test_matrix.rb
|
553
|
+
- test/rbbt/tsv/test_field_index.rb
|
565
554
|
- test/rbbt/tsv/test_util.rb
|
566
|
-
- test/rbbt/tsv/
|
555
|
+
- test/rbbt/tsv/test_index.rb
|
556
|
+
- test/rbbt/tsv/test_parallel.rb
|
557
|
+
- test/rbbt/tsv/test_manipulate.rb
|
567
558
|
- test/rbbt/tsv/test_excel.rb
|
568
|
-
- test/rbbt/
|
569
|
-
- test/rbbt/
|
570
|
-
- test/rbbt/
|
571
|
-
- test/rbbt/
|
572
|
-
- test/rbbt/
|
573
|
-
- test/rbbt/
|
574
|
-
- test/rbbt/
|
575
|
-
- test/rbbt/
|
576
|
-
- test/rbbt/
|
577
|
-
- test/rbbt/
|
578
|
-
- test/rbbt/test_resource.rb
|
579
|
-
- test/rbbt/test_persist.rb
|
580
|
-
- test/rbbt/persist/tsv/test_tokyocabinet.rb
|
581
|
-
- test/rbbt/persist/tsv/test_cdb.rb
|
582
|
-
- test/rbbt/persist/tsv/test_leveldb.rb
|
559
|
+
- test/rbbt/tsv/parallel/test_through.rb
|
560
|
+
- test/rbbt/tsv/parallel/test_traverse.rb
|
561
|
+
- test/rbbt/tsv/test_stream.rb
|
562
|
+
- test/rbbt/test_association.rb
|
563
|
+
- test/rbbt/association/test_database.rb
|
564
|
+
- test/rbbt/association/test_item.rb
|
565
|
+
- test/rbbt/association/test_open.rb
|
566
|
+
- test/rbbt/association/test_util.rb
|
567
|
+
- test/rbbt/association/test_index.rb
|
568
|
+
- test/rbbt/test_knowledge_base.rb
|
583
569
|
- test/rbbt/persist/tsv/test_kyotocabinet.rb
|
584
|
-
- test/rbbt/persist/tsv/
|
570
|
+
- test/rbbt/persist/tsv/test_cdb.rb
|
585
571
|
- test/rbbt/persist/tsv/test_lmdb.rb
|
572
|
+
- test/rbbt/persist/tsv/test_sharder.rb
|
573
|
+
- test/rbbt/persist/tsv/test_leveldb.rb
|
574
|
+
- test/rbbt/persist/tsv/test_tokyocabinet.rb
|
586
575
|
- test/rbbt/persist/test_tsv.rb
|
587
576
|
- test/rbbt/test_tsv.rb
|
577
|
+
- test/rbbt/test_annotations.rb
|
588
578
|
- test/rbbt/test_fix_width_table.rb
|
589
|
-
- test/rbbt/
|
590
|
-
- test/rbbt/
|
579
|
+
- test/rbbt/test_workflow.rb
|
580
|
+
- test/rbbt/entity/test_identifiers.rb
|
581
|
+
- test/rbbt/annotations/test_util.rb
|
582
|
+
- test/rbbt/test_monitor.rb
|
583
|
+
- test/rbbt/test_persist.rb
|
584
|
+
- test/rbbt/knowledge_base/test_entity.rb
|
585
|
+
- test/rbbt/knowledge_base/test_registry.rb
|
586
|
+
- test/rbbt/knowledge_base/test_syndicate.rb
|
587
|
+
- test/rbbt/knowledge_base/test_query.rb
|
588
|
+
- test/rbbt/knowledge_base/test_enrichment.rb
|
589
|
+
- test/rbbt/knowledge_base/test_traverse.rb
|
590
|
+
- test/test_helper.rb
|