rbbt-study 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rbbt/entity/study/samples.rb +1 -1
- data/lib/rbbt/entity/study.rb +13 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDEwOTcwMzliOWZlZDBlMmIyOGY5NDdmOTk3N2FlNGY3ZWU5ZWQxMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWFhZjg2ZThiYTkwMzdlNzZkYTYwOGRhMGIxZDFkMDYyNTIzMTAyZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTNjZTBmYzY2ZDUyYjRiNWZhZWZlMDY4OGU3NjA2YzY5ZmU0NGY4NDBjYzMw
|
10
|
+
MWU4OGM5NjhjZTdmNjAwMGNjZjcxMWJkZjEzOTQ0MWExZTk2YTM4YjNmM2Jm
|
11
|
+
ZWU0OTA5YTQ4MGRiZDVhNGMxNDdiNzY3NjJlNWQ4OGRhZmI0ODU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmM2ODMzODlkZjk2M2Y1N2YzMGVjYTVlZWI2NDg0YTJjMGNlZjdmNThmMGMw
|
14
|
+
ZGM2YjkzYTllMDcwODEwOTdlNTk1YTMyOTE2OTg0ODRiMDAwNTkxNGZiZGRl
|
15
|
+
OGM2ODFmOWQ4MDQxZjdkNTE5ZjFjOGU1ZGUxYThmMzg5M2M1MGI=
|
data/lib/rbbt/entity/study.rb
CHANGED
@@ -51,9 +51,9 @@ module Study
|
|
51
51
|
@study_dir ||= begin
|
52
52
|
case
|
53
53
|
when (not defined?(Rbbt))
|
54
|
-
File.join(ENV["HOME"], '.studies')
|
54
|
+
Path.setup(File.join(ENV["HOME"], '.studies'))
|
55
55
|
when Rbbt.etc.study_dir.exists?
|
56
|
-
Rbbt.etc.study_dir.read.chomp
|
56
|
+
Path.setup(Rbbt.etc.study_dir.read.chomp)
|
57
57
|
else
|
58
58
|
Rbbt.studies.find
|
59
59
|
end
|
@@ -88,13 +88,16 @@ module Study
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def self.extended(base)
|
91
|
-
setup_file = File.join(base.dir, 'setup.rb')
|
92
91
|
base.workflow = StudyWorkflow.clone
|
93
92
|
base.workflow.study = base
|
94
|
-
|
93
|
+
|
94
|
+
if File.exists?(setup_file = File.join(base.dir, 'setup.rb'))
|
95
95
|
base.instance_eval Open.read(setup_file), setup_file
|
96
96
|
end
|
97
|
+
|
97
98
|
base.local_persist_dir = Rbbt.var.cache.studies[base].persistence.find
|
99
|
+
|
100
|
+
base
|
98
101
|
end
|
99
102
|
|
100
103
|
def self.studies
|
@@ -103,7 +106,12 @@ module Study
|
|
103
106
|
end
|
104
107
|
|
105
108
|
def dir
|
106
|
-
@dir ||= Path === Study.study_dir
|
109
|
+
@dir ||= if Path === Study.study_dir
|
110
|
+
Study.study_dir[self]
|
111
|
+
else
|
112
|
+
Path.setup(File.join(Study.study_dir.dup, self), nil, Study)
|
113
|
+
end
|
114
|
+
@dir
|
107
115
|
end
|
108
116
|
|
109
117
|
def metadata
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-study
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem add the study entity with suport for NGS, Microarray and other
|
14
14
|
types of data
|