Hi, I would be very grateful for your help with this:
I am trying to create a CopyKit object using a segment mean ratios matrix and a genomic ranges scaffold (a Granges object made using GenomicRanges). The length of the matrix and GenomicRanges objects are the same.
Error in validObject(.Object) :
invalid class “CopyKit” object: invalid object for slot "consensus" in class "CopyKit": got class "list", should be or extend class "data.frame"
I was wondering if you knew how best to address the error?
Hi, I would be very grateful for your help with this:
I am trying to create a CopyKit object using a segment mean ratios matrix and a genomic ranges scaffold (a Granges object made using GenomicRanges). The length of the matrix and GenomicRanges objects are the same.
Below is an example of part of the matrix:
Cell1 Cell2 Cell3 Cell4 Cell5 Cell6 Cell7 Cell8 Cell9 Cell10 Cell11 Cell12 [1,] 2 2 2 2 2 2 2 2 2 2 2 2 [2,] 2 2 2 2 2 2 2 2 2 2 2 2 [3,] 2 2 2 2 2 2 2 2 2 2 2 2
And the code I am using:
obj <- CopyKit(list(segment_ratios = count_matrix), rowRanges = genomic_ranges_scaffold)
And the error I am getting:
Error in validObject(.Object) : invalid class “CopyKit” object: invalid object for slot "consensus" in class "CopyKit": got class "list", should be or extend class "data.frame"
I was wondering if you knew how best to address the error?
Thank you!