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

add debug snakefile and directory #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhiqianx
Copy link

Added debug snakefile to test for the weird behavior of ML analysis code is issue #98

@agitter
Copy link
Collaborator

agitter commented Nov 3, 2023

I tested this locally on my Windows 10 machine in the spras conda environment

git checkout zhiqianx/master
cd ML_debug/
snakemake --cores 1

These are the output images, which all look distinct as expected.
output_1
output_2
output_3

There was this warning

ML_debug\Snakefile:29: UserWarning: Starting a Matplotlib GUI outside of the main thread will likely fail.

I believe we need to add

plt.switch_backend('Agg')

after importing pyplot to remove that.

When I instead run with multiple cores I can't even generate output successfully

snakemake --cores 3
WARNING: QApplication was not created in the main() thread.
WARNING: QApplication was not created in the main() thread.
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Maybe this gives a clue to the error? @zhiqianx are you to run this example with 3 cores?

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

Successfully merging this pull request may close these issues.

2 participants