Skip to content

Add new MAGIC API - #195

Merged
falexwolf merged 1 commit into
scverse:masterfrom
scottgigante:master
Jul 13, 2018
Merged

falexwolf merged 1 commit into
scverse:masterfrom
scottgigante:master

Conversation

@scottgigante

@scottgigante scottgigante commented Jul 12, 2018 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

2 participants