-
Notifications
You must be signed in to change notification settings - Fork 135
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
Update scVIIntegration to take StdAssay
/SCTAssay
as input
#180
Conversation
# get a named vector mapping each cell to its respective layer | ||
layer.map <- labels( | ||
layer.masks, | ||
values = Cells(object, layer = layers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mhkowalski would you mind giving this function a sanity check for me?
Since CreateIntegrationGroups
isn't exported by Seurat
it seemed simpler to just re-implement the logic here. I've dropped the scale.layer
param since.
As far as I can tell this was just being used get the cell IDs for all of the layers since there's only ever one scale layer present. Unless the order is important here, or there's a possibility that the data is subset during normalization/scaling than I think this should be safe (especially since scVIIntegration
itself forces the use of the "counts" layers).
I might be missing something though...
Thank you for doing this! I really appreciate the efforts to make the code clean!
|
That is a very good point - was this working before? |
No, BPCells w scvi did not work on the previous branch either! |
Alright, in that case, I'd say this is OOS for now - let's spin up a card and tackle it in a subsequent iteration 👌 |
Drop `groups` param from scVIIntegration Update docstring for scVIIntegration
344f3e3
to
90d2bc1
Compare
Follow up to #179 - unfortunately, the complimentary fix to #179 (https://github.com/satijalab/seurat-private/pull/894) caused
IntegrateLayers
to break ifSeuratWrappers
was not installed.This PR resolves the problem by bringing
scVIIntegration
into better sync with the methods provided natively inSeurat
and operating onAssay
s as opposed toSeurat
instances.Since I was in the neighborhood I've done a bit of tidying up but in the process reformatted the code in a kinda opinionated way (I'm running
styler
) - keen to hear what folks think!Once https://github.com/satijalab/seurat-private/pull/895 is merged
SeuratWrappers
will be compatible with prod and develop versions ofSeurat
and the following script should run as before:Closes: