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

Subsetting feature-level metadata fix #200

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Subsetting feature-level metadata fix #200

merged 3 commits into from
Apr 16, 2024

Conversation

Gesmira
Copy link
Collaborator

@Gesmira Gesmira commented Apr 15, 2024

Subsetting features like so pbmc3k_subset <- subset(pbmc3k, features = features) was not correctly subsetting the feature-level metadata resulting in different variable features in the subsetted object. The code that subsetted the feature-level metadata was running after the features of the object had already been subset, so the new and original features were the same and thus instead of removing the features in place, they were removed from the end of the table.

Explained in more detail here: https://github.com/satijalab/project-management/issues/73

@Gesmira Gesmira changed the title Fix/subset feat Subsetting feature-level metadata fix Apr 15, 2024
Copy link
Member

@mojaveazure mojaveazure left a comment

Choose a reason for hiding this comment

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

I've left one suggestion to add a link to the PR in NEWS.md, but otherwise this looks good. Thanks for catching!

NEWS.md Outdated Show resolved Hide resolved
Co-authored-by: Paul Hoffman <mojaveazure@users.noreply.github.com>
@Gesmira Gesmira merged commit 0218527 into develop Apr 16, 2024
@mojaveazure mojaveazure deleted the fix/subset_feat branch April 16, 2024 18:11
@dcollins15 dcollins15 mentioned this pull request Jun 26, 2024
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