Entering edit mode
3.4 years ago
rrapopor
▴
40
Hi,
I'm looking for a way to validate that an input file to R is a correct BED file. I don't really mind about the file separator, but I want to make sure that I have 3 columns, 1 is "chrX" and the 2 others are numbers, where the second column is smaller than the the third.
Any suggestions?
Thanks!
I never used it but bedr may help you.
An useful tool for reads most of the bioinformatic files is
rtracklayer
, you can use it asimport("yourfile", format="bed")