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

pge NaN output #44

Open
chirrie opened this issue Sep 26, 2024 · 0 comments
Open

pge NaN output #44

chirrie opened this issue Sep 26, 2024 · 0 comments

Comments

@chirrie
Copy link

chirrie commented Sep 26, 2024

When I run Popcorn fit option I get below results and I can't figure out the reason. I have tried different gwas data but I get same results.
Val (obs) SE Z P (Z)
h1^2 0.000000 0.000128 0.000000 1.000000e+00
h2^2 0.068049 0.010801 6.300318 2.970353e-10
pge NaN NaN NaN NaN

Their is a warning message as below:
You are setting values through chained assignment. Currently this works in certain cases, but when using Copy-on-Write (which will become the default behaviour in pandas 3.0) this will never work to update the original DataFrame or Series, because the intermediate object on which we are setting values will behave as a copy.
A typical example is when you are setting values in a column of a DataFrame, like:

df["col"][row_indexer] = value

Use df.loc[row_indexer, "col"] = values instead, to perform the assignment in a single step and ensure this keeps updating the original df.

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy

self.res['Z']['pg'] = (1.0-self.res['Val (obs)']['pg'])/self.res['SE']['pg']

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

1 participant