Skip to content

Commit 230bac2

Browse files
committed
calcInteger knnSmooth warning
1 parent 62488a8 commit 230bac2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

R/calcInteger.R

+8
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ calcInteger <- function(scCNA,
5959
# args
6060
assay = match.arg(assay)
6161

62+
63+
if (!is.null(assay(scCNA, 'smoothed_bincounts'))) {
64+
warning("CopyKit detected that knnSmooth() has been performed.
65+
If working with knnSmooth datasets we recommend using assay segment_ratios:
66+
calcInteger(copykit, assay = 'segment_ratios')")
67+
}
68+
69+
# getting datasets
6270
if (assay == 'bincounts') {
6371
bin <- SummarizedExperiment::assay(scCNA, 'bincounts')
6472
}

0 commit comments

Comments
 (0)