File[] fs= d.listFiles();
for( int i=0; i<fs.length; i++ ){
File f= fs[i];
if(FileName.getExt(f).equals("bed")){
GenomicRegionsBuilder gb= new BedReader(f).getGenomicRegionsBuilder();
GenomicRegionsModifier gm= new GenomicRegionsModifier(gb);
gb= gm.getThreePrimeEnds(150, 0); /////////// modify this
FastaSequenceExtractor fe= new FastaSequenceExtractor(fastaf, gb, null);
File of= new File(od+"/"+tag+"_"+FileName.getBaseName(f)+".fasta");