Hi all,
I am using cn.mops Bioconductor package for analysis of CNV in exome-seq data. But whever I run referencecn.mops
, the program throws an error:
Error in strand(input) :
error in evaluating the argument 'x' in selecting a method for function 'strand': Error: object 'input' not found
I tried changing strand information manually, created GRanges object manually , but nothing works. But, if I use the same GRanges object with the function cn.mops - it works flawlessly without any error.
Any help is appreciated.
edit: My Command -
aml.cn.ref=referencecn.mops(cases=aml.counts[,2:3],controls=aml.counts[,1],parallel=4,segAlgorithm="DNAcopy")
where, aml.counts
is a GRanges object with 3 meta data column representing the read counts for bait regions. 1st meta data column is for control where 2nd and 3rd are for tumor. I have also tried with single case (tumor), but it gives me the same error.
Thank you.
What is the exact command that you're issuing? The error indicates that you're just not calling the function correctly.
Hi Devon,
Thank you. I have edited my question with the command. Other arguments were left for default.
Do
strand(IRanges::sort(aml.counts[,2:3]))
andstrand(IRanges::sort(aml.counts[,1]))
produce the same error? Also, what's the output ofsessionInfo()
? I'm not entirely sure how this error should even be possible from looking at the code.Hi Devon,
Those commands did not produce any sorta error. Its very confusing now, the same object can be run be run with normal
cn.mops
but fails withreferencecn.mops
. However, mysessionInfo()
is as below.Yup ! Did the trick. I was still using a year old
bioC
(so dumb of me). Updated both R and bioC with new version, now its working !!Thank you :)