rbbt-sources 2.1.3 → 2.1.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 +8 -8
- data/share/install/Organism/organism_helpers.rb +12 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWJhOWJjZDQyNTQ0MzQ4NDQ0NDc4MWViNzIzNWQ1YjM4MDQ0YzI5OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzQyM2Y1MzEzMzEyNTI3OGFkNzIwOGE4ODU3OTQ1ZjdhMGY2M2ZmOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWM3ZGQ1NDI3Mzg0NDIwZGE1OWY1Nzg3MWM0NjI4NDA2ODI1MjAwODU2OGFh
|
10
|
+
MDlmODQ3OGQwMzZlZjZiNzY2MTJhM2ZlMjcwMTA1ZmE0NzlkZGU1MDdhN2Ix
|
11
|
+
NjkwN2NkMmU1M2NkMWVkYThhYWI3NGUwNGQ4NWE5MzU4NTI4NzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjFkMTRjZWIxMmYxYWVmZDUyY2UzMTFmYjJiY2Q5MDQ1M2IzMjE0ZWM3ZjVi
|
14
|
+
Njc0ZDE2ZWE0ZTUxNjY2NTQyNDdhZjY5NjE0ZjljNDRlNzIyYmM3ZGVkMWEy
|
15
|
+
ODE2NzA4Y2VmYjc3Zjk0OTE3ZTEzYzUyN2VhYzVmMTA5ODIzNzQ=
|
@@ -145,7 +145,7 @@ file 'lexicon' => 'identifiers' do |t|
|
|
145
145
|
entrez_description.fields = ["Entrez Gene Description"]
|
146
146
|
|
147
147
|
tsv.attach entrez_description
|
148
|
-
|
148
|
+
Misc.sensiblewrite(t.name, tsv.to_s)
|
149
149
|
end
|
150
150
|
|
151
151
|
|
@@ -217,13 +217,13 @@ end
|
|
217
217
|
file 'transcript_exons' do |t|
|
218
218
|
exons = BioMart.tsv($biomart_db, $biomart_ensembl_transcript, $biomart_transcript_exons, [], nil, :keep_empty => true, :namespace => $namespace)
|
219
219
|
|
220
|
-
|
220
|
+
Misc.sensiblewrite(t.name, exons.to_s)
|
221
221
|
end
|
222
222
|
|
223
223
|
file 'exon_phase' do |t|
|
224
224
|
exons = BioMart.tsv($biomart_db, $biomart_ensembl_exon, $biomart_exon_phase, [], nil, :keep_empty => true, :namespace => $namespace)
|
225
225
|
|
226
|
-
|
226
|
+
Misc.sensiblewrite(t.name, exons.to_s)
|
227
227
|
end
|
228
228
|
|
229
229
|
|
@@ -253,7 +253,7 @@ file 'transcript_phase' => ['exon_phase', 'transcript_exons'] do |t|
|
|
253
253
|
}
|
254
254
|
end
|
255
255
|
|
256
|
-
|
256
|
+
Misc.sensiblewrite(t.name, tsv.to_s)
|
257
257
|
end
|
258
258
|
|
259
259
|
|
@@ -280,7 +280,7 @@ file 'gene_pmids' do |t|
|
|
280
280
|
tsv.each do |gene, pmids|
|
281
281
|
text << "\n" << gene << "\t" << pmids * "|"
|
282
282
|
end
|
283
|
-
|
283
|
+
Misc.sensiblewrite(t.name, text)
|
284
284
|
end
|
285
285
|
|
286
286
|
def coding_transcripts_for_exon(exon, exon_transcripts, transcript_info)
|
@@ -347,7 +347,7 @@ file 'exon_offsets' => %w(exons transcript_exons gene_transcripts transcripts tr
|
|
347
347
|
string << exon << "\t" << transcript_offsets.keys * "|" << "\t" << transcript_offsets.values * "|" << "\n"
|
348
348
|
end
|
349
349
|
|
350
|
-
|
350
|
+
Misc.sensiblewrite(t.name, string)
|
351
351
|
end
|
352
352
|
|
353
353
|
file 'gene_go' do |t|
|
@@ -368,7 +368,7 @@ file 'gene_go' do |t|
|
|
368
368
|
["molecular_function"] * values["GO MF ID"].reject{|go| go.empty?}.length
|
369
369
|
end
|
370
370
|
|
371
|
-
|
371
|
+
Misc.sensiblewrite(t.name, goterms.slice(["GO ID", "GO Namespace"]).to_s)
|
372
372
|
else
|
373
373
|
goterms = BioMart.tsv($biomart_db, $biomart_ensembl_gene, $biomart_go, [], nil, :type => :double, :namespace => $namespace)
|
374
374
|
|
@@ -487,7 +487,7 @@ rule /^chromosome_.*/ do |t|
|
|
487
487
|
Misc.lock t.name + '.rake' do
|
488
488
|
TmpFile.with_file do |tmpfile|
|
489
489
|
ftp.getbinaryfile(file, tmpfile)
|
490
|
-
|
490
|
+
Misc.sensiblewrite(t.name, Open.read(tmpfile, :gzip => true).sub(/^>.*\n/,'').gsub(/\s/,''))
|
491
491
|
ftp.close
|
492
492
|
end
|
493
493
|
end
|
@@ -579,9 +579,7 @@ file 'transcript_sequence' => ["exons", "transcript_exons"] do |t|
|
|
579
579
|
end
|
580
580
|
end
|
581
581
|
|
582
|
-
Misc.
|
583
|
-
Open.write(t.name, transcript_sequence.to_s)
|
584
|
-
end
|
582
|
+
Misc.sensiblewrite(t.name, transcript_sequence.to_s)
|
585
583
|
end
|
586
584
|
|
587
585
|
file 'transcript_5utr' => ["exons", "transcript_exons", "transcripts"] do |t|
|
@@ -643,8 +641,8 @@ file 'transcript_5utr' => ["exons", "transcript_exons", "transcripts"] do |t|
|
|
643
641
|
end
|
644
642
|
|
645
643
|
Misc.lock t.name + '.rake' do
|
646
|
-
|
647
|
-
|
644
|
+
Misc.sensiblewrite(t.name, transcript_utr5.to_s)
|
645
|
+
Misc.sensiblewrite(t.name.sub('transcript_5utr', 'transcript_3utr'), transcript_utr3.to_s)
|
648
646
|
end
|
649
647
|
end
|
650
648
|
|
@@ -674,7 +672,5 @@ file 'protein_sequence' => ["transcripts", "transcript_5utr", "transcript_3utr",
|
|
674
672
|
protein_sequence[protein]=psequence
|
675
673
|
end
|
676
674
|
|
677
|
-
Misc.
|
678
|
-
Open.write(t.name, protein_sequence.to_s)
|
679
|
-
end
|
675
|
+
Misc.sensiblewrite(t.name, protein_sequence.to_s)
|
680
676
|
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: 2.1.
|
4
|
+
version: 2.1.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-11-
|
11
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|