def get_qiime_hex_string_color(index):
 assert (index >= 0), 'There are no negative indices for the QIIME colors'
 n_colors = len(data_color_order)
 if (index >= n_colors):
  index = int((index - floor(((index / n_colors) * n_colors))))
 return data_colors[data_color_order[index]].toHex()

def get_qiime_hex_string_color ( index ) : assert ( index >= 0 ) , 'There are no negative indices for the QIIME colors' n_colors = len ( data_color_order ) if ( index >= n_colors ) : index = int ( ( index - floor ( ( ( index / n_colors ) * n_colors ) ) ) ) return data_colors [ data_color_order [ index ] ] . toHex ( )
retrieve an hex color from the list of qiime colors input: index: index of the color to retrieve .