File[] fs = d.listFiles();
for( int i=0; i<fs.length; i++ ){
File f= fs[i];
if(FileName.getExt(f).equals("bed")){
GenomicRegionsBuilder peaks= new BedReader(f).getGenomicRegionsBuilder();
SplicedBedReader sr= new SplicedBedReader(anno);
File od= new File(d+"/locate/"+ FileName.getBaseName(anno)+"/"+FileName.getBaseName(f));
SplicedRegionsLocator ll= new SplicedRegionsLocator(peaks, sr);
ll.writeToDir(od, "locate");