This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How do I calculate Jaccard distance between pair-wise OTUs species

Dear All, I have OTU table obtained from qiime2 analysis. I would like to get the jaccard distance between pair-wise species (not between the samples). in the output, I need disatnce matrix between the OTUs

      OTU1  OTU2  OTU3  OTU4  OTU5 
OTU1   1   0.023  0.045  0.12   0.034 
OTU2   :    :       :      :      :
OTU3   :    :       :      :      :     
OTU4   :    :       :      :      :           
OTU5   :    :       :      :      :
  
r metagenome jaccard

1 answer

I am sorry for the simple question I got it using following.

library(philentropy)

compute the Jaccard Distance with default parameters 
distance(x,  method = "jaccard")
  

Euclidean and Jaccard distances are entirely different.

I forgot to change the method in the above post

Log in to answer this question.