def group_significance_row_generator(bt, cat_sam_indices):
 data = array([i for i in bt.iter_data(axis='observation')])
 indices = cat_sam_indices.values()
 return izip(*[data.take(i, axis=1) for i in indices])

def group_significance_row_generator ( bt , cat_sam_indices ) : data = array ( [ i for i in bt . iter_data ( axis = 'observation' ) ] ) indices = cat_sam_indices . values ( ) return izip ( * [ data . take ( i , axis = 1 ) for i in indices ] )
produce generator that feeds lists of arrays to group significance tests .