This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Validate input file as BED file

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!

r bed

An useful tool for reads most of the bioinformatic files is rtracklayer, you can use it as import("yourfile", format="bed")

0 answers

No answers yet.

Log in to answer this question.