microbiome / mia

Microbiome analysis
https://microbiome.github.io/mia/
Artistic License 2.0
46 stars 27 forks source link

Rename calculateDistance #77

Closed antagomir closed 2 years ago

antagomir commented 3 years ago

The calculateDistance is using the various dissimilarity indices that are available through vegan. Some of those are not distances, for instance Bray-Curtis is not a distance (it does not satisfy triangle inequality). This is an important difference.

I propose to rename this function as calculateDissimilarity.

In addition, it could be mentioned more clearly in the manpage that these same indices are often called beta diversity in (microbial and other) ecology.

FelixErnst commented 3 years ago

This function will be removed as well, since the functionality was just there to support runMDS2. There is need for it anymore.

antagomir commented 3 years ago

Add a .Deprecate note on this function, if this is going to be removed?

TuomasBorman commented 3 years ago

So function that will be removed is:

These functions utilize calculateDistance:

I am not sure what was meant to do with these 3 functions

antagomir commented 3 years ago

Ok, so it was used for multiple functions. We can either

1) Keep this available but then I would change the name to maintain conceptual clarity

2) Hide the function (unexport), it could still be utilized by those other functions; but then Deprecation message would be necessary since some users may still have workflows with this.

FelixErnst commented 3 years ago

I think calculateDistance could be wrapped internally and the deprecation of the exported function done for current devel. It would gone by Bioc 3.15.

The usage in

antagomir commented 3 years ago

Ok to me.

FelixErnst commented 2 years ago

Can this be closed?

TuomasBorman commented 2 years ago

I think all is done for now, removing the function is the next step

So yes, this can be closed