I noticed that the current method of subsetting uses grep which was problematic for my sample names because my coverage bed including sample names like Sample11, Sample 111, Sample112, etc., and grep matched Sample11 to Sample11, Sample111, Sample112, etc.
I changed the code in those lines to the following:
using which() instead of grep() to index, and this corrected the inappropriate multimatching of sample names, resolving the problem. You may want to consider changing the way you index samples (from sample name) in lines 130-134 of CNView.R
Hi @RCollins13 ,
I recently ran into an error as follows:
I tracked the error to lines 130-134 of the current CNView.R code
I noticed that the current method of subsetting uses grep which was problematic for my sample names because my coverage bed including sample names like Sample11, Sample 111, Sample112, etc., and grep matched Sample11 to Sample11, Sample111, Sample112, etc.
I changed the code in those lines to the following:
using which() instead of grep() to index, and this corrected the inappropriate multimatching of sample names, resolving the problem. You may want to consider changing the way you index samples (from sample name) in lines 130-134 of CNView.R
Best, Steve