rbbt-study 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/rbbt/entity/study.rb +17 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGY5MzgxZjY2ZDhmYWFlOGQ1N2E3MzI0N2EwY2ZhNTJkODk3OTUzNQ==
4
+ YTNhYWFhNWNlNzdhYjEyMzg3MThiYzllMzYxYmJkNmY0ZDEyZTcxNw==
5
5
  data.tar.gz: !binary |-
6
- MDJlODFiODE0ZDM1NzcxYzIyZDU5YzhlZGQ5ZjdlZGQ5YmIxYzVhOQ==
6
+ MjkxZDA5M2EyZjFiN2ZlNGI3ZGExMDBmMjczY2Y1ZTRhMDQ5OWI1Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODY5Zjk0NThjNjZmNTMxYmUzOTNhODRmZDQ0OTdiYTk3OWJiZGY3ZjA4MjY0
10
- NzNiZWU3ZTllZDNlMDczMzczNzk1NTZlZWVhNTQ2ZGNmY2NkNzM0NjQ0Y2I5
11
- MTVmNGJhYjE0ZThkMjE0MzVmMGJkOThhOGVhNGJlODdjYWE5MzM=
9
+ YmM3ZmE4OGVmOTVhNDg4NWQ0N2E1NTM2Nzc2Zjg3NzFlNDgxZmI4NDNhNmE2
10
+ Mzg2N2I5NDlhNGY1MzE0Yjk1MmEwODRlY2QyMGFhZDdlNTgwMzlhNDU0OWRl
11
+ NzU3ZjQzNDE4MGZhODg1ZTY1NGRjMTMyZDRhNThhZGRkNzZlN2I=
12
12
  data.tar.gz: !binary |-
13
- OWU0NDZlOWYzOTM5NzVjODg4YjVmZmJjYWY2NTY1YjNmOTkzYjQwNDcxYmM4
14
- YWM2ZWNhZDhjZmI0MjE5ZjJhMWQxNmQ4N2RiYjNkZTNiYTdlNjhhODMwM2Jk
15
- OGE4NjZhOGRlZjUzMTFhYWJhYjE0MGFhMTg2MjQyYjllMGM5NzU=
13
+ YmMyNmE2MTg5MTE0MWE4ODBiYzg0Njc3ZWMwMzBmNDg0YzljM2UxMjcwZGIy
14
+ NDgzZTM0NTljNTI0MTlhZDE1OWZlOWRkOWY2NTM4OGNlNTIxNTU2ZmYzODA0
15
+ NDU2MDlhZmVmNjc0ZGMxYmNlMDQ0YTg4M2MyZDA2MTQ5NDk3NTg=
@@ -105,6 +105,23 @@ module Study
105
105
  select{|f| File.directory? f}.sort.collect{|s| Study.setup(File.basename(s))}
106
106
  end
107
107
 
108
+ def self.studies
109
+ case study_dir
110
+ when nil
111
+ []
112
+ when Path
113
+ study_dir.find_all.collect do |study_path|
114
+ study_path.glob('*').select{|f| f.directory? }
115
+ end.flatten.collect{|f| self.annotate f}
116
+ else
117
+ Dir.glob(File.join(study_dir, "*"))
118
+ end.sort.collect do |dir|
119
+ study = Study.setup(File.basename(dir))
120
+ study.dir = study_dir.annotate(dir)
121
+ study
122
+ end
123
+ end
124
+
108
125
  def dir
109
126
  @dir ||= if Path === Study.study_dir
110
127
  Study.study_dir[self]
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.15
4
+ version: 0.2.16
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-23 00:00:00.000000000 Z
11
+ date: 2013-11-25 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