Skip to content

IMP: collate contig-maps - #405

Merged
ebolyen merged 3 commits into
qiime2:devfrom
ZuzanaSebb:contig-map-partition
Oct 1, 2026
Merged

ebolyen merged 3 commits into
qiime2:devfrom
ZuzanaSebb:contig-map-partition

Conversation

@ZuzanaSebb

Copy link
Copy Markdown
Contributor

Description

This PR adds function to collate contig-maps. Related to #14

AI Disclosure

  • [] NO AI USED.
  • AI USED.

AI Usage Details

Claude (Sonnet 5) was used to generate descriptors in plugin_setup.py.

@fethalen fethalen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @ZuzanaSebb, good job on this. Could you quickly have a look at the comments that I've made?

Comment thread q2_types/plugin_setup.py Outdated
"contig_maps": "A collection of MAG-to-contig maps to be collated."
},
name="Collate MAG-to-contig maps",
description="Takes a collection of FeatureMap[MAGtoContigs]'s "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FeatureMap[MAGtoContigs]'s -> FeatureMap[MAGtoContigs]s

Comment thread q2_types/plugin_setup.py Outdated
)
from q2_types.feature_data import FeatureData, Sequence
from q2_types.feature_map import FeatureMap, MAGtoContigs
from q2_types.feature_map._methods import collate_contig_maps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since collate_contigs_maps has already been exported in __init__.py, I think that you can replace these 2 lines with one:

from q2_types.feature_map import FeatureMap, MAGtoContigs, collate_contig_maps

# ----------------------------------------------------------------------------
from qiime2.plugin.testing import TestPluginBase

from q2_types.feature_map._methods import collate_contig_maps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting ._methods is probably unnecessary since __init__.py already exports collate_contig_maps

@fethalen

Copy link
Copy Markdown
Contributor

Hi, @ZuzanaSebb. The fixes looks great. I've tested with the data you gave me and everything is working as expected. Great job!

@ebolyen
ebolyen merged commit 861f127 into qiime2:dev Oct 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants