# \donttest{
{
# Data preparation
data("Two_group")
# DESeq analysis
deseq_results <- Deseq_analysis(
taxobj = Two_group,
taxlevel = "Base",
cutoff = 1,
control_name = "Control"
)
# Indicator analysis
indicator_results <- indicator_analysis(
taxobj = Two_group,
taxlevel = "Genus"
)
# Show all with Manhattan plot
manhattan_object <- manhattan(
inputframe = deseq_results,
taxlevel = "Phylum",
control_name = "Control"
)
print(manhattan_object$manhattan) # Tradition Manhattan plot
print(manhattan_object$manhattan_circle) # Circular Manhattan plot
print(manhattan_object$sourcedata) # Source data for plot
print(manhattan_object$aes_color) # Aesthetic color for plot
# Top 8 Phyla with most taxon
manhattan_object <- manhattan(
inputframe = indicator_results,
taxlevel = "Phylum",
control_name = "Control",
mode = "most",
top_n = 8,
palette = "Set1"
)
print(manhattan_object$manhattan)
# Specific phyla
# Top nine dominant phyla
community <- community_plot(
taxobj = Two_group,
taxlevel = "Phylum",
n = 9,
palette = "Paired",
rmprefix = "p__"
)
manhattan_object <- manhattan(
inputframe = indicator_results,
taxlevel = "Phylum",
control_name = "Control",
mode = "select",
palette = community$filled_color,
select_tax = names(community$filled_color),
rmprefix = "p__"
)
print(manhattan_object$manhattan)
print(manhattan_object$manhattan_circle)
}
# }
Run the code above in your browser using DataLab