This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to extact first 100 lines of an indexed BED file

I would like to know is there a way to extract lines of an indexed BED file, when you do not have the original BED file. I have an indexed bed file, from which I would like to subset it to a toy bed file for testing a script. Any suggestions are greatly appreciated!!

bed genome

1 answer

So you only have the index itself but not the original file? Then this is not possible. The index is simply like a map that indicates how to take shortcuts within the original file in order to retrieve certain chunks without searching the entire file. It does not contain any actual content from the original file though.

Log in to answer this question.