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' #10

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

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

wook2014 opened this issue Nov 1, 2023 · 2 comments

Comments

@wook2014
Copy link

wook2014 commented Nov 1, 2023

I used SpliZ for running my SICILIAN data and meet a problem about The truth value of a DataFrame is ambiguous. It seemed that the problem caused by loss of to_dict() in file rijk_score.py line 358 and line 390.
the code used to be:

df["cov"] = df["geneR1A_uniq"].map(grouped.apply(lambda x: x['z_A'].cov(x['z_B'])))
df["cov_{}".format(y)] = df["geneR1A_uniq"].map(grouped.apply(lambda x: x['z_A_{}'.format(y)].cov(x['z_B_{}'.format(y)])))

and it shoule be fixed to:

df["cov"] = df["geneR1A_uniq"].map(grouped.apply(lambda x: x['z_A'].cov(x['z_B'])).to_dict())
df["cov_{}".format(y)] = df["geneR1A_uniq"].map(grouped.apply(lambda x: x['z_A_{}'.format(y)].cov(x['z_B_{}'.format(y)])).to_dict())
@ssyshh
Copy link

ssyshh commented Dec 9, 2023

Hello, I am a beginner. I would like to ask what software do you use to process the files required by Spliz

@wook2014
Copy link
Author

Hello, I am a beginner. I would like to ask what software do you use to process the files required by Spliz

You can refer to https://figshare.com/articles/dataset/Tables_and_Data_for_SpliZ_Manuscript/14378819/1
This is the data provided by author. the 4 .pq file can absolutely correctly run with SpliZ.
I just tried to run SpliZ to make sure it worked on our HPC so I did not do more about it. But as far as I know it should be provided by some more information about cell type which might from Seurat or other single cell data analyse tools.

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

2 participants