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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmY3YTMzYTM2YmQ5MjUyNGJjMjY1ZmFjMWRkNWU3N2UzOWEyYWYxMw==
4
+ NDVhMjJlZjRiODE4MTAwNWEwMDUwY2M1OWQ3NTZiYzcyMjY5YTFjYQ==
5
5
  data.tar.gz: !binary |-
6
- ODQ1OGE1YzZkODI3OWRlNDU4YWQyMDU0NmMyZGJiNjE4N2Q5ZjY1Nw==
6
+ NWE0NzJlOWRjOWQzMGEyZGM5OGZlYWI3MmNlNTM2YzVlYTJlZmE0ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTU4OWE1Y2ZkYTA2Y2MwODMwODU3ZjI3NThhZjBjMTNlMmNmOWE3ZjgxNWM3
10
- YmUzOWY3OGJlZTQxZDk4ZjhlZmQyZjVlNDY1ZGZmMDcyMGJmNGJhZjg1ZGI4
11
- NDQ2YzdlMTc4ZDhlYjEwZDQ0Zjk0YWQwYjBkMjAwYTFjMWZmYzI=
9
+ OTAzOWRhMTMzZWJhOGVlZTk2YzI2MzVmNTAwY2UxMmM4YjIzZDViNGI2MjBm
10
+ OWMyOWVlNzg5NWU3Mjk0NmRmN2UxYzI4ZDk1M2Q2OWY5Yjg1OTA3YjA2ZWI2
11
+ MzJiNzgwYzY5NmRmMzI5MWVmOTA5MDgxZTM2MmVjNzFjYmM1MmM=
12
12
  data.tar.gz: !binary |-
13
- ZjE5NmI3ODlhNGQ2ODcxOTJkNTc3ODhmZWNmMTI2MDFlMjk2ZjUzNTdkMGQ5
14
- M2M5NmM1OGFmMGMxZjZhN2JhY2QyZWExZjE0ZWRhMWQ0ZDg2NDZmNGE3NmI4
15
- Mjk1NTJmOTAzZjFlMjc3MTcwYTU3M2ViNzllY2QwNjBkZmE4ODg=
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.3
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-29 00:00:00.000000000 Z
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