cole-trapnell-lab / monocle-release

277 stars 116 forks source link

BEAM Error #508

Open fightingevery opened 6 months ago

fightingevery commented 6 months ago

Hi, I am running BEAM, and my data is such that there are two branch points with four resulting branches or lineages. BEAM_res <- BEAM(cds[ordergene,], branch_point = 2, cores = 2)

I got this error: Error in if (progenitor_method == "duplicate") { : the condition has length > 1

Could somebody explain what this means, and how can I solve it? Thanks!!

XILOUYUE7 commented 6 months ago

I'm facing the same issue, and don't know how to resolve it.

brwaang55 commented 6 months ago

This happens because progenitor_method is a vector by default, while the logical asks for a string. You can solve it by passing in progenitor_method as an argument to the call for BEAM. This should work:

BEAM_res <- BEAM(cds[ordergene,], branch_point = 2, cores = 2, progenitor_method = 'duplicate')

XILOUYUE7 commented 6 months ago

This happens because progenitor_method is a vector by default, while the logical asks for a string. You can solve it by passing in progenitor_method as an argument to the call for BEAM. This should work:

BEAM_res <- BEAM(cds[ordergene,], branch_point = 2, cores = 2, progenitor_method = 'duplicate')

Following the code you provided, it ran successfully, thank you very much!