rbbt-study 0.2.3 → 0.2.4
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 +8 -8
- data/lib/rbbt/entity/study/genotypes/knowledge_base.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDVhMjJlZjRiODE4MTAwNWEwMDUwY2M1OWQ3NTZiYzcyMjY5YTFjYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWE0NzJlOWRjOWQzMGEyZGM5OGZlYWI3MmNlNTM2YzVlYTJlZmE0ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTAzOWRhMTMzZWJhOGVlZTk2YzI2MzVmNTAwY2UxMmM4YjIzZDViNGI2MjBm
|
10
|
+
OWMyOWVlNzg5NWU3Mjk0NmRmN2UxYzI4ZDk1M2Q2OWY5Yjg1OTA3YjA2ZWI2
|
11
|
+
MzJiNzgwYzY5NmRmMzI5MWVmOTA5MDgxZTM2MmVjNzFjYmM1MmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzQ0NzhkNzgzOWEwYWYzMTkzY2RkODlkZjA0MTRlMWIwNjU1NmEzYWZmYjM2
|
14
|
+
NzBmZTg4YTMxZWQ2MzU4NzZjYTJiMDYzY2ZjZDNiNWFiNTFmOTg4ZmU2NGU1
|
15
|
+
OWVkZGU5MDM3OTdjMmRmNzhkZWYwNDY3ZmI2NmVlODZmNDJkOWE=
|
@@ -18,13 +18,15 @@ module Study
|
|
18
18
|
|
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
|
-
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}
|
23
|
-
sample_mutations = study.knowledge_base.get_database(:sample_mutations, :source => "Sample")
|
24
21
|
|
22
|
+
sample_mutations = study.knowledge_base.get_database(:sample_mutations, :source => "Sample")
|
25
23
|
all_mutations = study.all_mutations
|
26
24
|
mutations2mutated_isoforms = Misc.process_to_hash(all_mutations){|mutations| mutations.mutated_isoforms }
|
27
|
-
mi2damaged = Misc.process_to_hash(MutatedIsoform.setup(mutations2mutated_isoforms.values.flatten.compact.uniq, study.organism)){|mis| mis.damaged? }
|
25
|
+
#mi2damaged = Misc.process_to_hash(MutatedIsoform.setup(mutations2mutated_isoforms.values.flatten.compact.uniq, study.organism)){|mis| mis.damaged? }
|
26
|
+
mi2damaged = Misc.process_to_hash(MutatedIsoform.setup(mutations2mutated_isoforms.values.flatten.compact.uniq, study.organism)){|mis| [false] * mis.length }
|
27
|
+
|
28
|
+
gene_mutations = study.knowledge_base.get_database(:mutation_genes, :source => "Ensembl Gene ID")
|
29
|
+
gene_mutations.entity_options["Genomic Mutation"] = {:watson => study.watson, :organism => study.organism}
|
28
30
|
study.samples.select_by(:has_genotype?).each do |sample|
|
29
31
|
values = sample.affected_genes.collect do |gene|
|
30
32
|
mutations = gene_mutations[gene].subset(sample_mutations[sample] || [])
|
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.4
|
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-30 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
|