tdw1221 / SCADIE

Other
8 stars 3 forks source link

Error with standard error estimation #3

Open tebbenk opened 1 year ago

tebbenk commented 1 year ago

Thanks for developing this great package! I was able to replicate the method with my own data up through the second last step: Iterate_W_H_full_general().

When using Estimate_sd_general(), I get the following error. I have checked the input list and it should all be in the correct format and I've changed the number for "jk_subsample" to match my own data. Can you advise on what else might be causing this issue?

Error in seq.default(1, n_sample) : 'to' must be a finite number In addition: Warning message: In min(ncol(input_list$bulk_full_1), ncol(input_list$bulk_full_2)) : no non-missing arguments to min; returning Inf

tdw1221 commented 1 year ago

the logic of this line of code is that the program learns number of samples (n_sample) from columns of two input matrices, sometimes your input matrix might be generically squeezed into a vector (by some functions) and the program was unable to calculate number of columns from this object, that's the most common cause of this error