Open lingvv opened 12 months ago
The simplest way would probably be to add another column to your data like so: sample_data(phy)$type_dose <- sub("_Sample.*$","",sample_names(phy))
And then you can merge on the new column (type_dose): merge_samples(phy, "type_dose")
For my case, I have a few duplicates for the same samples
For example:
My phyloseq object:
My metadata:
Referring to the data above, may I kindly ask what should I do, to merge Illeum_Dose1_Sample1 Illeum_Dose1_Sample2 Illeum_Dose1_Sample3 into one for analysis purpose (the same for others)
I tried the tutorial from https://joey711.github.io/phyloseq/merge.html#merge_phyloseq But it doesn't work for me
It would be great if I could get some help for this Appreciate your time and help!