rbbt-sources 3.0.14 → 3.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44c4642f4e5c392008336caa916d504c46c17216
4
- data.tar.gz: e678ca8dd3a41639b1c5ad62adec658b8cf870fa
3
+ metadata.gz: 62838e9efa3c3cbab442302949e74407a46dbe15
4
+ data.tar.gz: 0c43d26fec66e78ef09d7dec5ad0d06b4502a189
5
5
  SHA512:
6
- metadata.gz: f1a38cc05206dec04fb3db08c4685f0bd92e39305acfe92ede5d017ea33bc9eb98f3b542df4c8db3b78fb551b02c7d77c4f7ef7297e38ee868c38204ca8f4a85
7
- data.tar.gz: 540498257d57872b85a3bc391ad697fe72cefab2228511104f074e2322e8e0815f90dbeb6d734bc1694f31cf1884d25d8303c48bc097221dadca96970689eb5b
6
+ metadata.gz: 72afc70a5edfe98c9bbc13efc80c3d3cde8a73167d33036cef6afa8f3afc41bc930ca3d4402308ec6545bd4ccfc9d9feb0c100967872599be1dce865f54e4022
7
+ data.tar.gz: 529fec12bdfc2cdae42129659600eaa5c1bec7dc95b12d0342a633334ff25163ee2f0abf7077267db19871e3a25e28be37d8b962818dfd67410fe62310b0b6e0
@@ -6,6 +6,10 @@ module Organism
6
6
  self.pkgdir = "rbbt"
7
7
  self.subdir = "share/organisms"
8
8
 
9
+ def self.default_code(organism = "Hsa")
10
+ organism.split("/").first << "/feb2014"
11
+ end
12
+
9
13
  def self.organism_codes(organism = nil)
10
14
  if organism
11
15
  Rbbt.etc.allowed_biomart_archives.list.collect{|build| [organism, build] * "/" }
@@ -540,8 +540,8 @@ file 'transcript_sequence' => ["exons", "transcript_exons"] do |t|
540
540
  chr_transcript_ranges ||= {}
541
541
  transcript_strand = {}
542
542
 
543
- #TSV.open('transcript_exons', :unnamed => true).through do |transcript, values|
544
- TSV.traverse Path.setup(File.expand_path('transcript_exons')) do |transcript,values|
543
+ transcript_exons = Path.setup(File.expand_path('transcript_exons'))
544
+ TSV.traverse transcript_exons do |transcript,values|
545
545
  transcript = transcript.first if Array === transcript
546
546
  transcript_ranges = []
547
547
 
@@ -572,7 +572,8 @@ file 'transcript_sequence' => ["exons", "transcript_exons"] do |t|
572
572
  p.sub!(%r{.*/organisms/},'share/organisms/')
573
573
  chr_str = p.produce.read
574
574
  rescue Exception
575
- Log.debug("Chr #{ chr } failed (#{transcript_ranges.length} transcripts not covered)")
575
+ Log.debug("Chr #{ chr } failed (#{transcript_ranges.length} transcripts not covered): #{$!.message}")
576
+ Log.exception $!
576
577
  next
577
578
  end
578
579
 
@@ -1,7 +1,7 @@
1
1
  require File.join(File.dirname(__FILE__),'../lib/rake_helper')
2
2
 
3
- define_source_tasks "protein_chemicals" => "http://stitch.embl.de/download/protein_chemical.links.v3.1.tsv.gz",
4
- "chemicals" => "http://stitch.embl.de/download/chemicals.v3.1.tsv.gz"
3
+ define_source_tasks "protein_chemicals" => "http://stitch.embl.de/download/protein_chemical.links.v4.0.tsv.gz",
4
+ "chemicals" => "http://stitch.embl.de/download/chemicals.v4.0.tsv.gz"
5
5
 
6
6
  process_tsv :protein_chemical, 'protein_chemicals',
7
7
  :key => 1,
@@ -1,6 +1,6 @@
1
1
  require File.join(File.dirname(__FILE__),'../lib/rake_helper')
2
2
 
3
- define_source_tasks "protein_protein" => "http://string-db.org/newstring_download/protein.links.v9.05.txt.gz"
3
+ define_source_tasks "protein_protein" => "http://string-db.org/newstring_download/protein.links.v9.1.txt.gz"
4
4
 
5
5
  process_tsv :protein_protein, 'protein_protein', :grep => '9606\.ENSP', :fix => lambda{|l| l.gsub(/9606\./,'')}, :merge => true, :sep => "\s" do
6
6
  headers ['Ensembl Protein ID', 'Interactor Ensembl Protein ID', 'Score']
@@ -9,7 +9,7 @@ require 'test/unit'
9
9
  class TestBioMart < Test::Unit::TestCase
10
10
 
11
11
  def setup
12
- BioMart.set_archive "jun2011"
12
+ BioMart.set_archive Organism.default_code("Hsa")
13
13
  end
14
14
 
15
15
  def teardown
@@ -54,7 +54,7 @@ class TestOrganism < Test::Unit::TestCase
54
54
  def test_lift_over
55
55
  mutation_19 = "19:21131664:T"
56
56
  mutation_18 = "19:20923504:T"
57
- source_build = "Hsa/jun2011"
57
+ source_build = Organism.default_code("Hsa")
58
58
  target_build = "Hsa/may2009"
59
59
 
60
60
  assert_equal mutation_18, Organism.liftOver([mutation_19], source_build, target_build).first
@@ -63,7 +63,7 @@ class TestOrganism < Test::Unit::TestCase
63
63
 
64
64
  def _test_orhtolog
65
65
  require 'rbbt/entity/gene'
66
- assert_equal ["ENSG00000133703"], Gene.setup("Kras", "Associated Gene Name", "Mmu/jun2011").ensembl.ortholog("Hsa/jun2011")
66
+ assert_equal ["ENSG00000133703"], Gene.setup("Kras", "Associated Gene Name", "Mmu/jun2011").ensembl.ortholog(Organism.default_code("Hsa"))
67
67
  end
68
68
 
69
69
  #def _test_genes_at_chromosome
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.14
4
+ version: 3.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-15 00:00:00.000000000 Z
11
+ date: 2014-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util