MicrobiotaProcess icon indicating copy to clipboard operation
MicrobiotaProcess copied to clipboard

Write vennlist table

Open pavlo888 opened this issue 5 years ago • 1 comments

Hi,

I have run the following function:

library(MicrobiotaProcess) vennlist <- get_vennlist(phy_merge, factorNames="Matrix")

And it creates a list of shared OTUs between two matrices. That's perfect to build the Venn Diagram.

However, I would like to know the identity of the shared OTUs. Is there a way to do retrieve that kind of data?

Thanks!

Pablo

pavlo888 avatar Oct 24 '20 21:10 pavlo888

Since vennlist is a list object, you can use the following code to retrieve the shared OTUs.

shareotus <- Reduce(intersect, yourvennlist)

xiangpin avatar Oct 25 '20 02:10 xiangpin