@staticmethod
def write_shared_file(seq_exp, filepath):
    """Writes feature table out in shared file format."""
    shared = seq_exp.features
    shared = shared.transpose()
    shared = shared.reset_index()
    shared['label'] = seq_exp.label
    shared['numOtus'] = len(seq_exp.features)
    new_columns = ['label', 'Group', 'numOtus', *seq_exp.features.index]
    shared = shared[new_columns]
    shared.to_csv(filepath, sep='\t', header=True, index=False)
    return filepath
