calour.sorting.
sort_centroid
(exp: calour.experiment.Experiment, transform=<function log_n>, inplace=False, **kwargs)[source]¶Sort the features based on the center of mass
Assuming that samples are already sorted by some continuous field (eg pH), this function will sort features based on their center of mass along this field. Specifically, it calculates the center of mass for each feature and sort features by their center of mass.
Note
This function is also available as a class method Experiment.sort_centroid()
Parameters: |
|
---|---|
Keyword Arguments: | |
|
|
Returns: | features sorted by center of mass |
Return type: |
See also
transform()