Investigating sequence files via Python API

That's what I wanted! Looks like the sequences are stored as skbio.sequence._dna.DNA objects in the pandas Series. For posterity's sake, here's what that code to access that looks like:

import qiime2 as q2
import pandas as pd
seq = q2.Artifact.load('seq.qza').view(view_type=pd.Series)
seq.iloc[0]

Ah, ok. Well, consider this an upvote for this sort of feature. Like I wrote in my "tools to explore artifacts directly" post, being able to know how to interact with qiime2 data with familiar and flexible tools is super important. :slight_smile:

2 Likes