lib/rbbt/sources/organism.rb in rbbt-sources-0.3.1 vs lib/rbbt/sources/organism.rb in rbbt-sources-0.4.0
- old
+ new
@@ -27,10 +27,11 @@
def self.normalize(org, list, target = nil, fields = nil, options = {})
return [] if list.nil? or list.empty?
options = Misc.add_defaults options, :persistence => true, :case_insensitive => true, :double => false
double = Misc.process_options options, :double
+
options.merge! :target => target unless target.nil?
options.merge! :fields => fields unless fields.nil?
index = identifiers(org).index options
@@ -67,10 +68,10 @@
organisms.select{|organism|
organism == name or Organism.name(organism) =~ /#{ name }/i
}.first
end
- ["Hsa", "Sce"].each do |organism|
+ ["Hsa", "Rno", "Sce"].each do |organism|
rakefile = Rbbt["share/install/Organism/#{ organism }/Rakefile"]
rakefile.lib_dir = Resource.caller_lib_dir __FILE__
rakefile.pkgdir = 'phgx'
Organism[organism].define_as_rake rakefile
module_eval "#{ organism } = with_key '#{organism}'"