Skip to content

Commit

Permalink
Merge pull request #740 from mingl1997/devel
Browse files Browse the repository at this point in the history
Updated description and Seurat functions
  • Loading branch information
joshua-d-campbell authored Jan 13, 2024
2 parents b8bb6fe + b7f209d commit 2b43412
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 2b43412

Please sign in to comment.