-
Notifications
You must be signed in to change notification settings - Fork 13
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
pathway_errorbar error #117
Comments
Dear DeniRibicic, Thank you for reaching out and for your interest in the ggpicrust2 tool. I appreciate your feedback and am glad to hear that you find it useful for analyzing PICRUSt2 output. I've reviewed the error message you're encountering with the To better understand and resolve this issue, it would be helpful if you could send your data to [email protected]. This will allow me to examine the specific structure and content of your datasets, which might reveal the source of the problem. When sending the data, please include:
With these, I should be able to reproduce the issue and provide a more targeted solution. In the meantime, could you also confirm:
Thank you for your patience as we work to resolve this. I look forward to receiving your data and helping you get the Best regards, |
Hi @cafferychen777 and thank you for prompt reply. As you mentioned dimensions here, I checked it and that was the problem! Basically, my metadata file contains some additional samples that were not part of picrust2 analysis. Usually having listed more samples in metadata/mapping file doesn't cause errors with other microbiome packages that I use (it is rather the opposite- missing sample). However, with Quick subsetting solves the issue:
|
Dear @DeniRibicic, Thank you for the update on your issue with the It's great that you discovered the mismatch between your metadata file and the PICRUSt2 analysis samples. You're right that having additional samples in the metadata file can sometimes cause issues, even if it doesn't with other microbiome packages. Your solution of subsetting the metadata to match the samples in the abundance data is perfect: samples <- colnames(ko_abundance)[-1]
metadata_filtered <- metadata %>% filter(`#SampleID` %in% samples) This approach ensures that your metadata and abundance data are properly aligned, which is crucial for the correct functioning of Thank you for sharing this solution. It will be helpful for other users who might encounter similar issues in the future. If you have any more questions or run into any other problems, please don't hesitate to ask. Best regards, |
Hi again, Running the same function on MetaCyc dataset, but getting the following error:
Full command to create inputs:
No errors when creating these two input dfs.
Any idea from top of your head why is it complaining there are no significant features? |
Dear DeniRibicic, Thank you for your detailed follow-up on the issue. Theoretically, this problem should not occur given the information you've provided. To help diagnose the issue, it would be very helpful if you could send me the relevant R data objects (such as In the meantime, you might want to try a few troubleshooting steps:
If the issue persists after trying these steps, please send me the RData file, and I'll be happy to take a closer look. Best regards, |
Hi DeniRibicic, Thank you for sharing the details of the error. After reviewing the code, I found the issue. In the command: select = daa_annotated_results_df %>%
arrange(p_adjust) %>%
slice(1:30) %>%
select("feature") %>%
pull() You are using Let me know if you encounter any further issues! |
@cafferychen777 such a rookie mistake! Thanks, this works! |
Hi,
First of all, thanks for creating this tool. It seems very neat for crunching down picrust2 output.
I am trying to run
pathway_errorbar
function but getting the following error:I have used following commands:
All the outputs are generated as they supposed to, it is only the last part that is throwing the error.
When I run the exact same commands on your data (except the sub setting), everything works fine.
Any idea what could be wrong here? I can share my data if needed.
The text was updated successfully, but these errors were encountered: