Hello,
Many thanks for producing this awesome package!. I would like to ask how can I show which OTUs come from which sample in a single heat_tree. For instance, using different colours.
My OTUs have the following format: OTU_ID /tab/ number indicating how many reads are clustered in this OTU /tab/ lineage /tab/ the sampleID
>PG5V6:00748:00973.1.289 17 Bacteria;Firmicutes;Bacilli;Bacillales;Bacillaceae;Pontibacillus; sample1
ACGGCCAGTGGAAGGTGGGGATGACGTCAAATCATCATGCCCCTTATG
>Q9CYJ:00502:00074.1.293 5 Bacteria;Firmicutes;Bacilli;Bacillales;Staphylococcaceae;Staphylococcus; sample2
GACGGCCAGTGGAAGGTGGGGATGACGTCAAATCATCATGCCCCTTATGAC
With the code below I can extract taxonomy but I haven't managed to specify grouping. Any help will be highly appreciated.
seqs.Dande <- ape::read.FASTA(fasta.file)
data.Dande <-extract_tax_data(names(seqs.Dande),regex = "^(.*)\\t(.*)\\t(.*)\\t(.*)",
key = c(otu_id ="info", seq_count="info", otu_tax="class", sample="info"), class_sep=";")
Thank you in advance,
Juan