docs: def filter_minreads_samples_from_table(table, minreads=1, inplace=True):
      """Filter samples from biom table that have less than
      minreads reads total
  
      Paraneters
      ----------
      table : biom.Table
          the biom table to filter
      minreads : int (optional)
          the minimal number of reads in a sample in order to keep it
      inplace : bool (optional)
          if True, filter the biom table in place, if false create a new copy
  
      Returns
      -------
      table : biom.Table
          the filtered biom table
      """
      logger = logging.getLogger(__name__)
      logger.debug('filter_minreads_started. minreads=%d' % minreads)
      samp_sum = table.sum(axis='sample')
      samp_ids = table.ids(axis='sample')
      bad_samples = samp_ids[samp_sum < minreads]
      if len(bad_samples) > 0:
          logger.warn('removed %d samples with reads per sample<%d'
                      % (len(bad_samples), minreads))
          table = table.filter(bad_samples, axis='sample',
                               inplace=inplace, invert=True)
      else:
          logger.debug('all samples contain > %d reads' % minreads)
      return table