scrublet
scrublet copied to clipboard
Error: ValueError: Expected 1D or 2D array, got 0D array instead
Dear scrublet developer,
I'm using srublet to detect doublets in my scRNA-seq sample. I've successfully used it in other samples but one that causes the following error. I'm wondering if you could help to solve the problem.
reading from: /Volumes/BIOINFORMATICS/projects/rachel2022/output/02_cellranger_count_expectedCells/QTau-2/outs/filtered_feature_bc_matrix Processing QTau-2 Preprocessing... Simulating doublets... Embedding transcriptomes using PCA... Calculating doublet scores... Warning: failed to automatically identify doublet score threshold. Run
call_doublets with user-specified threshold. Elapsed time: 22.9 seconds Traceback (most recent call last): File "scrublet_multi.py", line 31, in <module> np.savetxt(out_dir + sample + "_srublet.logic", predicted_doublets) File "<__array_function__ internals>", line 5, in savetxt File "/Users/tingtingzhao/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py", line 1380, in savetxt raise ValueError( ValueError: Expected 1D or 2D array, got 0D array instead
Thank you!