I'm a new QIIME2 user, and I've been experimenting with the Python Artifact API and trying to get through an analysis with it.
I'm trying to use the feature_table.visualizers.summarize() and feature_table.visualizers.tabulate_seqs method on the the artifacts I've produced with data2.methods.denoise_paired(), though I'm running into the following error messages:
TypeError: Argument to parameter 'table' is not a subtype of FeatureTable[Frequency | PresenceAbsence | RelativeFrequency].
TypeError: Argument to parameter 'data' is not a subtype of FeatureData[Sequence].
This is confusing to me because when I check the objects, they show their respective data types correctly. Here's my code:
I haven't been able to figure out how to pass my sample metadata into the sample_metadata parameter of feature_table_visualizers.summarize() yet, but that will come later .
Hi @forestd! Thanks for posting a follow-up! While that totally works, I just want to point out, you were super close in your original post, you were just using strings instead of the actual objects in your method calls: