bokulich-lab / q2-types-genomics

QIIME 2 types for genomics plugins.
BSD 3-Clause "New" or "Revised" License
6 stars 11 forks source link

ENH: add `sample_dict` method to the `MultiFASTADirectoryFormat` format #78

Closed misialq closed 8 months ago

misialq commented 10 months ago

Similarly to how it was done in https://github.com/bokulich-lab/q2-types-genomics/pull/57, we want to have a mapping between samples, mags and the corresponding mag paths in the MultiFASTADirectoryFormat so that it's easier to iterate through files e.g.: when performing operations MAG-wise. The method should return something like:

{
    "sample1": {
          "mag1": "/path/to/mag1.fa"
          "mag2": "/path/to/mag2.fa"
    },
    "sample2": {
          "mag1": "/path/to/mag1.fa"
          "mag2": "/path/to/mag2.fa"
    },
    ...
}