Skip to content

Error in pathway_errorbar() ( Some features have less than 3 nonzero values! ) #159

@Valentin-Bio

Description

@Valentin-Bio

Hello developer! thanks so much for this tool. I'm trying to run the full workflow with ggpicrust2() function. The problem is I got the following error message when running this code:


results_file_input <- ggpicrust2(file = "./functional_analysis/KO_paths_mod.tsv",
                                 metadata = metadata_f,
                                 group = "treatment", # 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")


Error in pathway_errorbar(abundance = abundance, daa_results_df = daa_sub_method_results_df, :
The 'group1' or 'group2' column in the 'daa_results_df' data frame contains more than one group. Please filter each to contain only one group.
In addition: Warning message:
In MicrobiomeStat::linda(feature.dat = feature.dat, meta.dat = meta.dat, :
Some features have less than 3 nonzero values!
They have virtually no statistical power. You may consider filtering them in the analysis!

Im thinking this error may be due my experimental design of my samples. I only have 8 samples, with 3 groups (control with 3 samples, another control of 2 samples and 2 treatment samples and another group of 1 sample). I thought the error may be due to the group of one sample so I decided to remove that group from my data (In the picrust2 output table and in the metadata table) But I still have the same problem. Any ideas?

Thanks!

Valentín.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions