File f= new File("r2.wig");
LandscapeBuilder lb= new BedGraphReader(f).getLandscapeBuilder();
LandscapeTransformer lt= new LandscapeTransformer(lb);
lt.subtract(10);
PeakIdentifier pi= new PeakIdentifier(lb, null);
pi.getPeaks().writeToFileBed(new File("peak_"+FileName.getBaseName(f)+".bed"));