Open chenlingantelope opened 6 years ago
I got same error 'x not a data table’ in process 'main_process_pure_pbmc.R'. Error info:
1... Filtering mol info Sorting mol info Aggregating mol info .Subsampling Sorting Error in setkeyv(x, cols, verbose = verbose, physical = physical): x is not a data.table Traceback:
I tried to change with 'all_data_table <- as.data.table(all_data) ' Then, Error in: .downsample_gene_bc_mtx(all_json_table[[i]], all_data_table[[i]], : object 'reads' not found Have no idea.
Hi, I have the same issue here:
subsampled_purified_mats <- lapply(1:length(all_data), function(i) { # subsample the matrix to match tgt_rpc cat(sprintf("%d...\n", i)) .downsample_gene_bc_mtx(all_json[[i]], all_data[[i]], all_mol_info[[i]], tgt_rpc, 'conf_mapped_reads')[[1]] } ) 1... Filtering mol info Sorting mol info Aggregating mol info .Subsampling Sorting Error in setkeyv(x, cols, verbose = verbose, physical = physical) : x is not a data.table
This might be a system incompatability, but when I try to ran the code, it gave me an error about bc_gene_umi_subsampled not being a data table. Adding the setDT function fixes it.
setDT(bc_gene_umi_subsampled) setkey(bc_gene_umi_subsampled, barcode, gene)
Yes, this works. Need to update the ".downsample_gene_bc_mtx" function in the util.R
This might be a system incompatability, but when I try to ran the code, it gave me an error about bc_gene_umi_subsampled not being a data table. Adding the setDT function fixes it.