-
Notifications
You must be signed in to change notification settings - Fork 1
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
manipulate GenomicInteractions object #5
Comments
Hi, The GenomicInteractions object stores region information as a We don't recommend modifying a GenomicInteractions object in place, but if you want to create a new GenomicInteractions object I would probably suggest using this approach:
You can easily create GRanges from a data frame using the |
Thank you for your comments.
Error in (function (classes, fdef, mtable) : I've also tried by making both counts and types as metadata
However, I'm still getting error:
I'm not sure how other column can be added as metadata except counts here. Thanks! |
Is your "counts" column encoded as character by any chance? try If that doesn't solve it, please provide a reproducible example with an example BEDPE file and/or an example of what your |
Hi,
I'm wondering if I can modify GenomicInteractions object.
For example,
data <- makeGenomicInteractionsFromFile(f, type="bedpe")
I was able to access counts via data$counts, however not for any other columns (such as seqnames and ranges).
I've tried converting object to data frame using as.data.frame(data). However, I'm not sure how to convert it back to GenomicInteractions object after the modification.
Your advice will be appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: