I am trying to get the combined peaks from a list of objects in atac data and I am running into the following error.
GRanges objects don't support [[, as.list(), lapply(), or unlist() at the moment
My code is
combined.peaks <- reduce(c(peaks$sample1, peaks$sample2,
peaks$sample3, peaks$sample4
))
This was working a few days ago btw... Is this a new bug?
Thanks!
T
Use
GenomicRanges::reduce()
Please add a reproducible example via
dput
.This is obviously not reproducible for anyone that does not have your
fragments.tsv.gz
files. Please follow ATPoint's advice and usedput
on objects.We still do not know how exactly your GRanges objects look, that is why I asked for dput.
This works:
so if you need help provide data (not code, and not as a screenshot)
I am sorry for that. This is what my object looks like. Is this more useful to you for providing a solution?
Please show the output of
It's incomplete. Without a reproducible this thread is pointless.
This is a long output and it's not accepted by biostars to be posted. Can I send this to you via email?
Use a Gist when content is too large for Biostars