Experiment.
sort_centroid
(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.
Parameters: |
|
---|---|
Keyword Arguments: | |
|
|
Returns: | features sorted by center of mass |
Return type: |
See also