File od= new File(d+"/novel");
int side= 5000;
GenomicRegionsBuilder gbanno= new GenomicRegionsModifier(
new BedReader(anno).getGenomicRegionsBuilder()).getExtendedRegions(side, side);
File[] fs= d.listFiles();
for( int i=0; i<fs.length; i++ ){
File pf= fs[i];
if(FileName.getExt(pf).equals("bed")){
GenomicRegionsBuilder gbpeak= new BedReader(pf).getGenomicRegionsBuilder();
GetNovelPeaks gn= new GetNovelPeaks(gbpeak, gbanno);
File out= new File(od+"/novel_"+ pf.getName());
gn.writeToFile(out);
}