Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMP: additional aligned sequence transformers #248

Merged
merged 5 commits into from
Jun 17, 2020
Merged

IMP: additional aligned sequence transformers #248

merged 5 commits into from
Jun 17, 2020

Conversation

gregcaporaso
Copy link
Member

@gregcaporaso gregcaporaso commented Jun 15, 2020

This adds transformers needed for qiime2/q2-feature-table#232 and qiime2/q2-alignment#70

@thermokarst thermokarst self-requested a review June 15, 2020 13:54
@thermokarst thermokarst added the stat:blocking-other This is blocking other issues/PRs/projects. label Jun 15, 2020
Copy link
Contributor

@thermokarst thermokarst left a comment

Choose a reason for hiding this comment

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

Discussed out of band with @gregcaporaso - unit tests will be added to exercise these new transformations.

Comment on lines 375 to 378
with ff.open() as f:
for id_, seq in data.iteritems():
sequence = skbio.DNA(seq, metadata={'id': id_})
skbio.io.write(sequence, format='fasta', into=f)
Copy link
Contributor

Choose a reason for hiding this comment

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

This block shows up more than once in this file - might be a good candidate for a util function.

@thermokarst
Copy link
Contributor

Do we need an AlignedDNAFASTAFormat -> qiime2.Metadata transformer, too? That way we can view as metadata (for example, in filter_seqs, you could filter out long runs of gap characters - it would be a weird way to do it, so don't put too much stock in this contrived example).

@gregcaporaso
Copy link
Member Author

Do we need an AlignedDNAFASTAFormat -> qiime2.Metadata transformer, too?

Discussed out of band with @thermokarst - we do already have that in this plugin.

Copy link
Contributor

@thermokarst thermokarst left a comment

Choose a reason for hiding this comment

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

Magnifique!

@thermokarst thermokarst merged commit 4490758 into qiime2:master Jun 17, 2020
@thermokarst thermokarst removed the stat:blocking-other This is blocking other issues/PRs/projects. label Jun 17, 2020
@gregcaporaso gregcaporaso deleted the filter-seqs-type-match branch October 6, 2022 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants