There's more...

The preceding code does not show you how to import data. The actual code will vary from case to case (single-end data, paired-end data, or already demultiplexed data), but for the main QIIME 2 tutorial, Moving Pictures, assuming that you have downloaded the single-end, non-demultiplexed data, and barcodes into a directory called data, you can do the following:

data_type = 'EMPSingleEndSequences'
conv = Artifact.import_data(data_type, 'data')
conv.save('out.qza')

As stated in the preceding code, if you look on GitHub for this Notebook, the static nbviewer system will not be able to render the Notebook correctly (you have to run it yourself). There is a PDF on the directory that includes a print version of the Notebook with ...

Get Bioinformatics with Python Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.