-
Notifications
You must be signed in to change notification settings - Fork 14
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
Comments
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. |
I did solve it, but can't remember how and did not make notes in the script. Sorry! |
I am having the same error. |
Hi @raqxavier and others experiencing this issue, Thank you for reporting this. The error occurs when attempting to create an error bar plot with only one significant pathway. This is a known limitation in the current implementation. Here are several solutions:
Note: This limitation will be addressed in the next release to better handle single significant pathway cases. For now, please use one of these workarounds. Please let me know if you need any clarification or encounter other issues! Best regards, |
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:
The text was updated successfully, but these errors were encountered: