-
Notifications
You must be signed in to change notification settings - Fork 166
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 in plot.new() : figure margins too large #533
Comments
Hi @745757 , Which version of infercnv are you using? Looking at the log or the backup of the object at step 14, what size is your matrix?
Regards, |
@GeorgescuC |
Hi @axiba053 , Are you running the latest version of infercnv, or a somewhat recent version? If you are on a Linux machine, can you try running If this doesn't solve the issue, what are the commands you are running? And would you be able to share the data privately? (the backup of the object at the step where the plotting error occurs) Regards, |
Hello, When I run the code 'infercnv::run(...)' in Linux with the big data "dim() ->18965,68431", it will occurs the following Error "Error in plot.new() : figure margins too large", and it show the following calls "Calls: run ... image -> image.default -> plot -> plot.default -> plot.new". While I try running options(bitmapType="Xlib") before trying to plot again, it shows the following Error "Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG" and it show the following calls "Calls: run -> plot_subclusters -> plot_cnv -> png" I didn't find an effective solution, How can I resolve this issue? |
This was resolved when I used the earlier version 12.0 |
Hi @hecunzou , @745757 , Regards, |
Hi, GeorgescuC
I'm using the version 1.16.0, and using infercnv on a Linux server.
When I run the code 'infercnv::run(...)' in Linux server with the big data "dim() ->18965,68431", even, the cells number (the number of column) more than 50000, it will occurs the following Error "Error in plot.new() : figure margins too large", and it show the following calls "Calls: run ... image -> image.default -> plot -> plot.default -> plot.new". Meanwhile, in the results, it don't have the following files/figures, including:"preliminary.infercnv_obj", "infercnv.preliminary.png", "run.final.infercnv_obj", "infercnv.png" ...
While I try running options(bitmapType="Xlib") before trying to plot again, it shows the following Error "Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG" and it show the following calls "Calls: run -> plot_subclusters -> plot_cnv -> png". Meanwhile, in the results, it don't have the above files/figures.
Now, I try to cut down the number of cells. This was resolved when I run the code 'infercnv::run(...)' in Linux server with the number of column less than 45000.
…------------------ Original ------------------
From: ***@***.***>;
Date: Fri, Jun 16, 2023 00:24 AM
To: ***@***.***>;
Cc: ***@***.***>; ***@***.***>;
Subject: Re: [broadinstitute/infercnv] Error in plot.new() : figure margins too large (Issue #533)
Hi
@hecunzou ,
Which version of infercnv are you using? When using the "Xlib" change, are you running R on your current machine, or on a server your are connected to? If you are using a server, have you also enabled X11 forwarding when connecting to it?
@745757 ,
Which version were you using prior to changing to 1.12.0? To have an idea of what change might have introduced the issue.
Regards,
Christophe.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I am runnning inferCNV 1.16.0 and have the same error after setting
Here is the code I use:
Note that there are a lot of clusters (17) as reference and I had initially the error: How can we fix that issue? |
When I run the code in Linux
infercnv_obj = infercnv::run(infercnv_obj,
Cutoff = 0.1,
out_dir="infercnv",
cluster_by_groups=TRUE,
denoise=TRUE,
HMM=TRUE,
num_threads=32)
In step 14, the following Error occurs: Error in plot.new() : figure margins too large
Unfortunately, I didn't find an effective solution
The text was updated successfully, but these errors were encountered: