readDepth icon indicating copy to clipboard operation
readDepth copied to clipboard

Error in "rdo.mapCor.gcCor = rd.gcCorrect(rdo.mapCor)"

Open ShuZhang0917 opened this issue 5 years ago • 1 comments

Hi~ When I run "rdo.mapCor.gcCor = rd.gcCorrect(rdo.mapCor)", I got the error "Error in { : task 1 failed - "non-numeric argument to binary operator". I downloaded hg19 annotations from https://xfer.genome.wustl.edu/gxfer1/project/cancer-genomics/readDepth/index.html. I don't know if it is something wrong with my bed files in the reads folder. Could you please give me some instructions. Thank you!

ShuZhang0917 avatar Oct 19 '20 09:10 ShuZhang0917

It is a issue about R version. I did a small test and found It works for R 3.5 but NOT WORKS for R 4.0.

BiocManager::install(c("IRanges","foreach","doMC","DNAcopy"))

  • Installed readDepth manually:

git clone https://github.com/chrisamiller/readDepth.git R CMD build readDepth R CMD INSTALL readDepth_0.9.8.5.tar.gz

Good lock!