-
-
Notifications
You must be signed in to change notification settings - Fork 14
Improve handling in conversion from Seurat
#369
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
#' - If `assay_name` is the default assay, they will be _converted_ with a | ||
#' warning | ||
#' - if `assay_name` is not the default assay, they will be _skipped_ with a | ||
#' warning |
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.
This logic might be a bit complex, we could make it always do one of these
if (assay_name == SeuratObject::DefaultAssay(seurat_obj)) { | ||
cli_warn(c( | ||
"Graph {.val {graph_name}} does not have an associated assay", | ||
"i" = "Assuming it belongs to the selected default assay ({.val {assay_name}})" | ||
)) |
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.
If we are in this edge case, will it still check whether the dimensions are correct?
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.
Yes, because the check for that is at the conversion step. So it will still get skipped if the dimensions don't match.
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.
LTGM!
Related to: Fixes #368
Description
from_Seurat()
and skip if they don't match theAnnData
Checklist
Before review
Before merge
NEWS