rbbt-sources 3.0.27 → 3.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/sources/corum.rb +11 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3cf2501804b4adc98c032aa1ec5c9f986f02ebd
|
4
|
+
data.tar.gz: 1eafc609c0502d47523ad9dcce3918bff8b9293b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b95bb20d33189ee98dc7bee656f111e9dcc6e394c4c90d6b76e5eb44a9b74f89f7b703270e20dafe70793054d75a7c9f0d7043a333913554735a5254b2bc6e
|
7
|
+
data.tar.gz: 8056fca7a38b1e3135871f0bd8b99038c7b45f9f087c4ba7431ed82fa7703458d0f08c484d96ddc22d6671e2c221c46d6f30eb6251a1e10d76b7ee6716111388
|
data/lib/rbbt/sources/corum.rb
CHANGED
@@ -22,7 +22,16 @@ module CORUM
|
|
22
22
|
url = "http://mips.helmholtz-muenchen.de/genre/proj/corum/allComplexes.csv"
|
23
23
|
tsv = TSV.open(url, :header_hash => "", :sep => ';', :sep2 => ',', :fix => Proc.new{|l| "CORUM:" + l.gsub('"','')})
|
24
24
|
tsv.namespace = organism
|
25
|
-
tsv.fields = tsv.fields.collect{|f| f.gsub('"','')}
|
25
|
+
tsv.fields = tsv.fields.collect{|f| f.gsub('"','')}.collect{|f|
|
26
|
+
case f
|
27
|
+
when "subunits (UniProt IDs)"
|
28
|
+
"UniProt/SwissProt Accession"
|
29
|
+
when "subunits (Entrez IDs)"
|
30
|
+
"Entrez Gene ID"
|
31
|
+
else
|
32
|
+
f
|
33
|
+
end
|
34
|
+
}
|
26
35
|
tsv.key_field = "CORUM Complex ID"
|
27
36
|
tsv.identifiers = CORUM.complex_names.produce.find
|
28
37
|
tsv
|
@@ -39,7 +48,7 @@ if defined? Entity
|
|
39
48
|
self.add_identifiers CORUM.complex_names, "CORUM Complex ID", "Complex name"
|
40
49
|
|
41
50
|
property :genes => :array2single do
|
42
|
-
@genes ||= CORUM.complexes.tsv(:persist => true, :fields => ["
|
51
|
+
@genes ||= CORUM.complexes.tsv(:persist => true, :fields => ["UniProt/SwissProt Accession"], :type => :flat).values_at *self
|
43
52
|
end
|
44
53
|
end
|
45
54
|
end
|