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 in phyloseq_to_metogenomeseq() post tax_glom() #1240

Open
sushmitasp opened this issue Oct 2, 2019 · 1 comment
Open

Error in phyloseq_to_metogenomeseq() post tax_glom() #1240

sushmitasp opened this issue Oct 2, 2019 · 1 comment

Comments

@sushmitasp
Copy link

Hello,
I am trying to convert a phlyoseq object to a newMRexperiment object using the phyloseq_to_metogenomeseq() function after I tax_glom() my object, but keep getting the following error:

Error in dimnames(x) <- dn : length of 'dimnames' [1] not equal to array extent

Here is my script:
ps.genus<-tax_glom(ps,taxrank = "Genus",NArm = F)
mgs<-phyloseq_to_metagenomeSeq(ps.genus)

I checked the taxa_names() according to your suggestion in a similar issue someone had. But it looked okay, so not sure where things are going wrong.

Any help is appreciated, thanks!

@akiledal
Copy link

akiledal commented Nov 4, 2019

There does seem to be an issue with that function. A fix was proposed here but it hasn't been merged yet. It worked for me, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants