rbbt-sources 3.1.40 → 3.1.41
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/etc/allowed_biomart_archives +1 -0
- data/etc/biomart/missing_in_archive +2 -0
- data/lib/rbbt/sources/signor.rb +1 -4
- data/lib/rbbt/sources/uniprot.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0a35626b221e15867cb54ca9e8bbeb007762b5a99afed75d57d6b473385c287
|
|
4
|
+
data.tar.gz: 59d067abbfdcd686f39b3604282a280ca9bf4a0e8f3284698202dae8d9d50d55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c9c6a2dc5184319e94af671762227bba331b49784cf3e4ac0550b6c023c7b072920d75175b0547c2d8cb4034dbca53dda9514238773cf98f103cc6be978c4ec
|
|
7
|
+
data.tar.gz: df52691bf65b891a906217f5e2647577bc74940bbd3fa1752115f624a313472a70a43fb96b786e30a4612bc71badb7b3e68c539e0024fe0f0958ee5f33d910af
|
data/lib/rbbt/sources/signor.rb
CHANGED
|
@@ -102,7 +102,6 @@ module Signor
|
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
Signor.claim Signor.phospho_sites, :proc do
|
|
105
|
-
uni2name = UniProt.identifiers.Hsa.index :target => "Associated Gene Name", :fields => ["UniProt/SwissProt Accession"], :persist => true
|
|
106
105
|
|
|
107
106
|
dumper = TSV::Dumper.new :key_field => "Phosphosite", :fields => ["Effect"], :type => :flat, :organism => Signor.organism
|
|
108
107
|
dumper.init
|
|
@@ -119,10 +118,8 @@ module Signor
|
|
|
119
118
|
else
|
|
120
119
|
next
|
|
121
120
|
end
|
|
122
|
-
name = uni2name[target]
|
|
123
|
-
next if name.nil?
|
|
124
121
|
next if residue.nil? or residue.empty?
|
|
125
|
-
site = [
|
|
122
|
+
site = [target, residue] * ":"
|
|
126
123
|
positive = effect.include? "up-regulates"
|
|
127
124
|
|
|
128
125
|
activates = kinase && positive || (!kinase && !positive)
|
data/lib/rbbt/sources/uniprot.rb
CHANGED
|
@@ -66,7 +66,7 @@ module UniProt
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
UniProt.claim UniProt.annotated_variants, :proc do
|
|
69
|
-
url = "
|
|
69
|
+
url = "https://www.uniprot.org/docs/humsavar.txt"
|
|
70
70
|
tsv = TSV.open(CMD.cmd('tail -n +31 | head -n -4|grep "[[:alpha:]]"', :in => Open.open(url), :pipe => true),
|
|
71
71
|
:fix => Proc.new{|line| parts = line.split(/\s+/); (parts[1..5] + [(parts[6..-1] || []) * " "]) * "\t"},
|
|
72
72
|
:type => :double,
|
|
@@ -89,8 +89,8 @@ module UniProt
|
|
|
89
89
|
tsv.to_s
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
UNIPROT_TEXT="
|
|
93
|
-
UNIPROT_FASTA="
|
|
92
|
+
UNIPROT_TEXT="https://www.uniprot.org/uniprot/[PROTEIN].txt"
|
|
93
|
+
UNIPROT_FASTA="https://www.uniprot.org/uniprot/[PROTEIN].fasta"
|
|
94
94
|
|
|
95
95
|
def self.get_uniprot_entry(uniprotids)
|
|
96
96
|
_array = Array === uniprotids
|
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.1.
|
|
4
|
+
version: 3.1.41
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rbbt-util
|
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
190
190
|
- !ruby/object:Gem::Version
|
|
191
191
|
version: '0'
|
|
192
192
|
requirements: []
|
|
193
|
-
rubygems_version: 3.0.
|
|
193
|
+
rubygems_version: 3.0.6
|
|
194
194
|
signing_key:
|
|
195
195
|
specification_version: 4
|
|
196
196
|
summary: Data sources for the Ruby Bioinformatics Toolkit (rbbt)
|