File f= new File(wd+"/"+tag+".wig");
File rf= new File(wd+"/ratio_"+tag+".wig");
NormChipSeqRPM.toRatio(f, inf, rf);
LandscapeBuilder lb = new BedGraphReader(rf).getLandscapeBuilder();
NormChipSeqZero nn= new NormChipSeqZero();
nn.init(lb);
File of1= new File(od+"/subtract_"+tag+".wig");
NormChipSeqRPM.subtract(new BedGraphBuffer(f),new BedGraphBuffer(inf), of1, "subtract_"+tag, nn.depthFactor);
File of2 = new File(od+"/norm_"+tag+".wig");
NormChipSeqRPM.normalise(new BedGraphReader(of1).getLandscapeBuilder(), of2, FileName.getBaseName(of2), nn.normFactor);
System.out.println();
}