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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NThmMjg1OTZlYzk0NGVhYmU2YmRiMDg2NjI3MGFiNDA5NGY0MDlkOQ==
4
+ MDEwOTcwMzliOWZlZDBlMmIyOGY5NDdmOTk3N2FlNGY3ZWU5ZWQxMg==
5
5
  data.tar.gz: !binary |-
6
- M2EzYWE2MTllNGE3NjZkMTMwYjcyYmVjN2FhMjg3Y2VlOGFjNjE1Yw==
6
+ ZWFhZjg2ZThiYTkwMzdlNzZkYTYwOGRhMGIxZDFkMDYyNTIzMTAyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjZkZmJiNDcyMWI3MTA3MDQ1ODc5ODBmM2E1Y2NhMWY1YTU2ZDFkNzg3MGE4
10
- NDZiNTAwOWEyYjFjMzc3NTRmMmYyODYyODFiODIxMDFkMjVkMDBhYTMxMTA4
11
- Mjk0NGIzNGZiOWE5NzQxZTY4YzEwZGNjMWVhNzJkZjdmYjg3MzU=
9
+ OTNjZTBmYzY2ZDUyYjRiNWZhZWZlMDY4OGU3NjA2YzY5ZmU0NGY4NDBjYzMw
10
+ MWU4OGM5NjhjZTdmNjAwMGNjZjcxMWJkZjEzOTQ0MWExZTk2YTM4YjNmM2Jm
11
+ ZWU0OTA5YTQ4MGRiZDVhNGMxNDdiNzY3NjJlNWQ4OGRhZmI0ODU=
12
12
  data.tar.gz: !binary |-
13
- MjRlYmI5YTk1NGUyYWMwOTRmMDZjNDBmZmJjOTE3YWYxMTc5Mjc0ZWRmMDk2
14
- YTEyNDJkYWFjYTc1MmRiZjdhYzIxODJkNmIzNTQ4ZmE2ZjNjZTg0NmViNGVl
15
- YjA5MmIzZGNmZTMyZTFlMDI4NjY4MGQzOGExZjJhMGYzZGIyN2U=
13
+ YmM2ODMzODlkZjk2M2Y1N2YzMGVjYTVlZWI2NDg0YTJjMGNlZjdmNThmMGMw
14
+ ZGM2YjkzYTllMDcwODEwOTdlNTk1YTMyOTE2OTg0ODRiMDAwNTkxNGZiZGRl
15
+ OGM2ODFmOWQ4MDQxZjdkNTE5ZjFjOGU1ZGUxYThmMzg5M2M1MGI=
@@ -53,7 +53,7 @@ module Study
53
53
  sample_info.keys
54
54
  end
55
55
  end
56
- Sample.setup(samples, self)
56
+ Sample.setup(samples, :study => self)
57
57
  samples.study = self
58
58
  samples
59
59
  end
@@ -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
- if File.exists? setup_file
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 ? Study.study_dir[self] : Path.setup(File.join(Study.study_dir, self), nil, Study)
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.12
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-14 00:00:00.000000000 Z
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