joey711 / phyloseq

phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
http://joey711.github.io/phyloseq/
569 stars 187 forks source link

Help !! plot_heatmap in R (Phyloseq) weird error #1655

Open LeeJH5120 opened 1 year ago

LeeJH5120 commented 1 year ago

Proceed with plot_heatmap with phyloseq object as input Code like

mothur.rel <- microbiome::transform(mothur_merge, "compositional") mothur_Ph <- subset_taxa(mothur.rel, Phylum=="Proteobacteria") mothur_Ph <- prune_taxa(names(sort(taxa_sums(mothur_Ph), TRUE)), mothur_Ph) plot_heatmap(mothur_Ph, sample.label="Type") or plot_heatmap(mothur_Ph, sample.label="Sample",sample.order = "group", na.value="white",low="#66CCFF", high="#000033")

Error in plot_heatmap(mothur_Ph, sample.label = "Type") : inherits(mm, c("microbiomeMarker", "marker_table")) is not TRUE

It was normal, but an error occurred

R.version : 4.2.0 phyloseq.version : 1.40.0

david-barnett commented 1 year ago

Either unload microbiomeMarker package or use phyloseq::plot_heatmap to disambiguate which function you're calling

LeeJH5120 commented 1 year ago

To David

Thank you very much phyloseq::~

I've solved the problem.

Previously, it worked fine with "plot_heatmap ~", but it was embarrassing.

감사합니다.

이준형 드림

이준형 강릉원주대학교 해양생명과학과 해양마이크로바이옴

이준형 / 석사과정 해양미생물군, 강릉원주대학교 해양생명과학과

지도 교수님 (Academic advisor) : 한덕기 (Duk Ki Han)

A. 강원도 강릉시 죽헌길 7 공학대학교1호관 308호 (25457) (대한민국 강원도 강릉시 죽헌길 7) @. @.> *_ @.**> T.* 010-6313-5120

2023년 1월 26일 (목) 오후 5:07, David Barnett @.***>님이 작성:

Either unload microbiomeMarker package or use phyloseq::plot_heatmap to disambiguate which function you're calling

— Reply to this email directly, view it on GitHub https://github.com/joey711/phyloseq/issues/1655#issuecomment-1404667951, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5PENIPS6FG3TFVP37F4F4DWUIWFDANCNFSM6AAAAAAUHD7YDA . You are receiving this because you authored the thread.Message ID: @.***>

david-barnett commented 1 year ago

No problem 😊 and don't forget to close this issue as completed