def filter_table_to_core(table, sample_ids=None, fraction_for_core=1.0):
 filter_f = get_filter_to_core_f(table, sample_ids, fraction_for_core)
 return table.filter(filter_f, axis='observation', inplace=False)

def filter_table_to_core ( table , sample_ids = None , fraction_for_core = 1.0 ) : filter_f = get_filter_to_core_f ( table , sample_ids , fraction_for_core ) return table . filter ( filter_f , axis = 'observation' , inplace = False )
filter a table to its core observations table: the biom-format table object to filter sample_ids: list of sample ids of interest for the core computation fraction_for_core: the fraction of the sample_ids that an observation must have a non-zero count for to be considered a core observation .