Skip to content

Commit

Permalink
responses to initial review
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro committed Dec 6, 2024
1 parent 248c1c1 commit 70fba8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions R/make-seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ sce_to_seurat <- function(
reducedDims(sce) <- reducedDims(sce) |>
purrr::map(\(mat) {
# insert underscore between letters and numbers in axis labels
names <- gsub("([A-Za-z]+)([0-9]+)", "\\1_\\2", colnames(mat)) |>
rd_names <- gsub("([A-Za-z]+)([0-9]+)", "\\1_\\2", colnames(mat)) |>
tolower()
colnames(mat) <- names
colnames(mat) <- rd_names
if (!is.null(attr(mat, "rotation"))) {
colnames(attr(mat, "rotation")) <- names
colnames(attr(mat, "rotation")) <- rd_names
}
return(mat)
})
Expand All @@ -93,9 +93,6 @@ sce_to_seurat <- function(
sce_meta$highly_variable_genes <- NULL # remove from metadata to avoid redundancy
}

# move rotation to feature.loadings


# convert and set functions depending on assay version requested
if (seurat_assay_version == "v5") {
create_seurat_assay <- SeuratObject::CreateAssay5Object
Expand Down
4 changes: 2 additions & 2 deletions man/sce_to_seurat.Rd

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

2 changes: 1 addition & 1 deletion man/sum_duplicate_genes.Rd

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

0 comments on commit 70fba8f

Please sign in to comment.