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

feature table has several classes #2

Open
mmpust opened this issue Feb 23, 2023 · 1 comment
Open

feature table has several classes #2

mmpust opened this issue Feb 23, 2023 · 1 comment

Comments

@mmpust
Copy link

mmpust commented Feb 23, 2023

Hi Jakob, thanks for developing SIMBA!
I have a numeric input feature matrix with samples (columns) and taxa (rows) information.
When I run create.data.simulation, I get the following error message:

+ Start checking data
Error in check.original.data(feat, meta, sim.type, sim.method) : 
  Your feature table has several classes (should be only one)!

What does that mean? Thanks!

@jakob-wirbel
Copy link
Contributor

Hi @mmpust
thanks for using SIMBA!
Please note that the package is under ongoing development and not quite ready yet, so don't be surprised when you run into a couple of issues :D :D :D

Regarding your question: The feature matrix should be a matrix object or a list of matrices (if you want to combine several studies together) or a data.frame (or a list of data.frames).
I guess that you gave a tibble to the function, which then confuses the function because a tibble has more than one class:

 df <- tibble(x=c(1,2,3), y=c(1,2,3))
class(df)
[1] "tbl_df"     "tbl"        "data.frame"

What exactly was your function call?
Cheers
Jakob

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