Closed amora197 closed 2 years ago
Thanks for your comment. These suggestions are well-motivated, but you may note that the workflow source code has not changed in 7 years. I think the citation to this github repo is probably the best one can do for this code base. You might post the question about plotting CNV data to support.bioconductor.org, as there might be a more recently maintained package that addresses this task, that would be easier to cite.
Any need for further work here @amora197 ? I am sorry that working on this workflow is out of scope at the moment but if you have an urgent need perhaps more could be done.
Hello,
I'm currently trying to replicate the example code for getting a CNV plot, using both the RCNV_seq.R and RCNV_seq-helper.R scripts with the tumor and normal bam files of chromosome 4 that were provided for testing. My goal is to use this tool to visualize genomic data of crops and detect CNVs.
While using RCNV_seq.R, I would run
cnv <- cnv.cal(as.countsfile(chr4), log2=log2, annotate=annotate)
and get the following error:I noticed that the
as.countsfile( )
function was defined in the RCNV_seq-helper.R file. After some troubleshooting, I understood that thechr4
object in RCNV_seq.R is an S4 object that is been tried to be converted into a tabulated file using theas.countsfile( )
function. This tab file is in turn needed as a parameter/input in thecnv.cal( )
function from the cnv.R file.In order to get around this error and replicate the CNV plot, I had to edit the
as.countsfile( )
function in RCNV_seq-helper.R as follows:Original
as.countsfile( )
code:Edited
as.countsfile( )
code:With the custom edits, I was able to replicate the CNV plot, but my wish is to not use a custom-edited R script of an established tool when it comes to publishing. I am fairly new to R and do not know how I may be affecting the functionality/robustness of the tool. This leads to my two requests:
as.countsfile( )
function in RCNV_seq-helper.R file be fixed to handle the extraction from S4 objects and convert the data into a tab file?Thank you ahead of time for your help. Have a good one!