File compf= new File(dir+"/other_datasets\\statham2014_mcf7-mods\\norm\\peaks\\locate\\ensGene_hg19_exon/locate_peak_norm_wig_mcf7_h3k4me1_SRR1282220_hg19.bed");
//File compf= new File(dir+"/other_datasets\\statham2014_mcf7-mods\\norm\\peaks\\locate\\ensGene_hg19_exon/locate_peak_norm_wig_mcf7_h3k27ac_SRR1282218_hg19.bed");
//File compf= new File(dir+"/other_datasets/statham2014_mcf7-mods/GSM1383850_MCF7_NDR_locate.bed");
GenomicRegionsBuilder gbcomp= new BedReader(compf).getGenomicRegionsBuilder();
String[] ts= new String[]{
"0"
};
for( int i=0; i<ts.length; i++ ){
String t= ts[i];
File f= new File(d+"/peak_norm_wig_mcf7_chip-h2az_time-"+t+"_hg19.bed");
GenomicRegionsBuilder gb= new BedReader(f).getGenomicRegionsBuilder();
String tag= FileName.getBaseName(compf);
LinkChip ll= new LinkChip(gb, gbcomp);
File out= new File(od+"/"+tag+"/time-"+t+"_"+tag+".bed");
ll.writeToFile(out);