Posts

Showing posts from March 4, 2019

R: How to index R objects within a for loop (Seurat)

Image
0 I'm trying to use a for loop to simplify the following code: a1 <- CreateSeuratObject (raw.data = a1.data) a2 <- CreateSeuratObject (raw.data = a2.data) a3 <- ... I've tried the following: samples <- c("a1", "a2", "a3") samples.data <- c("a1.data", "a2.data", "a3.data") for (i in samples) { for (j in samples.data) { i <- CreateSeuratObject(raw.data = j) } } But it returns the following error: Error in base::colSums(x, na.rm = na.rm, dims = dims, ...) : 'x' must be an array of at least two dimensions The CreateSeuratObject function essentially tries to read the samples.data vector instead of indexing the corresponding item in the vector. How can I fix this?

How virtualization technology shutdown the OS?

Image
1 I search something about this question just like KVM, ACPI etc. I guess that OS implement some interface (like ACPI?), it can receive some kind of signal or command and shutdown itself. And the host through virtualization technology send a signal or command to OS of instance. My understanding is right? Can someone give me a direction, thx. virtualization kvm acpi share | improve this question asked Nov 15 '18 at 6:36 Fred Fred 21 7 add a comment  |