Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BEAM Error #508

Open
fightingevery opened this issue Mar 13, 2024 · 3 comments
Open

BEAM Error #508

fightingevery opened this issue Mar 13, 2024 · 3 comments

Comments

@fightingevery
Copy link

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
Copy link

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

@brwaang55
Copy link

brwaang55 commented Mar 30, 2024

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants