Using API interface for q2-sample-classifier

Are there more tutorials on API interface other than this one?
https://docs.qiime2.org/2018.4/interfaces/artifact-api/
This seems to give a very limited number of options on what you can do with it.
Specifically I would like to use it for the q2-sample-classifier function to predict metadata categories of unknown samples as mentioned here
How to use classify_samples to predict metadata category?

Hello Nricks,

I don’t think there is a tutorial for this, but the documentation does include info about the API as well as the CLI.
https://docs.qiime2.org/2018.4/plugins/available/sample-classifier/classify-samples/

Colin

1 Like

Hey there @nricks!

Not yet, but have you seen this community contribution?

Our tutorial is certainly very anemic at the moment, but, the general design strategy of QIIME 2 is that it is interface agnostic - interfaces all expose the exact same functionality (which is defined in plugins). That means the DADA2 denoise method is the same when called from the cli interface, the artifact api, or the GUI studio interface!

Let us know if you have any more questions! :qiime2: :t_rex:

1 Like

Thank you, I’ve got a much better grasp on how the API system works. What I would like to know, is how exactly to create a classifier using the q2-sample-classifier function, and then feed in a new set of data and have it predict the metadata

Have you had a chance to check out the tutorial?

This plugin doesn’t work the same as the feature classifier plugin at present - training and evaluation occur in the same step. We have an open issue to support training classifiers independently, but not sure on an ETA for this feature. Stay tuned!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.