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
|
-
|
4
|
+
N2VkYmEwMzZlMjkzMDdkODVjZDVhNGQ0M2E1ZjY4YmFlYTQ1Yzg5Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTQyMTYxNTE4OGUzZDlmN2EzYzk3OWU4NWMyZDNjZjQ2MTgxZmY4Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTE2NjRlZWRmZGNiMmQwNDJjY2Y4Y2IxNGYxM2FhMWQ0YjI3ODhmMGZmYjUz
|
10
|
+
NjBlMDkwMWI5Y2RhYzEzOWM3ZTdjZTc4M2Q0MTA3M2YzMDhjOWJlYmU0YWEx
|
11
|
+
NTUzN2M4ZGU3YjZlYWRlYzA5MTdjNGUyODViNTg1MGMxMDBjODk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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]
|