MonashBioinformaticsPlatform / polyApipe

polyApipe
GNU Lesser General Public License v2.1
13 stars 6 forks source link

'x' must be an array of at least two dimensions #7

Open wyt14 opened 4 months ago

wyt14 commented 4 months ago

Dear author, I encountered the following error while running the command. Could you please provide me with some guidance? Thank you.

> res = do_pipeline(
+     out_path      ="/data/polyApipe/LUAD", 
+     counts_file_dir  = "/data/polyApipe/LUAD/polyAbam_counts/",
+     batch_names   =c("BT1290","BT1291"),
+     peak_info_file="polyAbam_polyA_peaks.gff", 
+     organism      ="human_ens100",
+     cells_to_use  =cells_to_use,
+     cell_name_func=cell_name_func
+     )

-- 1/4 load -- Loading /data/polyApipe/LUAD/polyAbam_counts//BT1290.tab.gz Loaded 139654 x 1276 matrix of counts
Loading /data/polyApipe/LUAD/polyAbam_counts//BT1291.tab.gz Loaded 180737 x 1292 matrix of counts
-- 2/4 assign -- -- 3/4 weitrices -- 422517 peaks in 2568 cells Error in rowSums(assay(peaks_se_relevant, "counts")[, good_cells, drop = F] > : 'x' must be an array of at least two dimensions In addition: Warning message: In .merge_two_Seqinfo_objects(x, y) : Each of the 2 combined objects has sequence levels not in the other:

pfh commented 3 months ago

My only guess is: polyApiper assumes the ENSEMBL naming convention for chromosomes, ie no "chr" in the name. You might need to do some hacking to achieve this.

I have to apologise, this project is on hiatus, I don't think I'm going to be much more help as I don't have time to maintain it at the moment.

shimi-ly commented 3 months ago

Hi, I'm experiencing the same error message, have you solved it yet?