rbbt-study 0.2.20 → 0.2.21

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
- MmU0YmUxZDUxOTZhMmU1MjJlMmI3MWUwYzU4NzYxODY1NWZhNjk0NQ==
4
+ N2VkYmEwMzZlMjkzMDdkODVjZDVhNGQ0M2E1ZjY4YmFlYTQ1Yzg5Nw==
5
5
  data.tar.gz: !binary |-
6
- NGI4ODVjZThmOTk5ODI2NTRhYzRlN2RlNDA0NTc0ZWIyNDk4NGYzOA==
6
+ MTQyMTYxNTE4OGUzZDlmN2EzYzk3OWU4NWMyZDNjZjQ2MTgxZmY4Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjI1Yzc5YmZjM2ZhY2NmNzI0Zjk3MTZhNTFlMzM0YWZkZWZkZjEwNDVkZGI0
10
- NjVkM2Q4ZTY5OGQwZjkyMDRkYWM4Yzg0YmU3MWVjNzY4OGNjNWNiMDM2M2U4
11
- YTQxYmZiMDQwM2VjNzI3MTNjOTgzNjdmNzg5ZTQ2NDM4OTJmYTM=
9
+ YTE2NjRlZWRmZGNiMmQwNDJjY2Y4Y2IxNGYxM2FhMWQ0YjI3ODhmMGZmYjUz
10
+ NjBlMDkwMWI5Y2RhYzEzOWM3ZTdjZTc4M2Q0MTA3M2YzMDhjOWJlYmU0YWEx
11
+ NTUzN2M4ZGU3YjZlYWRlYzA5MTdjNGUyODViNTg1MGMxMDBjODk=
12
12
  data.tar.gz: !binary |-
13
- MTk5MjBlZTc1NDQ4OTZiNjE0M2VlZGVkYWE0YWZiM2VhYzJkNjk0MjhjYTI2
14
- OTc2YzhiZTAxMTBmOWQwZGI0OGNiZjM5NmZiZjk3ODMxMjYwNzYzNDJmZGRj
15
- ZTMyY2EzZjg1Y2I2MDkwNzM0OGRhOGJkYTllMmVmNTEwNzQzODY=
13
+ MDQxN2RiZDJmYTI3NTZjZDc4NDc5MjQ2ZDc3MDRjZDIzMTAxNDE3NzMzODI1
14
+ MjNiYWIxNDEzYTc1NWExNjJiMGRmMTkyZGFjNDkxYTZkNTFmYTc2YTgwMzQx
15
+ YjZkYmY0MmJmZDJlNjJiMzQxN2MzMGE3MTA4NzY4MTQzOWQwZTg=
@@ -15,9 +15,11 @@ module Study
15
15
 
16
16
  self.study_registry[:sample_mutations] = Proc.new{|study,database|
17
17
  tsv = TSV.setup({}, :key_field => "Sample", :fields => ["Genomic Mutation"], :type => :flat, :namespace => study.organism)
18
+
18
19
  study.samples.select_by(:has_genotype?).each do |sample|
19
20
  tsv[sample] = sample.mutations
20
21
  end
22
+
21
23
  tsv
22
24
  }
23
25
 
@@ -28,7 +28,7 @@ module StudyWorkflow
28
28
 
29
29
  genes.each do |gene|
30
30
  mutations = study.knowledge_base.parents(:mutation_genes, gene).target
31
- mutations = study.knowledge_base.subset(:sample_mutations, "Genomic Mutation" => mutations).source
31
+ mutations = study.knowledge_base.subset(:sample_mutations, "Genomic Mutation" => mutations, "Sample" => :all).source
32
32
  next if mutations.empty?
33
33
  matches = mutations.length
34
34
  exon_bases = gene2exon_size[gene]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-study
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez