How do I calculate Jaccard distance between pair-wise OTUs species
1
0
Entering edit mode
3.8 years ago
mail2steff ▴ 70

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.4k views
ADD COMMENT
0
Entering edit mode

I do analyze the bacterial community with mothur. https://mothur.org/wiki/miseq_sop/ And you could calculate the dissimilarity indices or the distance between two communities. Using different methods that are implemented in mothur pipeline

Example Jaccard: https://mothur.org/wiki/jclass/

ADD REPLY
0
Entering edit mode
3.8 years ago
mail2steff ▴ 70

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")
  
ADD COMMENT
0
Entering edit mode

Euclidean and Jaccard distances are entirely different.

ADD REPLY
0
Entering edit mode

I forgot to change the method in the above post

ADD REPLY

Login before adding your answer.

Traffic: 2971 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6