Skip to content

Heatmap #61

Answered by cafferychen777
aston9090 asked this question in Q&A
Oct 12, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello @aston9090 ,

It appears there's a misunderstanding about the data structure required by the pathway_heatmap() function. Here's a reference code that might clarify the expected input and steps:

Load necessary data
data("metacyc_abundance")
data("metadata")

Perform differential abundance analysis
metacyc_daa_results_df <- pathway_daa(abundance = metacyc_abundance %>%
column_to_rownames("pathway"),
metadata = metadata, group = "Environment", daa_method = "LinDA")

Annotate the results
annotated_metacyc_daa_results_df <- pathway_annotation(pathway = "MetaCyc",
daa_results_df = metacyc_daa_results_df, ko_to_kegg = FALSE)

Filter pathways with p-adjusted value less than 0.05
feature_with…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aston9090
Comment options

@cafferychen777
Comment options

Answer selected by aston9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants