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

Use combineCols for merging SCEs #253

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

jashapiro
Copy link
Member

Stacked on #251, to hopefully fix the errors there.

So after fighting a bunch to try to see what we were missing, including some diving into the cbind code for SCEs, I decided to try a different approach, and let the developers of SCE handle our problem.

Turns out they did a pretty good job. Using there combineCols function made things work and removed the need for us to create our own NA matrices!

This also removes the need for us to test that we have all the assays, as those get combined correctly. I kept failures for different features, as I think that we may want to discuss what to do in the case of altExps with the same names but different feature sets: do we combine those or turn them into separately named altExps? I don't know yet, so failure seems the best option.

So this code does that, along with some linting/reformatting that precommit wanted.

Locally, this is passing all tests, but we will get a final test when merging into #251!

Copy link
Member

@sjspielman sjspielman left a comment

Choose a reason for hiding this comment

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

This all looks fine to me, let's see how it goes!

I kept failures for different features, as I think that we may want to discuss what to do in the case of altExps with the same names but different feature sets: do we combine those or turn them into separately named altExps? I don't know yet, so failure seems the best option.

FYI -#248 (comment)

So this code does that, along with some linting/reformatting that precommit wanted.

Thank you for the reminder to locally set up my precommit hook in this repo!


# ensure matching barcodes
colnames(sce_alt) <- colnames(sce)

# change feature names
Copy link
Member

Choose a reason for hiding this comment

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

seems reasonable!

@jashapiro jashapiro merged commit 680676b into sjspielman/150-next-steps Dec 21, 2023
@jashapiro jashapiro deleted the jashapiro/combine_cols branch December 21, 2023 15:48
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