rbbt-marq 2.1.0 → 2.1.1

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.
@@ -47,14 +47,14 @@ task 'data' do
47
47
 
48
48
  Progress.monitor("Processing #{platforms.keys.length} platforms") if platforms.keys.length > 1
49
49
  platforms.each{|platform, datasets|
50
-
51
50
  begin
52
51
  # Prepare the platform
53
52
  MARQ::Platform.process(platform)
54
53
  rescue
55
54
  puts "Error processing platform #{platform}"
56
55
  puts $!.message
57
- puts $!.backtrace.join("\n")
56
+ puts "\n" * 3
57
+ #puts $!.backtrace.join("\n")
58
58
  next
59
59
  end
60
60
 
@@ -63,7 +63,7 @@ task 'data' do
63
63
  $changes = false
64
64
  # Process all datasets
65
65
 
66
- Progress.monitor("Processing #{datasets.length} datasets") if datasets.length > 1
66
+ Progress.monitor("Processing #{datasets.length} datasets", :announcement => Proc.new{|d| "Dataset #{ d }" }) if datasets.length > 1
67
67
  datasets.each{|dataset|
68
68
  begin
69
69
  already_processed = MARQ::Dataset.exists?(dataset) || MARQ::Dataset.broken?(dataset)
@@ -74,10 +74,11 @@ task 'data' do
74
74
  rescue
75
75
  puts "Error processing dataset #{ dataset }"
76
76
  puts $!.message
77
- puts $!.backtrace.join("\n")
77
+ puts "\n" * 3
78
+ #puts $!.backtrace.join("\n")
78
79
  end
79
80
  }
80
-
81
+
81
82
  # Mark the platform for saving in DB
82
83
  platforms_to_save << platform if $changes || $update_db
83
84
  }
@@ -89,7 +90,8 @@ task 'data' do
89
90
  rescue
90
91
  puts "Error saving platform #{ platform }"
91
92
  puts $!.message
92
- puts $!.backtrace.join("\n")
93
+ puts "\n" * 3
94
+ #puts $!.backtrace.join("\n")
93
95
  end
94
96
  }
95
97
  end
@@ -97,7 +99,10 @@ end
97
99
  def annotations(name, cross_platform = false, &block)
98
100
  platforms = process_list
99
101
 
102
+ Progress.monitor("Processing #{platforms.keys.length} platforms for #{ name } annotations")
100
103
  platforms.each do |platform, datasets|
104
+ next if ! MARQ::Platform.exists? platform
105
+ Progress.monitor("Processing #{datasets.length} datasets", :announcement => Proc.new{|d| "Dataset #{ d }" }) if datasets.length > 1
101
106
  datasets.each do |dataset|
102
107
  begin
103
108
  next if File.exist?(File.join("annotations", name, dataset)) && ! $force
@@ -247,7 +252,7 @@ end
247
252
  task 'default' do
248
253
  Rake::Task['data'].invoke
249
254
  Rake::Task['annotate_Words'].invoke
250
- Rake::Task['annotate_UMLS'].invoke
251
- Rake::Task['annotate_Polysearch'].invoke
255
+ #Rake::Task['annotate_UMLS'].invoke
256
+ #Rake::Task['annotate_Polysearch'].invoke
252
257
  Rake::Task['annotate_GO'].invoke
253
258
  end
@@ -10,6 +10,8 @@ module GEO
10
10
 
11
11
  DATA_DIR = File.join(MARQ.datadir, 'GEO')
12
12
 
13
+ PLATFORM_BLACKLIST = %w(GPL4065)
14
+
13
15
  # Get information from Entrez
14
16
  module Remote
15
17
 
@@ -178,10 +180,11 @@ module GEO
178
180
  end
179
181
 
180
182
  def self.GPL(platform)
181
-
182
183
  if !File.exist?(File.join(DATA_DIR, 'platforms',"#{platform}.yaml")) &&
183
184
  !File.exist?(File.join(DATA_DIR, 'platforms',"#{platform}.skip"))
184
185
  begin
186
+ raise "Platform Blacklisted" if PLATFORM_BLACKLIST.include? platform
187
+
185
188
  if platform =~ /_/
186
189
  organism = GPL(platform.match(/(.*?)_/)[1])[:organism]
187
190
 
@@ -443,8 +446,8 @@ module GEO
443
446
  # Load GPL data. Translates IDS of the platform probes using AILUN and our
444
447
  # system (called biomart for clarity)
445
448
  def self.GPL(platform)
446
- path = GEO::platform_path(platform)
447
- return if path.nil? || File.exist?(path)
449
+ path = File.join(DATA_DIR, platform)
450
+ return if File.exist?(path)
448
451
 
449
452
  if platform =~ /_/
450
453
  FileUtils.mkdir(path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-marq
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-12 00:00:00 +01:00
12
+ date: 2010-02-15 00:00:00 +01:00
13
13
  default_executable: marq_config
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency