lib/rbbt/sources/organism.rb in rbbt-sources-2.1.5 vs lib/rbbt/sources/organism.rb in rbbt-sources-2.1.7
- old
+ new
@@ -142,9 +142,15 @@
organisms.select{|organism|
organism == name or Organism.scientific_name(organism) =~ /#{ name }/i
}.first
end
+ def self.organism_code(name)
+ organisms.select{|organism|
+ organism == name or Organism.scientific_name(organism) =~ /#{ name }/i
+ }.first
+ end
+
def self.known_ids(name)
TSV::Parser.new(Organism.identifiers(name).open).all_fields
end
def self.entrez_taxid_organism(taxid)