meichendong / SCDC

SCDC
42 stars 10 forks source link

Error running SCDC_prop #17

Open caiquanyou opened 4 years ago

caiquanyou commented 4 years ago

I got an Error when running SCDC_prop below:

> x_scdc_prop<-SCDC_prop(bulk.eset = x_bset,sc.eset = eset, ct.varname = 'cellType', + sample = 'samplesID',ct.sub = c('in_neuron', 'ex_neuron', 'oligodendrocyte', 'endothelial', + 'astrocyte', 'microglia'),iter.max = 1000,nu = 1e-04, + epsilon = 0.01) Error in y[y < q15] <- q15[y < q15] : NAs are not allowed in subscripted assignments

I do not know how to fix it ,could you please have any ideas? Best, Cqy

meichendong commented 3 years ago

Hi @caiquanyou , Sorry for the late response. Generally when you have this error, it might be that your single cell dataset 'samplesID' only has one level. In this case, we recommend you to use the function SCDC_prop_ONE() function instead of SCDC_prop() function. Please let me know if you have further questions. I can be reached by meichen@live.unc.edu.

Best, Meichen