I wish to generate a venn diagram list using get_vennlist() in order to create a venn diagram.. the problem is, it works perfectly for any other variables within the sample data of this phyloseq data, and also my other sets of phyloseq data (different samples). But for this particular set.. it is unable to generate the list.
For instance here: my data is from Japan.. I would like to generate the venn diagram to differentiate the no of taxa within these condition;
1.study condition (Cancer and control), error here
2.stages (different stages of cancer and control). works fine
listvd_JPN_stages <- get_vennlist(ps_comb_Japan, factorNames = "stages")
lengths(listvd_JPN_stages)
ES LS Non-CRC
546 495 604
str(listvd_JPN_stages)
List of 3
$ ES : chr [1:546] "Bacteroides_plebeius" "Bacteroides_dorei" "Faecalibacterium_prausnitzii" "Eubacterium_eligens" ...
$ LS : chr [1:495] "Bacteroides_plebeius" "Bacteroides_dorei" "Faecalibacterium_prausnitzii" "Eubacterium_eligens" ...
$ Non-CRC: chr [1:604] "Bacteroides_plebeius" "Bacteroides_dorei" "Faecalibacterium_prausnitzii" "Eubacterium_eligens" ...
I want to get results like no.2 (stages) for no.1. But repeatedly failed. I tried reconstructing the dataset again but then again failed. can someone help me or maybe point out anything that I missed? thank you.
Hello,
I have a phyloseq dataset as below:
phyloseq-class experiment-level object otu_table() OTU Table: [ 685 taxa and 434 samples ] sample_data() Sample Data: [ 434 samples by 23 sample variables ] tax_table() Taxonomy Table: [ 685 taxa by 7 taxonomic ranks ]
the phyloseq structure is as below: Formal class 'phyloseq' [package "phyloseq"] with 5 slots ..@ otu_table:Formal class 'otu_table' [package "phyloseq"] with 2 slots .. .. ..@ .Data : num [1:685, 1:434] 17.282 1.873 1.222 0 0.356 ... .. .. .. ..- attr(, "dimnames")=List of 2 .. .. .. .. ..$ : chr [1:685] "Bacteroides_plebeius" "Bacteroides_dorei" "Faecalibacterium_prausnitzii" "Eubacterium_eligens" ... .. .. .. .. ..$ : chr [1:434] "SAMD00115015" "SAMD00115025" "SAMD00115027" "SAMD00114971" ... .. .. ..@ taxa_are_rows: logi TRUE .. .. ..$ dim : int [1:2] 685 434 .. .. ..$ dimnames:List of 2 .. .. .. ..$ : chr [1:685] "Bacteroides_plebeius" "Bacteroides_dorei" "Faecalibacterium_prausnitzii" "Eubacterium_eligens" ... .. .. .. ..$ : chr [1:434] "SAMD00115015" "SAMD00115025" "SAMD00115027" "SAMD00114971" ... ..@ tax_table:Formal class 'taxonomyTable' [package "phyloseq"] with 1 slot .. .. ..@ .Data: chr [1:685, 1:7] "Bacteria" "Bacteria" "Bacteria" "Bacteria" ... .. .. .. ..- attr(, "dimnames")=List of 2 .. .. .. .. ..$ : chr [1:685] "Bacteroides_plebeius" "Bacteroides_dorei" "Faecalibacterium_prausnitzii" "Eubacterium_eligens" ... .. .. .. .. ..$ : chr [1:7] "Kingdom" "Phylum" "Class" "Order" ... .. .. ..$ dim : int [1:2] 685 7 .. .. ..$ dimnames:List of 2 .. .. .. ..$ : chr [1:685] "Bacteroides_plebeius" "Bacteroides_dorei" "Faecalibacterium_prausnitzii" "Eubacterium_eligens" ... .. .. .. ..$ : chr [1:7] "Kingdom" "Phylum" "Class" "Order" ... ..@ sam_data :'data.frame': 434 obs. of 23 variables: Formal class 'sample_data' [package "phyloseq"] with 4 slots .. .. ..@ .Data :List of 23 .. .. .. ..$ : chr [1:434] "YachidaS_2019" "YachidaS_2019" "YachidaS_2019" "YachidaS_2019" ... .. .. .. ..$ : chr [1:434] "sub_10023" "sub_10025" "sub_10029" "sub_10031" ... .. .. .. ..$ : chr [1:434] "stool" "stool" "stool" "stool" ... .. .. .. ..$ : chr [1:434] "control" "control" "control" "control" ... .. .. .. ..$ : chr [1:434] "healthy" "healthy" "healthy" "healthy" ... .. .. .. ..$ : int [1:434] 65 40 67 77 64 66 66 66 65 77 ... .. .. .. ..$ : chr [1:434] "adult" "adult" "senior" "senior" ... .. .. .. ..$ : chr [1:434] "male" "male" "female" "male" ... .. .. .. ..$ : chr [1:434] "JPN" "JPN" "JPN" "JPN" ... .. .. .. ..$ : chr [1:434] "no" "no" "no" "no" ... .. .. .. ..$ : chr [1:434] "IlluminaHiSeq" "IlluminaHiSeq" "IlluminaHiSeq" "IlluminaHiSeq" ... .. .. .. ..$ : chr [1:434] "31171880" "31171880" "31171880" "31171880" ... .. .. .. ..$ : int [1:434] 53354508 44355082 51664530 41373138 58630590 56880756 53721284 14386194 59909810 53530490 ... .. .. .. ..$ : num [1:434] 7.53e+09 6.50e+09 7.53e+09 5.90e+09 8.21e+09 ... .. .. .. ..$ : int [1:434] 50 50 50 50 50 50 50 50 50 50 ... .. .. .. ..$ : int [1:434] 150 150 150 150 150 150 150 150 150 150 ... .. .. .. ..$ : chr [1:434] "Paolo_Manghi" "Paolo_Manghi" "Paolo_Manghi" "Paolo_Manghi" ... .. .. .. ..$ : num [1:434] 26.6 25 20.2 24.5 21.2 ... .. .. .. ..$ : chr [1:434] NA NA NA NA ... .. .. .. ..$ : chr [1:434] "control" "control" "control" "control" ... .. .. .. ..$ : num [1:434] 660 400 0 300 0 0 8 0 930 0 ... .. .. .. ..$ : num [1:434] 0 993 0 813 0 ... .. .. .. ..$ : chr [1:434] "Non-CRC" "Non-CRC" "Non-CRC" "Non-CRC" ... .. .. ..@ names : chr [1:23] "study_name" "subject_id" "body_site" "study_condition" ... .. .. ..@ row.names: chr [1:434] "SAMD00115015" "SAMD00115025" "SAMD00115027" "SAMD00114971" ... .. .. ..@ .S3Class : chr "data.frame" ..@ phy_tree : NULL ..@ refseq : NULL
I wish to generate a venn diagram list using get_vennlist() in order to create a venn diagram.. the problem is, it works perfectly for any other variables within the sample data of this phyloseq data, and also my other sets of phyloseq data (different samples). But for this particular set.. it is unable to generate the list.
For instance here: my data is from Japan.. I would like to generate the venn diagram to differentiate the no of taxa within these condition; 1.study condition (Cancer and control), error here 2.stages (different stages of cancer and control). works fine
Below are the command and results:
I want to get results like no.2 (stages) for no.1. But repeatedly failed. I tried reconstructing the dataset again but then again failed. can someone help me or maybe point out anything that I missed? thank you.