Greetings all,
I am attempting to create bins/windows based on a genome file which contains data like the one below. I was wondering if anyone has encountered a program that can create windows for you based on intervals such as 100k, 10k, 50k.. etc. While I can simply manipulate VCFtools PI output to create the desired template, I would be interested in knowing if there is a package or program out there that can do this with data similar to the one below. I am not familiar with any tools that can do this but it would helpful to be pointed in the right direction.
Sample Data
Chromo Size
Chrm1 500000
Chrm2 400000
Desired outcome
Chromo Start End
Chrm1 1 100000
Chrm1 100001 200000
Chrm1 200001 300000
Chrm1 300001 400000
Chrm1 400001 500000
Chrm2 1 100000
Chrm2 100001 200000
Chrm2 200001 300000
Chrm2 300001 400000
Best,
GG