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

RuntimeWarning on write-results-file, all cellular_prevalence = 1 #5

Closed
brucemoran opened this issue Oct 16, 2020 · 2 comments
Closed

Comments

@brucemoran
Copy link

Hi,

Thanks for the python3 pyclone, much faster than previous and nice to have on py3.

Wanted to ask about results from a primary/metastases case where I get cellular_prevalence of 1 for every mutation in every sample, and all assigned to cluster_id of 0.

pyclone-vi write-results-file     -i OVBM_test.pyclone-vi-fit.h5 -o OVBM_test.pyclone-vi-fit.tsv

post_process.py:63: RuntimeWarning: invalid value encountered in sqrt
  std = np.sqrt(var)

Presume (/hope) that the warning has something to do with the results that are written(?)

Appreciate any feedback you can give me.

Thanks,

Bruce

@aroth85
Copy link
Collaborator

aroth85 commented Oct 16, 2020

Hi Bruce,

Yes, it is likely an error writing the output. In some cases I believe the variational posterior is very peaked at a single value, so computing the variance becomes undefined or numerically unstable. It is related to this bug #3.

Hopefully I can get a fix soon. But it should not affect much, as the error would be in the confidence intervals not the means of cellular prevalence estimates. Clustering should also be fine.

Cheers,
Andy

@brucemoran
Copy link
Author

Hi Andy,

thanks for getting back to me.

I get the same error with original PyClone on the same data, but PyClone gives 13 clusters (although majority are size only 1 or 2), whereas pyclone-vi gives 1 cluster.

Bruce

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