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

test on a new data from otutable #30

Open
Mushahid2521 opened this issue Mar 2, 2022 · 3 comments
Open

test on a new data from otutable #30

Mushahid2521 opened this issue Mar 2, 2022 · 3 comments

Comments

@Mushahid2521
Copy link

Mushahid2521 commented Mar 2, 2022

Is there a way to predict the new sample otutable? I don't have any metadata for those samples.

TIA

@jakob-wirbel
Copy link
Collaborator

Hi @Mushahid2521

Yes, this is possible! :)
If you have another dataset without label information, you can still create a SIAMCAT object without a label. It will throw a warning, but it will work. Then, you can follow the Holdout testing vignette to predict on new samples with a trained model.

Cheers,
Jakob

@Mushahid2521
Copy link
Author

Thanks a lot. It worked.

@Mushahid2521
Copy link
Author

Sorry. I am experiencing a new issue.
My holdout feature table doesn't contain all the OTUs that are present in the training feature table.
I get the following error message while performing normalize.features according to Holdout testing vignette.

Error in normalize.features(sc.obj.test, norm.param = norm_params(sc.obj),  : 
  all(norm.param$retained.feat %in% row.names(feat)) is not TRUE

@Mushahid2521 Mushahid2521 reopened this Mar 8, 2022
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