Skip to content

FeatureData[Kraken2Reports]

Santiago Castro Dau edited this page Apr 23, 2024 · 2 revisions

TODO: Description.

Artifact Format

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'

Expected Folder Structure

data
├── <prefix>report.<txt|tsv>
⋮
└── <prefix>report.<txt|tsv>

Where to find FeatureData[Kraken2Reports]

As Input

As Output

🏠 Home

🧑🏻‍🏫 Tutorials

🎬 Actions

Clone this wiki locally