ichorCNA icon indicating copy to clipboard operation
ichorCNA copied to clipboard

Plotting error

Open IanCodes opened this issue 1 year ago • 4 comments

I have used conda (v0.3.2 and 0.5.0), and the recommended installation method using R devtools for ichorCNA.
I used the runichorCNA.R script from version 0.3.2, as 0.5.0 on provides an R function in the script.

The script fails at the same place, where it is plotting to a PDF.

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘seqinfo’ for signature ‘"standardGeneric"’
Calls: plotSolutions ... seqlengths -> seqlengths -> seqlengths -> seqinfo -> <Anonymous>

Can anyone tell me the problem here? Thank you.

IanCodes avatar Sep 18 '23 14:09 IanCodes

Please check your input file type.

xiucz avatar Feb 05 '24 07:02 xiucz

Please check your input file type.

I met the same problem, what's your means the input file? The input file only .wig, right? Could you give me more detail for this bug? Thank you! Best wish

edceeyuchen avatar Mar 14 '24 08:03 edceeyuchen

@edceeyuchen Hi, can you please use this version https://github.com/GavinHaLab/ichorCNA instead? It seems that the GitHub repository is no longer maintained.

I apologize for any confusion. What I meant is that the chromosome types(UCSC, with "chr" or NCBI, without "chr") ) may not be a perfect match?

It's been a while since I last worked on the issue, and I might have forgotten some details. If you have any other questions, feel free to continue the discussion. ^_^

Best, xiucz

xiucz avatar Mar 15 '24 03:03 xiucz

This error message suggests that if the "seqinfo" is missing, the function tries to use the "standardGeneric" method instead. This error causes describing "NCBI" on the line "ichorCNA_genomeStyle" in config.yaml.

## load seqinfo 
# seqinfo <- getSeqInfo(genomeBuild, genomeStyle)
if (genomeBuild == "hg19" &  genomeStyle == "UCSC") {
  seqinfo <- readRDS("/restricted/projectnb/camplab/home/tmotegi/Work/231025_iChorCNA_test/ichorCNA/inst/extdata/seqinfo_hg19_ucsc.rds")
}
if (genomeBuild == "hg38" &  genomeStyle == "UCSC") {
  seqinfo <- readRDS("/restricted/projectnb/camplab/home/tmotegi/Work/231025_iChorCNA_test/ichorCNA/inst/extdata/seqinfo_hg38_ucsc.rds")
}

TomokiMotegi avatar Jun 05 '24 20:06 TomokiMotegi