generated from bokulich-lab/q2-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 14
SampleData[Kraken2Outputs]
Santiago Castro Dau edited this page Apr 23, 2024
·
2 revisions
TODO: Description.
class Kraken2OutputDirectoryFormat(model.DirectoryFormat):
reports = model.FileCollection(
r'.+output\.(txt|tsv)$', format=Kraken2OutputFormat
)
@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}output.txt'
class Kraken2OutputFormat(model.TextFileFormat):
...
data
├── <prefix>output.txt
⋮
└── <prefix>output.txt