Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/classifySex.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ classifySex<-function(x, genome=NULL, qc = TRUE)
{
# Perform some checks on the data
if(is.null(x)) stop("Counts matrix missing")
x <- as.matrix(x)
# x <- as.matrix(x)
if(is.null(genome)){
message("Genome not specified. Human genome used. Options are 'Hs' for
human and 'Mm' for mouse. We currently don't support other genomes.")
Expand Down
2 changes: 1 addition & 1 deletion R/findMFDoublet.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ findMfDoublet<-function(x, genome=NULL, qc = FALSE)
{
# Perform some checks on the data
if (is.null(x)) stop("Counts matrix missing")
x <- as.matrix(x)
# x <- as.matrix(x)

if (is.null(genome)){
message("Genome not specified. Human genome used. Options are 'Hs' for
Expand Down
2 changes: 1 addition & 1 deletion R/lognormCounts.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ lognormCounts <- function(x, log = TRUE, prior.count = 0.5, lib.size)
# Belinda Phipson
# 26 February 2020
{
x <- as.matrix(x)
# x <- as.matrix(x)
#lib.size <- colSums(x)
M <- median(lib.size)
if(log){
Expand Down
2 changes: 1 addition & 1 deletion R/preprocess.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
#'
preprocess<- function(x, genome=genome, qc=qc){

x <- as.matrix(x)
# x <- as.matrix(x)
row.names(x)<- toupper(row.names(x))

if (is.null(row.names(x))){
Expand Down
2 changes: 1 addition & 1 deletion R/preprocessDb.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

preprocessDb<- function(x, genome=genome, qc=qc){

x <- as.matrix(x)
# x <- as.matrix(x)
row.names(x)<- toupper(row.names(x))

if (length(unique(colnames(x))) != ncol(x)){
Expand Down