RCollins13 / CNView

Visualization and annotation of CNVs from population-scale whole-genome sequencing data
MIT License
69 stars 11 forks source link

Unable to run CNView.R #9

Open GreeshmaThulasi opened 6 years ago

GreeshmaThulasi commented 6 years ago

Hi, I created a .bed file for a single sample as, Chr Start End sampleNA-78 chr1 10173 10230 1 chr1 10458 10603 1 chr1 11081 11227 1 chr1 11228 11256 1 chr1 11854 12022 1 chr1 12646 12780 1 chr1 12792 12837 1 chr1 12837 12858 2 chr1 12858 12914 3 chr1 12914 12915 2 chr1 12915 12955 3 chr1 12955 12963 2 chr1 12963 12964 1 chr1 12964 12984 2 chr1 12984 13034 1 chr1 13447 13512 3 chr1 13512 13592 4 chr1 13592 13661 1 chr1 13794 13917 1 when I executed CNView.R as, Rscript /home/ngslab/Downloads/CNView-master/CNView.R 21 35919400 36903600 sampleNA-78 /home/ngslab/src/samtools/bam_files/new.bed sampleAexampleplot.pdf --title "exampleplot" But, I'm getting the following error, Loading required package: optparse Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘optparse’ Error in make_option(c("-c", "--compression"), type = "integer", default = NULL, : could not find function "make_option" Execution halted Please help me to resolve the problem.

RCollins13 commented 6 years ago

Hi @GreeshmaThulasi,

Thanks for your interest in CNView.

The error is because the optparse library is not installed. If you need help solving this problem, I'd recommend starting here.

Aside from the error, there are a few issues with this use case that are worth mentioning:

Hope this helps, Ryan