Open MengjurJ opened 1 year ago
Hi,
Can you show me, how your cell_pt0 object looks like? Maybe there is something wrong with it :)
cell_pt0 is a data.frame, as follows:
# B.cell CD8.T DCs Macrophage Monocyte NK Plasma activate.CD4.T naive.CD4.T
#sample1 0.1242 0.1366 0.0426 0.1068 0.2130 0.0976 0.0132 0.1636 0.1024
Hi,when I was ready to simulate the pseudo bulk samples using 'custom' scenario, it reported an error.
Error: BiocParallel errors 1 remote errors, element index: 1 1 unevaluated and other errors first remote error: invalid 'type' (character) of argument
mycode:
simulation <- SimBu::simulate_bulk(data = ds, scenario = "custom", custom_scenario_data = cell_pt0, scaling_factor = "NONE", ncells=3000, nsamples = 2, BPPARAM = BiocParallel::MulticoreParam(workers = 4), run_parallel = F) ############ However, I can run the next code successfully when use the same data
mycode2:
simulation <- SimBu::simulate_bulk(data = ds, scenario = "random", custom_scenario_data = cell_pt0,
scaling_factor = "NONE", ncells=2000, nsamples = 1, BPPARAM = BiocParallel::MulticoreParam(workers = 4),
run_parallel = TRUE)
Now,how to deal with the problem?