rbbt-study 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmY3YTMzYTM2YmQ5MjUyNGJjMjY1ZmFjMWRkNWU3N2UzOWEyYWYxMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODQ1OGE1YzZkODI3OWRlNDU4YWQyMDU0NmMyZGJiNjE4N2Q5ZjY1Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTU4OWE1Y2ZkYTA2Y2MwODMwODU3ZjI3NThhZjBjMTNlMmNmOWE3ZjgxNWM3
|
10
|
+
YmUzOWY3OGJlZTQxZDk4ZjhlZmQyZjVlNDY1ZGZmMDcyMGJmNGJhZjg1ZGI4
|
11
|
+
NDQ2YzdlMTc4ZDhlYjEwZDQ0Zjk0YWQwYjBkMjAwYTFjMWZmYzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjE5NmI3ODlhNGQ2ODcxOTJkNTc3ODhmZWNmMTI2MDFlMjk2ZjUzNTdkMGQ5
|
14
|
+
M2M5NmM1OGFmMGMxZjZhN2JhY2QyZWExZjE0ZWRhMWQ0ZDg2NDZmNGE3NmI4
|
15
|
+
Mjk1NTJmOTAzZjFlMjc3MTcwYTU3M2ViNzllY2QwNjBkZmE4ODg=
|
@@ -19,6 +19,7 @@ module Study
|
|
19
19
|
self.study_registry[:sample_genes] = Proc.new{|study,database|
|
20
20
|
tsv = TSV.setup({}, :key_field => "Sample", :fields => ["Ensembl Gene ID", "Genomic Mutation", "Affected isoform", "Damaged isoform", "Exon Junction"], :type => :double, :namespace => study.organism)
|
21
21
|
gene_mutations = study.knowledge_base.get_database(:mutation_genes, :source => "Ensembl Gene ID")
|
22
|
+
gene_mutations.entity_options["Genomic Mutation"] = {:watson => study.watson, :organism => study.organism}
|
22
23
|
sample_mutations = study.knowledge_base.get_database(:sample_mutations, :source => "Sample")
|
23
24
|
|
24
25
|
all_mutations = study.all_mutations
|
@@ -27,6 +28,7 @@ module Study
|
|
27
28
|
study.samples.select_by(:has_genotype?).each do |sample|
|
28
29
|
values = sample.affected_genes.collect do |gene|
|
29
30
|
mutations = gene_mutations[gene].subset(sample_mutations[sample] || [])
|
31
|
+
|
30
32
|
if mutations.any?
|
31
33
|
junction = mutations.select_by(:in_exon_junction?).any?
|
32
34
|
|
@@ -20,6 +20,7 @@ module Sample
|
|
20
20
|
return nil if study.nil?
|
21
21
|
study.organism
|
22
22
|
end
|
23
|
+
|
23
24
|
end
|
24
25
|
|
25
26
|
module Study
|
@@ -42,14 +43,6 @@ module Study
|
|
42
43
|
@samples
|
43
44
|
end
|
44
45
|
|
45
|
-
def has_cnv?
|
46
|
-
study.has_cnv? and study.cnv_cohort.include? self
|
47
|
-
end
|
48
|
-
|
49
|
-
def has_mutations?
|
50
|
-
study.cohort and study.cohort.include? self
|
51
|
-
end
|
52
|
-
|
53
46
|
def match_samples(list)
|
54
47
|
if donor_id_field = (sample_info = self.sample_info).fields.select{|f| f =~ /donor\s+id/i}.first
|
55
48
|
list_donors = sample_info.select(list).slice(donor_id_field).values.compact.flatten
|
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.
|
4
|
+
version: 0.2.3
|
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-
|
11
|
+
date: 2013-10-29 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
|