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

otudata has duplicate OTU rows #13

Open
yasminhilliam opened this issue May 19, 2022 · 2 comments
Open

otudata has duplicate OTU rows #13

yasminhilliam opened this issue May 19, 2022 · 2 comments

Comments

@yasminhilliam
Copy link

Hi, I'm super excited to generate some figures with this package, it's exactly what I've been looking for. However, I'm running into some issues early on with importing my data. I have generated a feature table TSV from QIIME2 which has unique sample IDs as column names and ASV feature IDs as row names, with counts for each (646 obs. of 48 variables). However, when I run paramList <- prepanel(otudata = otu, metadata = meta, subj = "subject1") I receive the following error:

Error in prepanel(otudata = otu, metadata = meta, subj = "GESCF14") : 'otudata' has duplicate OTU rows

I have extracted the row names into a list:

otulist <- rownames(otu)
chr [1:646]

and then checked for unique values

unique(otulist)

R tells me that there are 646 unique values. So I am not sure where this error is being introduced. Can you offer any advice? Thanks in advance!

@isaacfink21
Copy link
Collaborator

Hi @yasminhilliam, apologies for the late response. This error will happen if there are more rows in your otudata set than unique OTU IDs. Do you have any extra rows that don't correspond to sample reads for an OTU?

@jspychalla
Copy link

Hi,
I am running into a similar error the dimensions of my otu table are 63 by 3497. My unique(otulist) outputs 63 unique OTU names. I do not see any extra rows in my dataframe when I view it in R. Could something else be giving me this error?

Super excited about this package as well it is exactly what I have been looking for

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

3 participants