Skip to content

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
822 changes: 372 additions & 450 deletions R/Seurat.R

Large diffs are not rendered by default.

491 changes: 262 additions & 229 deletions R/SingleCellExperiment.R

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,14 @@ to_R_matrix <- function(mat) {
}
Matrix::t(mat)
}

self_name <- function(x) {
if (is.null(names(x))) {
x <- setNames(x, x)
} else if (any(names(x) == "")) {
is_missing <- names(x) == ""
names(x)[is_missing] <- x[is_missing]
}

x
}
94 changes: 52 additions & 42 deletions man/from_Seurat.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 22 additions & 35 deletions man/from_SingleCellExperiment.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading