Method: Bio::Nexus::NexusMatrix#get_row_string

Defined in:
lib/bio/db/nexus.rb

#get_row_string(row, spacer = "") ⇒ Object

Returns the values of columns 1 to maximal column length in row ‘row’ concatenated as string. Individual values can be separated by ‘spacer’.


Arguments:

  • (required) row: Integer

  • (optional) spacer: String

Returns

String



1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
# File 'lib/bio/db/nexus.rb', line 1680

def get_row_string( row, spacer = "" )
  row_str = String.new
  if is_empty?
    return row_str
  end
  for col in 1 .. get_max_col
    row_str << get_value( row, col ) << spacer
  end
  row_str
end