def filter_by_total_count(feature_table_df, sum_axis=1):
	"""
	Remove samples that have total counts <= 5 (R complains if total count <= 5)

	Inputs
		- feature_table_df: feature table in pandas DataFrame
		- sum_axis: axis to sum over.
			Do axis=0 if sample as columns, taxa/ASV as rows (index)
			Do axis=1 if sample as rows (index), taxa/ASV as columns

	Default option assumes sample as row (index), taxa/ASV as columns
	"""
	row_sum = feature_table_df.sum(sum_axis)

	to_keep = row_sum > 5

	filtered_df = feature_table_df.loc[to_keep, ]

	return filtered_df