lib/rbbt/tsv/change_id.rb in rbbt-util-5.19.18 vs lib/rbbt/tsv/change_id.rb in rbbt-util-5.19.19
- old
+ new
@@ -6,9 +6,11 @@
def self.change_key(tsv, format, options = {}, &block)
options = Misc.add_defaults options, :persist => false, :identifiers => tsv.identifiers
identifiers, persist_input = Misc.process_options options, :identifiers, :persist_input
+ identifiers = Organism.identifiers(tsv.namespace) if identifiers.nil? and tsv.namespace
+
if not tsv.fields.include? format
new = {}
tsv.each do |k,v|
new[k] = v.dup
end