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

ERROR 'The truth value of a DataFrame is ambiguous' #25

Open
wook2014 opened this issue Nov 1, 2023 · 0 comments
Open

ERROR 'The truth value of a DataFrame is ambiguous' #25

wook2014 opened this issue Nov 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@wook2014
Copy link

wook2014 commented Nov 1, 2023

Description of the bug

An error occurred when running with spliz nextflow pipeline

ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

It seemed that the problem can be located in file calc_splizvd.py line 387

df["cov"] = df["gene"].map(grouped.apply(lambda x: x['z_Start'].cov(x['z_End'])))

And it should be like this

df["cov"] = df["gene"].map(grouped.apply(lambda x: x['z_Start'].cov(x['z_End'])).to_dict())

The very same problem also exists as mentioned in juliaolivieri/SpliZ_pipeline#10

@wook2014 wook2014 added the bug Something isn't working label Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant