Skip to content

[QUESTION] Access PCA/heatmap outputs from ggpicrust2() workflow functionΒ #192

@irc47

Description

@irc47

❓ Question / Help Request

πŸ“‹ What do you need help with?

  • [X ] Understanding how to use a specific function
  • Choosing the right analysis method
  • Interpreting results
  • Data preparation and formatting
  • Installation or setup issues
  • Best practices for my research question
  • Troubleshooting unexpected results
  • Other: ___________

πŸ”¬ Research Context

I'm just beginning to use ggpicrust2 and am testing it out with the example data and a small amount of my own data. Based on the workflow diagram, it looks like the ggpicrust2() function should include pathway_pca() and pathway_heatmap() outputs, but the only plot I can find is the pathway_errorbars(). Am I wrong about my expectation here?

Study type:

  • Case-control study
  • Time series / longitudinal
  • Cross-sectional
  • Experimental design
  • Other: ___________

πŸ“Š Your Data

Data source:

  • [ X] PICRUSt2 output (pred_metagenome_unstrat.tsv)
  • Processed abundance data
  • Example data from package
  • Other: ___________

Data characteristics:

  • Number of samples:
  • Number of groups/conditions:
  • Sample size per group:
  • Type of microbiome data: [e.g., 16S, shotgun metagenomics]

πŸ’» What you've tried

Current approach:

## my data
ggpicrust2_default <- ggpicrust2(data = abundance_dup, #use file if loading directly from a file and not an R object
                                 metadata = metadata,
                                 group = "test1", # For example dataset, group = "Environment"
                                 pathway = "KO",
                                 daa_method = "LinDA",
                                 ko_to_kegg = TRUE,
                                 order = "pathway_class",
                                 p_values_bar = TRUE,
                                 x_lab = "pathway_name")

## example data
data(ko_abundance)
data(metadata)
results_file_input <- ggpicrust2(data = ko_abundance,
                                 metadata = metadata,
                                 group = "Environment",
                                 pathway = "KO",
                                 #daa_method = "ALDEx2",
                                 ko_to_kegg = TRUE,
                                 order = "pathway_class",
                                 p_values_bar = TRUE,
                                 x_lab = "pathway_name")

results_file_input[[1]]$plot

Current results or issues:
I was expecting all three pathway plots, or at least an object that could be passed to those plots. I can reformat the ggpicrust2() output results and then use the pathway_heatmap() on that, but it seems inefficient given that it looks like the main workflow function should be able to do this.

🎯 Specific Questions

πŸ“š Background Research

  • [X ] I've read the package documentation
  • [ X] I've reviewed the vignettes
  • [ X] I've searched existing issues
  • I've consulted relevant literature

Helpful resources you've already checked:

πŸ–₯️ Environment (if relevant)

  • Operating System:
  • R Version:
  • ggpicrust2 Version:

πŸ”„ Analysis Goals

What do you ultimately want to achieve?

  • Identify differentially abundant pathways
  • Create publication-quality figures
  • Compare different methods
  • Perform statistical analysis
  • Data exploration and visualization
  • Other: ___________

⏰ Timeline

  • This is urgent for a deadline
  • I have some flexibility with timing
  • This is for future planning

πŸ“– Additional Context

Any other information that might be helpful for understanding your question or providing better guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions