ArchR icon indicating copy to clipboard operation
ArchR copied to clipboard

Error in g$grobs[[legend]]: no such index at level 2, when calling peaks

Open nansne opened this issue 1 year ago • 5 comments

I encountered this error during call peaking, while the call peaking process has been completed. However, I got an error message that says "Error in g$grobs[[legend]]: no such index at level 2". and ggplot2 had been installed. image Has anyone encountered this situation before? Please advise,Thank you very much

nansne avatar May 31 '24 04:05 nansne

Hi @nansne! Thanks for using ArchR! Lately, it has been very challenging for me to keep up with maintenance of this package and all of my other responsibilities as a PI. I have not been responding to issue posts and I have not been pushing updates to the software. We are actively searching to hire a computational biologist to continue to develop and maintain ArchR and related tools. If you know someone who might be a good fit, please let us know! In the meantime, your issue will likely go without a reply. Most issues with ArchR right not relate to compatibility. Try reverting to R 4.1 and Bioconductor 3.15. Newer versions of Seurat and Matrix also are causing issues. Sorry for not being able to provide active support for this package at this time.

rcorces avatar May 31 '24 04:05 rcorces

Hi, @nansne Did you solve the problem? I encountered the same error.

KaiLi-2324 avatar Jun 08 '24 18:06 KaiLi-2324

This is related to the plotting function called by addReproduciblePeakSet

You can set plot = FALSE to avoid this error.

proj <- addReproduciblePeakSet(
    ArchRProj = proj, 
    groupBy = "Sample", 
    cutOff = 0.01,
    pathToMacs2 = pathToMacs2,
    plot = FALSE
)

At least, this worked for me.

lzj1769 avatar Jul 16 '24 18:07 lzj1769

I had the same issue with addDoubletScores, but after installing ggplot2 v3.4.2, it worked for me.

zqfang avatar Aug 28 '24 18:08 zqfang

I had the same issue with addDoubletScores, but after installing ggplot2 v3.4.2, it worked for me.

Your answer was helpful to me!

MYNong123 avatar Sep 19 '24 19:09 MYNong123

this issue is related to a function named ".fixPlotSize" in VisualizeData.R

a variable named "gl" make the plots produce no results

zjsyj avatar Dec 16 '24 03:12 zjsyj

this issue is related to a function named ".fixPlotSize" in VisualizeData.R

a variable named "gl" make the plots produce no results

oops, I didn't see the merge request when posting this comment

zjsyj avatar Dec 16 '24 03:12 zjsyj