emperor.Emperor._to_legacy_map

Emperor._to_legacy_map(mf, custom_axes=None, repeats=0)

Helper method to convert Pandas dataframe to legacy QIIME structure

Parameters:

mf : pd.DataFrame

DataFrame with the metadata, this can be feature or sample metadata. If the index name is None, then it will be set as 'SampleID', otherwise it will be left untouched.

custom_axes : list of str, optional

Custom axes to embed in the ordination.

repeats : int

Number of times that the sample ids should be repeated. This is used exclusively for procrustes plots. If the procrustes_names property is available a column will be added with each procrustes name.

Returns:

list of str

Name of the metadata columns and the index name.

list of list of str

Data in mf.