generated from bokulich-lab/q2-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 14
FeatureData[Kraken2Reports]
Santiago Castro Dau edited this page Apr 23, 2024
·
2 revisions
TODO: Description.
class Kraken2ReportDirectoryFormat(model.DirectoryFormat):
reports = model.FileCollection(
r'.+report\.(txt|tsv)$', format=Kraken2ReportFormat
)
@reports.set_path_maker
def reports_path_maker(self, sample_id, mag_id=None):
prefix = f'{sample_id}/{mag_id}_' if mag_id else f'{sample_id}/'
return f'{prefix}report.txt'
data
├── <prefix>report.<txt|tsv>
⋮
└── <prefix>report.<txt|tsv>