rbbt-sources 3.0.37 → 3.1.0
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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b163305cdfa2b814e25b239b7a7d8780a473beba
|
|
4
|
+
data.tar.gz: 914b6e2b8c118d2d2171a3d648a376ed94521c6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0aa5a1669673cb9a716edab3ee4cecd853482bdf8e39f3663b0041a725b3cbacd74678db5358613734e180aa65ff3a46294d17a124343efc9d92986ec75ec8bb
|
|
7
|
+
data.tar.gz: 944341b1833b892e059dcc272747981ea5557b295cd9bcb06eb3886f4ad9652a15489532fab32d487b59047e88b18f386200b0190184b1cfe0b63a02c3387872
|
|
@@ -48,6 +48,10 @@ $biomart_probe_identifiers = [
|
|
|
48
48
|
[ 'Codelink ID', 'codelink' ],
|
|
49
49
|
[ 'Illumina HumanWG 6 v2', 'illumina_humanwg_6_v2' ],
|
|
50
50
|
[ 'Illumina HumanWG 6 v3', 'illumina_humanwg_6_v3' ],
|
|
51
|
+
[ 'RefSeq mRNA' , "refseq_mrna"] ,
|
|
52
|
+
[ 'RefSeq ncRNA' , "refseq_ncrna"] ,
|
|
53
|
+
[ 'RefSeq mRNA predicted' , "refseq_mrna_predicted"] ,
|
|
54
|
+
[ 'RefSeq ncRNA predicted' , "refseq_ncrna_predicted"] ,
|
|
51
55
|
]
|
|
52
56
|
|
|
53
57
|
$biomart_identifiers = [
|
|
@@ -56,13 +60,16 @@ $biomart_identifiers = [
|
|
|
56
60
|
[ 'Associated Gene Name', "external_gene_name" ],
|
|
57
61
|
[ 'CCDS ID', "ccds" ],
|
|
58
62
|
[ 'Protein ID', "protein_id" ],
|
|
63
|
+
[ 'RefSeq mRNA' , "refseq_mrna"] ,
|
|
64
|
+
[ 'RefSeq ncRNA' , "refseq_ncrna"] ,
|
|
65
|
+
[ 'RefSeq mRNA predicted' , "refseq_mrna_predicted"] ,
|
|
66
|
+
[ 'RefSeq ncRNA predicted' , "refseq_ncrna_predicted"] ,
|
|
59
67
|
[ 'RefSeq Protein ID', "refseq_peptide" ],
|
|
60
68
|
[ 'Unigene ID', "unigene" ],
|
|
61
69
|
[ 'UniProt/SwissProt ID', "uniprot_swissprot" ],
|
|
62
70
|
[ 'UniProt/SwissProt Accession', "uniprot_swissprot_accession" ],
|
|
63
71
|
[ 'HGNC ID', "hgnc_id", 'HGNC'],
|
|
64
72
|
#[ 'EMBL (Genbank) ID' , "embl"] ,
|
|
65
|
-
#[ 'RefSeq mRNA' , "refseq_mrna"] ,
|
|
66
73
|
|
|
67
74
|
# Probes
|
|
68
75
|
[ 'AFFY HC G110', 'affy_hc_g110' ],
|
|
@@ -127,12 +127,27 @@ file 'identifiers' do |t|
|
|
|
127
127
|
end
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
+
refseq_fields = identifiers.fields.select{|f| f =~ /RefSeq/}
|
|
131
|
+
|
|
132
|
+
if refseq_fields.any?
|
|
133
|
+
refseq_pos = refseq_fields.collect{|refseq_field| identifiers.identify_field refseq_field }
|
|
134
|
+
identifiers = identifiers.add_field "RefSeq ID" do |key,values|
|
|
135
|
+
refseq_ids = values.values_at *refseq_pos
|
|
136
|
+
refseq_ids.flatten.compact.reject{|v| v.empty?}
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
ordered_fields = identifiers.fields - ["RefSeq ID"]
|
|
140
|
+
pos = ordered_fields.index ordered_fields.select{|f| f =~ /RefSeq/}.first
|
|
141
|
+
ordered_fields[pos..pos-1] = "RefSeq ID"
|
|
142
|
+
|
|
143
|
+
identifiers = identifiers.reorder(:key, ordered_fields)
|
|
144
|
+
end
|
|
145
|
+
|
|
130
146
|
entrez_synonyms = Rbbt.share.databases.entrez.gene_info.find.tsv :grep => $taxs.collect{|tax| "^#{tax}"}, :key_field => 1, :fields => [4]
|
|
131
147
|
entrez_synonyms.key_field = "Entrez Gene ID"
|
|
132
148
|
entrez_synonyms.fields = ["Entrez Gene Name Synonyms"]
|
|
133
149
|
|
|
134
150
|
identifiers.attach entrez_synonyms
|
|
135
|
-
|
|
136
151
|
|
|
137
152
|
identifiers.with_unnamed do
|
|
138
153
|
identifiers.each do |key, values|
|
|
@@ -143,6 +158,7 @@ file 'identifiers' do |t|
|
|
|
143
158
|
end
|
|
144
159
|
end
|
|
145
160
|
|
|
161
|
+
|
|
146
162
|
Misc.sensiblewrite(t.name, identifiers.to_s)
|
|
147
163
|
end
|
|
148
164
|
|
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.1.0
|
|
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-
|
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rbbt-util
|