i have following coordinate file
chr1 329728 329839 - chr1 330066 330757 - chr1 581256 581357 +
from this file i want to derive specific nucleotides such that for coordinate 329728 i should get 2 nucleotides of 329728 and 329729 coordinate (i.e one nucleotide from this coordinate along with next nucleotide) and for 329839, 2 nucleotides 329838 and 329839 ( i.e one nucleotide from this coordinate along with one previous nucleotide)
can anyone kindly suggest command/script/tool for this purpose???
kind help will highly be appreciated. many thanks