rbbt-study 0.2.6 → 0.2.7

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
- YjU1MDk3MzlhY2VjMDZmZGFmMDViZWQyOTE3MzQ3OTFiMmVmYTBlOA==
4
+ MTg4YWExYzRjYzE1NzMwNjg0ZmNlOWZlOWM1ZTVmMDk4MWNiZDQ5Yg==
5
5
  data.tar.gz: !binary |-
6
- M2NmYmE2NTMzOWU3MTc1OWI2YjE1Mjc2NzBkMzc4Nzk2NTY4MDAzMg==
6
+ MWE4Y2U3YzMyODdkNmZhOWRmMjJmODViZmVlNzdmYWJmOGM0Yjc5Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDQ2MjcyNGFiYjNkMTM4MDc3ZThiMjNkM2E2NGExZTViZTJjYTcyNzE3YTQ5
10
- ZWM2NGJkZDNiNzkwZDBkMzA2NjBmNmEwZmZiYTAzM2YzMmQ4ZGQzNWQ5Yjkw
11
- NWFmNTg4OWY4MWU1NGM3MzkwMmVlNjY5MDM0MjRmNWU0YjlkZTk=
9
+ ZWQ2YmIyOTcwZjY4NWQ2Y2EwZTI4N2JmN2NkMjU5YThlMmJhNTE4YzY5MWIz
10
+ N2FjMDViYmUyNjQ2ZWJkNjQyMzc0NWZkMmYzNTQ1NzNjZGIyNzZhZjMwNTli
11
+ ZDM4NWZiMjYwMDk4NTBlNGQ1NjE2MDQxZTQ1OTg5ZWJlZDdkZDM=
12
12
  data.tar.gz: !binary |-
13
- MDc3YzRhMzE3OTc3ODkyYzRmM2I2MDdmMTQzNWM3MjY5NWI2NGZhZGU3MzU5
14
- N2RhYzFjNzNjZGJhMmNhMzcyZWFhMTMxYzU0M2U3N2ZjMDg2NmNlZTY3MTll
15
- ZmQ5Y2EzMmY1OTAzMmEwM2RiYzA3ZGVkODM3YTZiMGQzOWM0MDI=
13
+ ZGI0N2E4YWViNDAyNjFkMTZkNTBhNjdiYzI4ZTAyNmM4Y2Q4ZGNlYTI1YWNh
14
+ NmVkOWRmYzE5NDI1YjFkNzZlZWU4MTM4ODczMzNiZjk2MDdkZDA0MDA0MWEz
15
+ N2U2NmNlOWE0NzNmMTEzMDUwYzg4YTcwMTA1MmNhOTY2MjNkYmE=
@@ -50,6 +50,7 @@ module Study
50
50
 
51
51
  tsv[sample] = Misc.zip_fields values
52
52
  end
53
+
53
54
  tsv
54
55
  }
55
56
 
@@ -21,6 +21,13 @@ module Sample
21
21
  study.organism
22
22
  end
23
23
 
24
+ def study
25
+ @study ||= begin
26
+ this = Array === self ? self.flatten : [self]
27
+ Study.studies.select{|study| Study.setup(study); (study.samples & this).any? }.first
28
+ end
29
+ end
30
+
24
31
  end
25
32
 
26
33
  module Study
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.6
4
+ version: 0.2.7
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-10-31 00:00:00.000000000 Z
11
+ date: 2013-11-04 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