public static void main(String[] args) throws Exception { //debug
File f= new File("E:\\muxingu\\mystudy\\phd\\files\\anno\\bed\\hg19\\enhancers/human_unsort.bed");
File out= new File("E:\\muxingu\\mystudy\\phd\\files\\anno\\bed\\hg19\\enhancers/human_sorted.bed");
GenomicRegionsBuilder gb= new BedReader(f).getGenomicRegionsBuilder();
gb.sortAll();
new BedExporter(gb).writeToFile(out);
}