Validate input file as BED file
0
0
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!

R BED • 1.4k views
ADD COMMENT
2
Entering edit mode

I never used it but bedr may help you.

ADD REPLY
2
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2658 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6