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

MAINT: adds FeatureData[Selection] type, UNIXListFormat, IDSelectionDirectoryFormat #282

Closed
wants to merge 9 commits into from

Conversation

lizgehret
Copy link
Member

@lizgehret lizgehret commented Oct 10, 2022

This PR adds the following type/formats from genome-sampler and their accompanying transformers:

New file/directory formats:
UNIXListFormat
IDSelection
IDSelectionDirectoryFormat
IDMetadataFormat

New Semantic Type:
FeatureData[Selection]

@lizgehret lizgehret requested a review from Oddant1 October 10, 2022 22:58
@lizgehret lizgehret changed the title new: NewlineListFileFormat and InclusionExclusionDirectoryFormat new: adds FeatureData[Selection] type, UNIXListFormat, IDSelectionDirectoryFormat Oct 11, 2022
@lizgehret lizgehret removed the request for review from Oddant1 October 12, 2022 18:54
@lizgehret
Copy link
Member Author

This PR has been moved to the 'rainy day activities' board because it still needs unit tests added, and isn't needed for any immediate projects/goals for the 2022.11 release.

@lizgehret lizgehret changed the title new: adds FeatureData[Selection] type, UNIXListFormat, IDSelectionDirectoryFormat MAINT: adds FeatureData[Selection] type, UNIXListFormat, IDSelectionDirectoryFormat Dec 11, 2023
@gregcaporaso gregcaporaso self-assigned this Dec 11, 2023
@gregcaporaso
Copy link
Member

Reminder to merge caporaso-lab/genome-sampler#98 after this is merged.

return [s.strip() for s in fh]


class IDMetadataFormat(model.TextFileFormat):
Copy link
Member

@gregcaporaso gregcaporaso Dec 11, 2023

Choose a reason for hiding this comment

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

We didn't have the ImmutableMetadata type/format when we created this - we could probably update genome-sampler to not use this anymore, but I think we'll need to keep the type/format around for working with previously generated artifacts. (Note to self to create a genome-sampler issue for this, nothing really to do here.)

@gregcaporaso
Copy link
Member

After some discussion with @ebolyen we decided to convert this to a draft PR. The IDSelection type is likely relevant to revisit at some point, but with only the one use case in genome-sampler, we're not yet sure that this is an implementation that we want to commit to. If/when we circle back to the idea of supporting selections of IDs (sample or feature) with a semantic type, we can use this code or refactor to meet the needs that we identify at that time.

@gregcaporaso gregcaporaso marked this pull request as draft December 12, 2023 19:22
@gregcaporaso gregcaporaso removed their assignment Dec 13, 2023
@lizgehret lizgehret self-assigned this Jul 11, 2024
@lizgehret
Copy link
Member Author

closing this as the current implementation isn't needed - will revisit with a revised edition in the future when it's needed.

@lizgehret lizgehret closed this Jul 17, 2024
@lizgehret lizgehret deleted the featuredata-selection branch July 17, 2024 17:22
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.

3 participants