-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with creating CopyKit object with external data #101
Comments
Hi, could you please provide a reproducible example? |
Hi, Pinging again for a reproducible example, if not possible, please close the issue. |
Hello, I'm having the same issue as @rmapbut. As I'm working with mouse data, I'm trying to follow the instructions for using external count data and scaffolds (https://navinlabcode.github.io/CopyKit-UserGuide/pre-processing.html#from-external-count-data-or-user-defined-scaffolds). When I input a counts matrix and genomic ranges object into CopyKit(), I get the following error: Error in validObject(.Object) : Reproducible example:
Thank you! |
Hi again, I managed to solve my issue. For anyone else with this problem, it seems the first argument should be passed specifically to the assays parameter.
It's buried in the code for function runCountReads, but it would be great if this were in the documentation too. Thanks. |
@AndreeaOber Thank you so so much for finding the solution and putting it here for other users. We will try to put that in the documentation. I suspect some of the plotting functions might breakdown with alternative genomes. Was that the case? If so let's us know. Thank you again though. Going into the code and finding the error is way beyond what we could ask for as developers and helps us immensely. |
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!
The text was updated successfully, but these errors were encountered: