You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run normalization on an integrated Seurat object. I was able to run runEscape with no problem, but when I try performNormalization I'm getting a sparce->dense coercion warning/error. Here is my normalization command:
all_int <- performNormalization(all_int, assay = "escape.ssGSEA",
+ gene.sets = final_mouse_GO,
+ make.positive = TRUE)
[1] "Calculating features per cell..."
[1] "Normalizing enrichment scores per cell..."
Warning message:
In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.2 GiB
When I check my assays (head(all_int@assays)) ssGSEA_normalized is generated with the same number of features and cells as ssGSEA (not normalized), but I don't think normalization has been performed correctly. When I previously ran this dataset normalization took at least 10 hours; this warning is occurring right after the "Normalizing enrichment scores per cell" step starts and halts the process.
Output of the escape portions of head(all_int@assays):
$escape.ssGSEA
Assay (v5) data with 10213 features for 29088 cells
First 10 features:
GOBP-10-FORMYLTETRAHYDROFOLATE-METABOLIC-PROCESS, GOBP-2-OXOGLUTARATE-METABOLIC-PROCESS,
GOBP-2FE-2S-CLUSTER-ASSEMBLY, GOBP-3-PHOSPHOADENOSINE-5-PHOSPHOSULFATE-METABOLIC-PROCESS,
GOBP-3-UTR-MEDIATED-MRNA-DESTABILIZATION, GOBP-3-UTR-MEDIATED-MRNA-STABILIZATION,
GOBP-4-HYDROXYPROLINE-METABOLIC-PROCESS, GOBP-4FE-4S-CLUSTER-ASSEMBLY,
GOBP-5-PHOSPHORIBOSE-1-DIPHOSPHATE-METABOLIC-PROCESS, GOBP-9-CIS-RETINOIC-ACID-METABOLIC-PROCESS
Layers:
data
$escape.ssGSEA_normalized
Assay (v5) data with 10213 features for 29088 cells
First 10 features:
GOBP-10-FORMYLTETRAHYDROFOLATE-METABOLIC-PROCESS, GOBP-2-OXOGLUTARATE-METABOLIC-PROCESS,
GOBP-2FE-2S-CLUSTER-ASSEMBLY, GOBP-3-PHOSPHOADENOSINE-5-PHOSPHOSULFATE-METABOLIC-PROCESS,
GOBP-3-UTR-MEDIATED-MRNA-DESTABILIZATION, GOBP-3-UTR-MEDIATED-MRNA-STABILIZATION,
GOBP-4-HYDROXYPROLINE-METABOLIC-PROCESS, GOBP-4FE-4S-CLUSTER-ASSEMBLY,
GOBP-5-PHOSPHORIBOSE-1-DIPHOSPHATE-METABOLIC-PROCESS, GOBP-9-CIS-RETINOIC-ACID-METABOLIC-PROCESS
Layers:
data
I've found recommendations on Google to check/change the memory limit using memory.limit(), but it's no longer supported in my version of R.
Any thoughts about what's happening would be greatly appreciated.
Thanks!
Samantha
The warning is saying that the sparse matrix that the enrichment scores are stored in is being converted to a dense matrix to calculate the normalized values. This does require more memory for the calculation, but does speed up the normalization process substantially. Which is probably why you are seeing a difference when using v2.2.2.
In summary - I don't think you need to worry about it unless your system is taxed to the limit in terms of memory.
Hello,
I'm trying to run normalization on an integrated Seurat object. I was able to run
runEscape
with no problem, but when I tryperformNormalization
I'm getting a sparce->dense coercion warning/error. Here is my normalization command:When I check my assays (
head(all_int@assays)
) ssGSEA_normalized is generated with the same number of features and cells as ssGSEA (not normalized), but I don't think normalization has been performed correctly. When I previously ran this dataset normalization took at least 10 hours; this warning is occurring right after the "Normalizing enrichment scores per cell" step starts and halts the process.Output of the escape portions of
head(all_int@assays)
:I've found recommendations on Google to check/change the memory limit using
memory.limit()
, but it's no longer supported in my version of R.Any thoughts about what's happening would be greatly appreciated.
Thanks!
Samantha
SessionInfo:
The text was updated successfully, but these errors were encountered: