cafferychen777 / ggpicrust2

Make Picrust2 Output Analysis and Visualization Easier
https://cafferychen777.github.io/ggpicrust2/
Other
92 stars 11 forks source link

pathway_annotation(): Error in `$<-.data.frame`(`*tmp*`, "pathway_description"......", : replacement has 3 rows, data has 1 #15

Closed etorres475 closed 1 year ago

etorres475 commented 1 year ago

Hi Caffery,

Thanks a lot for this useful package! I am analyzing some data and keep getting the following error:

Screenshot 2023-04-13 at 6 26 29 PM

Do you have any suggestions to fix it?

Thanks for your help!

Best wishes,

Eliana

etorres475 commented 1 year ago

With another dataset I am getting the following:

Screenshot 2023-04-13 at 7 03 58 PM Screenshot 2023-04-13 at 7 09 52 PM Screenshot 2023-04-13 at 7 05 36 PM
cafferychen777 commented 1 year ago

Dear Eliana,

Thank you for using the ggpicrust2 package and for reaching out to us for assistance.

Based on the error message you shared, it seems that the pathway_description for the pathway "K04260" is causing the issue. One possible solution is to try using the second workflow provided in the tutorial. This workflow can be faster for debugging issues related to pathway descriptions.

You can try removing it from the analysis by excluding it from the pathway list or by filtering it out of your data. You can learn the following code. Jordan.R.zip

I hope this helps! Please let me know if you have any further questions or concerns.

Best regards, Chen YANG

etorres475 commented 1 year ago

Hi Chen,

Thanks a lot for your quick reply! It worked!

Best wishes