Method: Bio::Nexus::NexusMatrix#get_row_strings_by_name
- Defined in:
- lib/bio/db/nexus.rb
#get_row_strings_by_name(name, spacer = "") ⇒ Object
Returns all rows as Array of Strings separated by ‘spacer’ for which column 0 is ‘name’.
Arguments:
-
(required) name: String
-
(optional) spacer: String
- Returns
-
Array
1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 |
# File 'lib/bio/db/nexus.rb', line 1698 def get_row_strings_by_name( name, spacer = "" ) row_strs = Array.new if is_empty? return row_strs end for row in 0 .. get_max_row if ( get_value( row, 0 ) == name ) row_strs.push( get_row_string( row, spacer ) ) end end row_strs end |