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

Part2-Analysis issue #11

Open
fxm200013 opened this issue Mar 22, 2023 · 1 comment
Open

Part2-Analysis issue #11

fxm200013 opened this issue Mar 22, 2023 · 1 comment

Comments

@fxm200013
Copy link

I am stuck in part2.

I get this error.

RRuntimeError: Error in (function (filename = "Rplot%03d.png", width = 480, height = 480, :
Graphics API version mismatch

I am running it on a cluster and I am using ipython to run it instead of python

These are my files

Seq2_trial1-networks-part2.txt
run_part2.txt

@melomcr
Copy link
Owner

melomcr commented Mar 23, 2023

It looks like you exported a jupyter notebook into a text file, which is already something that can cause issues with jupyter cell magics, but you kept the initialization of the rpy2 package and R modules without using them. Since your error is related to an R runtime and its graphical interface, I would suggest commenting out all cell magics executions related to 'R'.
That said, I have no idea why your script would be calling a graphics api.
You are also loading nglview and ipywidgets without using them, and both have graphics outputs, so maybe remove those as well.

If you do want to add R analysis and produce plots similar to the ones in the tutorial, I provided an alternative approach for using R analysis through a CLI (for remote execution in a cluster, like you are doing) in the CLI version of the tutorial Step 2. This does not rely on a graphical interface, but will still save plots to file for later analysis and publication.

The DyNetAn package version 2.0 introduced API changes, so make sure you are using the matching version of the tutorial. If your pipeline used DyNetAn version 1.2, make sure you get the tutorial version 1.2.

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