bayesrx / SpaceX

SpaceX: Gene Co-expression Network Estimation for Spatial Transcriptomics
https://satwikach.github.io/SpaceX.github.io/
16 stars 2 forks source link

Error related to max and min values #8

Open mvereten opened 1 year ago

mvereten commented 1 year ago

Dear SpaceX developers,

I've run into the following error on the 33rd step/iteration/location(?) of the code, as follows:

" Error in seq.default(a_min, a_max, length=10): 'from' must be a finite number In addition: Warning messages: 1: In max(a) : no non-missing arguments to max; returning -Inf 2: In SpaceX(X,L[,c(1:2)],L[,3],sPMM = FALSE, Post_process = TRUE,: NaNs produced 3: In min(a): no non-missing arguments to min; returning Inf "

I've checked, and the matrix X doesn't have any missing elements , neither does L.

Is this something you could comment on?

Thanks, Maria

SatwikAch commented 1 year ago

I think one of the cluster sizes is becoming very small (less than 3 to be specific) with the subset version of the whole dataset. It needs at least 3 spatial locations for each of clusters to estimate the length scale parameter of the spatial kernel. Please feel free to reach out if you run into any other issue.