Skip to content

Commit

Permalink
updated seuratFunctions and DESCRIPTION file for SeuratObject
Browse files Browse the repository at this point in the history
  • Loading branch information
liuming1997 committed Jan 13, 2024
1 parent d9bbb64 commit b7f209d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Suggests:
RColorBrewer,
fastmap (>= 1.1.0),
harmony,
SeuratObject,
optparse
VignetteBuilder: knitr
URL: https://www.camplab.net/sctk/
Expand Down
5 changes: 3 additions & 2 deletions R/seuratFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -1621,12 +1621,13 @@ convertSCEToSeurat <-
colnames(decontM) <- colnames(seuratObject)
rownames(decontM) <- gsub('_', '-', rownames(decontM))
if(seurat.version >= 5.0){
# CreateAssayObject and similar were moved to SeuratObject now (added it to suggests)
seuratObject[["decontXcounts"]] <-
Seurat::CreateAssay5Object(counts = .convertToMatrix(decontM)) #warning currently: Missing or unexported object: 'Seurat::CreateAssay5Object'
SeuratObject::CreateAssay5Object(counts = .convertToMatrix(decontM))
}
else{
seuratObject[["decontXcounts"]] <-
Seurat::CreateAssayObject(counts = .convertToMatrix(decontM))
SeuratObject::CreateAssayObject(counts = .convertToMatrix(decontM))
}

}
Expand Down
Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.

0 comments on commit b7f209d

Please sign in to comment.