rbbt-sources 3.0.6 → 3.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/share/install/Organism/organism_helpers.rb +9 -3
- 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: 6c32757791c65a06ab638b94bfb22dfce781d61c
|
4
|
+
data.tar.gz: f52f4e86ca5f3bc5b31a75541b5a6558aad43b32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235c70c1854921ef088cb46352ba54c815b84e2e1850b70739d8d8d4d1c1cf075525ce77ab4aa11948dc523af8f5fca6b4fc15e3a7165a1b4c6ede7cbd42f4f8
|
7
|
+
data.tar.gz: d14a3f7bf70a4356eeaf0e500dda3c073145765195a47eb61aae3e136f67ce77feab36e0c8fb1b401b12ff5d81f8ae1342d4199932b78140b32f6e8c3829721b
|
@@ -316,7 +316,6 @@ def exon_offset_in_transcript(exon, transcript, exons, transcript_exons)
|
|
316
316
|
end
|
317
317
|
|
318
318
|
file 'exon_offsets' => %w(exons transcript_exons gene_transcripts transcripts transcript_exons) do |t|
|
319
|
-
exons = TSV.open('exons')
|
320
319
|
exon_transcripts = nil
|
321
320
|
exon_transcripts = TSV.open('transcript_exons', :double, :key_field => "Ensembl Exon ID", :fields => ["Ensembl Transcript ID"], :merge => true)
|
322
321
|
gene_transcripts = TSV.open('gene_transcripts', :flat)
|
@@ -326,14 +325,16 @@ file 'exon_offsets' => %w(exons transcript_exons gene_transcripts transcripts tr
|
|
326
325
|
string = "#: :namespace=#{$namespace}\n"
|
327
326
|
string += "#Ensembl Exon ID\tEnsembl Transcript ID\tOffset\n"
|
328
327
|
|
329
|
-
exons.unnamed = true
|
330
328
|
exon_transcripts.unnamed = true
|
331
329
|
gene_transcripts.unnamed = true
|
332
330
|
transcript_info.unnamed = true
|
333
331
|
transcript_exons.unnamed = true
|
334
332
|
|
333
|
+
exons = TSV.open('exons')
|
334
|
+
exons.unnamed = true
|
335
335
|
exons.monitor = true
|
336
336
|
exons.through do |exon, info|
|
337
|
+
exon = exon.first if Array === exon
|
337
338
|
gene, start, finish, strand, chr = info
|
338
339
|
|
339
340
|
transcripts = coding_transcripts_for_exon(exon, exon_transcripts, transcript_info)
|
@@ -512,11 +513,15 @@ rule /[a-z]{3}[0-9]{4}\/.*/i do |t|
|
|
512
513
|
Misc.in_dir(archive) do
|
513
514
|
BioMart.set_archive archive
|
514
515
|
begin
|
516
|
+
old_namespace = $namespace
|
517
|
+
$namespace = $namespace + "/" << archive
|
515
518
|
Rake::Task[task].invoke
|
516
519
|
rescue
|
517
520
|
Log.error "Error producing archived (#{archive}) version of #{task}: #{t.name}"
|
518
521
|
Log.exception $!
|
519
522
|
raise $!
|
523
|
+
ensure
|
524
|
+
$namespace = old_namespace
|
520
525
|
end
|
521
526
|
BioMart.unset_archive
|
522
527
|
end
|
@@ -535,8 +540,9 @@ file 'transcript_sequence' => ["exons", "transcript_exons"] do |t|
|
|
535
540
|
chr_transcript_ranges ||= {}
|
536
541
|
transcript_strand = {}
|
537
542
|
|
538
|
-
TSV.traverse Path.setup(File.expand_path('transcript_exons')) do |transcript,values|
|
539
543
|
#TSV.open('transcript_exons', :unnamed => true).through do |transcript, values|
|
544
|
+
TSV.traverse Path.setup(File.expand_path('transcript_exons')) do |transcript,values|
|
545
|
+
transcript = transcript.first if Array === transcript
|
540
546
|
transcript_ranges = []
|
541
547
|
|
542
548
|
exons = Misc.zip_fields(values).sort_by{|exon,rank| rank.to_i}.collect{|exon,rank| exon}
|