Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error pathway_errorbar "$<-.data.frame(*tmp*, "group", value = c(2L, 2L, 2L, 2L, : replacement has 20 rows, data has 1" #111

Open
raqxavier opened this issue Jun 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@raqxavier
Copy link

Good morning

I have one differentially abundant pathway between two groups and wish to plot it using the "pathway_errorbar":
p <- pathway_errorbar(abundance = kegg_abundance, daa_results_df = daa_annotated_sub_method_results_df, Group = metadata$state, p_values_threshold = 0.05, order = "pathway_class", select = NULL, ko_to_kegg = TRUE, p_value_bar = TRUE, colors = NULL, x_lab = "pathway_name")

ERROR
Error in $<-.data.frame(*tmp*, "group", value = c(2L, 2L, 2L, 2L, :
replacement has 20 rows, data has 1
In addition: Warning message:
In cbind(sample = colnames(sub_relative_abundance_mat), group = Group, :
number of rows of result is not a multiple of vector length (arg 2)

Environment Information:

  • Operating System: mac
  • R Version: R version 4.3.1
  • Package Version: 1.7.3
@raqxavier raqxavier added the bug Something isn't working label Jun 26, 2024
@Valencia-0302
Copy link

Did you resolve this issue? I am also using R on a Mac, and while it worked last year, I'm encountering this problem now when trying to regenerate the plots this year.

@raqxavier
Copy link
Author

I did solve it, but can't remember how and did not make notes in the script. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants