It's not really an issue but I am struggling a lot with the case.
Is it possible to convert an R data.frame to .bed format with tracklayer.
At the moment I am facing something like this ..
and I want to convert it into a bed file. I try to do it with the writing.table function, but I fail miserably by taking this error comment when I look at the intersect
Error: unable to open file or unable to determine types for file test_xRNA.bed
- Please ensure that your file is TAB delimited (e.g., cat -t FILE).
- Also ensure that your file has integer chromosome coordinates in the
expected columns (e.g., cols 2 and 3 for BED).
Please post questions like this on support.bioconductor.org in the future. I'd recommend using GenomicRanges::makeGRangesFromDataFrame() and passing the result to rtracklayer::export().
It's not really an issue but I am struggling a lot with the case. Is it possible to convert an R data.frame to .bed format with tracklayer. At the moment I am facing something like this ..
I have a data.frame that looks like this.
Created on 2022-07-29 by the reprex package (v2.0.1)
and I want to convert it into a bed file. I try to do it with the writing.table function, but I fail miserably by taking this error comment when I look at the intersect