When visualizing in emperor - it looks like the output is not column centered (see below)
The fix to this would be to column center the feature vectors in the Ordination results -- it probably would look something like this
samples = pd.DataFrame( ... )
samples = samples - samples.mean(axis=0)
features = pd.Dataframe( ... )
features = features - features.mean(axis=0)
res = OrdinationResults(samples=samples, features=features, ...)
The results are already row centered (bc of the clr transform), but column centering still needs to happen for proper visualization in emperor, especially for the biplot arrows.
The previous result is not wrong per say, but having all of the inputs centered would make these ordinations more consistent with the traditional PCA literature.
When visualizing in emperor - it looks like the output is not column centered (see below)
The fix to this would be to column center the feature vectors in the Ordination results -- it probably would look something like this
The results are already row centered (bc of the clr transform), but column centering still needs to happen for proper visualization in emperor, especially for the biplot arrows.
The previous result is not wrong per say, but having all of the inputs centered would make these ordinations more consistent with the traditional PCA literature.
Can push in a PR if necessary.