rbbt-sources 3.0.26 → 3.0.27
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 +4 -4
- data/lib/rbbt/sources/corum.rb +45 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 181746bb32b62916dc308c6a3de563e9a4cabc38
|
4
|
+
data.tar.gz: 83716370f3b9b4b67001c027b2e92376d10e0470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e48df6950c1ec5920d90d9572e6afc3077922e78f0df2a8f8a0e9ae239d09ed4eeb6d9b95bc36628e64233d2f5f13a39dbd439d103eda11a0d762b222c38456
|
7
|
+
data.tar.gz: 397844dfcd4b57939300c19e88de625291fb083dd1e380145f1edddfb30cbaca54c43d49bbb5981c92c8c47b257e0afc178204ba0e7ea34bba42777dec79b09d
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'rbbt-util'
|
2
|
+
require 'rbbt/resource'
|
3
|
+
|
4
|
+
module CORUM
|
5
|
+
extend Resource
|
6
|
+
self.subdir = 'share/databases/CORUM'
|
7
|
+
|
8
|
+
def self.organism(org="Hsa")
|
9
|
+
Organism.default_code(org)
|
10
|
+
end
|
11
|
+
|
12
|
+
CORUM.claim CORUM.complex_names, :proc do
|
13
|
+
url = "http://mips.helmholtz-muenchen.de/genre/proj/corum/allComplexes.csv"
|
14
|
+
tsv = TSV.open(url, :header_hash => "", :sep => ';', :sep2 => ',', :fix => Proc.new{|l| "CORUM:" + l.gsub('"','')})
|
15
|
+
tsv.namespace = organism
|
16
|
+
tsv.fields = tsv.fields.collect{|f| f.gsub('"','')}
|
17
|
+
tsv.key_field = "CORUM Complex ID"
|
18
|
+
tsv.slice("Complex name").to_single
|
19
|
+
end
|
20
|
+
|
21
|
+
CORUM.claim CORUM.complexes, :proc do
|
22
|
+
url = "http://mips.helmholtz-muenchen.de/genre/proj/corum/allComplexes.csv"
|
23
|
+
tsv = TSV.open(url, :header_hash => "", :sep => ';', :sep2 => ',', :fix => Proc.new{|l| "CORUM:" + l.gsub('"','')})
|
24
|
+
tsv.namespace = organism
|
25
|
+
tsv.fields = tsv.fields.collect{|f| f.gsub('"','')}
|
26
|
+
tsv.key_field = "CORUM Complex ID"
|
27
|
+
tsv.identifiers = CORUM.complex_names.produce.find
|
28
|
+
tsv
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
if defined? Entity
|
34
|
+
module CORUMComplex
|
35
|
+
extend Entity
|
36
|
+
|
37
|
+
self.annotation :format
|
38
|
+
self.annotation :organism
|
39
|
+
self.add_identifiers CORUM.complex_names, "CORUM Complex ID", "Complex name"
|
40
|
+
|
41
|
+
property :genes => :array2single do
|
42
|
+
@genes ||= CORUM.complexes.tsv(:persist => true, :fields => ["subunits (UniProt IDs)"], :type => :flat).values_at *self
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-sources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|
@@ -99,6 +99,7 @@ files:
|
|
99
99
|
- lib/rbbt/sources/bibtex.rb
|
100
100
|
- lib/rbbt/sources/biomart.rb
|
101
101
|
- lib/rbbt/sources/cath.rb
|
102
|
+
- lib/rbbt/sources/corum.rb
|
102
103
|
- lib/rbbt/sources/ensembl.rb
|
103
104
|
- lib/rbbt/sources/ensembl_ftp.rb
|
104
105
|
- lib/rbbt/sources/entrez.rb
|