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

Add new MAGIC API #195

Merged
merged 1 commit into from Jul 13, 2018
Merged

Add new MAGIC API #195

merged 1 commit into from Jul 13, 2018

Conversation

scottgigante
Copy link
Contributor

@scottgigante scottgigante commented Jul 12, 2018

Fix #187 and #193

The bulk of the new API is contained within https://github.com/KrishnaswamyLab/MAGIC and https://github.com/KrishnaswamyLab/graphtools , both of which now natively accept AnnData as of KrishnaswamyLab/MAGIC#116 and KrishnaswamyLab/graphtools#18. MAGIC also returns an AnnData object containing the original .obs and (optionally subsetted) .var from the input. The scanpy API forces this to be a new AnnData if the genes are subsetted, allows modification in-place if all genes are returned, and adds the returned values to .obsm['X_magic'] if the returned values are PCA on MAGIC.

@falexwolf let me know if this fits what you think the API should be.

@falexwolf
Copy link
Member

Makes sense! 😄

@falexwolf falexwolf merged commit 733c8d7 into scverse:master Jul 13, 2018
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.

None yet

2 participants