Skip to content

Add correct format to the exporting newick trees - #69

Merged
ebolyen merged 2 commits into
qiime2:devfrom
Oddant1:issue-89
May 15, 2026
Merged

Add correct format to the exporting newick trees#69
ebolyen merged 2 commits into
qiime2:devfrom
Oddant1:issue-89

Conversation

@Oddant1

@Oddant1 Oddant1 commented Apr 13, 2026

Copy link
Copy Markdown
Member

Comment thread q2galaxy/core/templaters/export_data.py Outdated
if ext == 'nwk':
# TODO: This is a bit of a cludge, we should probably
# make it so it more generically adds the appropriate
# format

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This feels pretty similar to a mime-type map. We have those in a few places, so maybe we just make a galaxy specific one and we start with:

EXT_TO_FORMAT = {
    'nwk': 'newick'
}

# ...

format = EXT_TO_FORMAT.get(ext, ext)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah that seems like the obvious answer assuming ext works as a format which... I suppose it will? Is that basically what the current behavior is?

@Oddant1 Oddant1 assigned ebolyen and unassigned Oddant1 May 14, 2026
@Oddant1 Oddant1 moved this from In Development to In Review in 2026.7 🐐 May 14, 2026

@ebolyen ebolyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks @Oddant1!

@github-project-automation github-project-automation Bot moved this from In Review to Ready for Merge in 2026.7 🐐 May 15, 2026
@ebolyen

ebolyen commented May 15, 2026

Copy link
Copy Markdown
Member

CI is broken in an uninteresting way

@ebolyen
ebolyen merged commit f2b981f into qiime2:dev May 15, 2026
2 of 3 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for Merge to Changelog Needed in 2026.7 🐐 May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Changelog Needed

Development

Successfully merging this pull request may close these issues.

qiime2 export tool uses wrong format

3 participants