Scaling Data error on Seurat
1
1
Entering edit mode
3.5 years ago
Bios ▴ 10

Here's my code below. I don't know why scaling the data gives me an error. Any help will be appreciated. Thank you

ctrl.data <- Read10X(data.dir = "/Users/kech/Desktop/stim")

stim.data <- Read10X(data.dir = "/Users/kech/Desktop/stim")

ctrl.data <- Read10X(data.dir = "/Users/kech/Desktop/ctrl")

stim.data <- Read10X(data.dir = "/Users/kech/Desktop/stim")

ctrl <- CreateSeuratObject(raw.data = ctrl.data, project = "ASTHMA_CTRL", min.cells = 5)

ctrl@meta.data\$stim <- "CTRL"

ctrl <- FilterCells(ctrl, subset.names = "nGene", low.thresholds = 500, high.thresholds = Inf)

ctrl <- NormalizeData(ctrl)

ctrl <- ScaleData(ctrl, display.progress = F)

Error in if (display.progress) { : argument is not interpretable as logical In addition: Warning message: In if (display.progress) { :the condition has length > 1 and only the first element will be used

R RNA-Seq • 624 views
0
Entering edit mode

Please use the format bar to indicate code.

3
Entering edit mode
3.5 years ago
vinvan ▴ 50

Does setting display.progress = FALSE instead of display.progress = F help? Looks like you might have defined F already before this...

0
Entering edit mode

Thank you! It worked with display.progress = FALSE

0
Entering edit mode

Hello Biostars,

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.

Please do the same for your previous posts as well.