... | ... |
@@ -546,7 +546,7 @@ setMethod( |
546 | 546 |
|
547 | 547 |
.logMessages( |
548 | 548 |
date(), |
549 |
- ".. Converting decontaminated matrix to ", class(counts), |
|
549 |
+ ".. Converting decontaminated matrix to", class(counts), |
|
550 | 550 |
logfile = logfile, |
551 | 551 |
append = TRUE, |
552 | 552 |
verbose = verbose |
... | ... |
@@ -1372,14 +1372,16 @@ simulateContamination <- function(C = 300, |
1372 | 1372 |
|
1373 | 1373 |
if (any(dupBarcode)) { |
1374 | 1374 |
.logMessages( |
1375 |
+ date(), |
|
1376 |
+ ".. ", |
|
1375 | 1377 |
sum(dupBarcode), |
1376 |
- " columns in the background matrix were removed as they were found in", |
|
1378 |
+ " cells in the background matrix were removed as they were found in", |
|
1377 | 1379 |
" the filtered matrix.", |
1378 | 1380 |
logfile = logfile, |
1379 | 1381 |
append = TRUE, |
1380 | 1382 |
verbose = verbose |
1381 | 1383 |
) |
1382 |
- background <- background[, !(dupBarcode)] |
|
1384 |
+ background <- background[, !(dupBarcode), drop = FALSE] |
|
1383 | 1385 |
} |
1384 | 1386 |
return(background) |
1385 | 1387 |
} |