-
-
Notifications
You must be signed in to change notification settings - Fork 12
Simplify mapping arguments #260
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
Conversation
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.
LGTM. Minor suggestion
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.
Looks good to me!
@@ -918,28 +947,14 @@ from_Seurat <- function( | |||
return(invisible()) |
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.
What is the reason to use invisible()
here instead of just an early return? (purely informative)
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.
These functions don't return anything, they just modify adata
in place. A normal return()
returns NULL
which might be printed to something, invisible()
makes sure the result is hidden. Possibly there is a nicer way to do this.
#' can include the `X` matrix as well. If `X` is not in the list, it will be | ||
#' added as `counts` or `data`. |
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.
I think this should be more specific: will it be added as counts
or data
? In what cases as counts
or as data
?
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.
I was trying not to change this here because I thought you would look at it in #255. But I can do it here if that's easier.
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.
No, indeed it will be clarified in #255
Co-authored-by: Robrecht Cannoodt <[email protected]>
…pping * origin/main: Update development status vignette (#262)
/document |
I'm going to merge this because I think it's holding up other things. I have another PR which should sort out any fixes to the documentation. |
Simplify the mapping arguments in conversion functions to use named vectors instead of nested lists.
Related to (replaces?) #251, fixes #239
reduction_mapping
argument offrom_Seurat()
/from_SingleCellExperiment()
which allows a more complex list format if users want to specify loadings etc.c("item1", "item2")
gets converted toc(item1 = "item1", item2 = "item2")
. This is mostly to avoid simple errors and isn't shown in examples.This helps standardise things so it will be simpler to replace
from_Seurat()
/from_SingleCellExperiment()
withas_AnnData()
. More updates to documentation will come in #253.