Package fork.lib.bio.anno.genomic

Examples of fork.lib.bio.anno.genomic.LandscapeTransformer.divideBy()


    LandscapeBuilder lb= new BedGraphReader(outSub).getLandscapeBuilder();
    LandscapeTransformer lt= new LandscapeTransformer(lb);
    lt.selectLength(300, Integer.MAX_VALUE);
    double sum= lb.totalArea();
    double fac= sum/Math.pow(10, 8);
    lt.divideBy( fac );
    new BedGraphExporter(lb).writeToFile(outNorm);
}
   
public void subtract()throws Exception {
    subtractBackground(dis, f, outSub, 4);
View Full Code Here


   
public void writeToDir(File od)throws Exception {
    double sum = lbf.totalArea()+ lbr.totalArea();
    double fac= sum/ Math.pow(10, 10);
    LandscapeTransformer ltf= new LandscapeTransformer(lbf);
    ltf.divideBy(fac);
    new BedGraphExporter(lbf).writeToFile(new File(od+"/norm_"+tag+"_for.wig"));
    LandscapeTransformer ltr= new LandscapeTransformer(lbr);
    ltr.divideBy(fac);
    new BedGraphExporter(lbr).writeToFile(new File(od+"/norm_"+tag+"_rev.wig"));
}
View Full Code Here

    double fac= sum/ Math.pow(10, 10);
    LandscapeTransformer ltf= new LandscapeTransformer(lbf);
    ltf.divideBy(fac);
    new BedGraphExporter(lbf).writeToFile(new File(od+"/norm_"+tag+"_for.wig"));
    LandscapeTransformer ltr= new LandscapeTransformer(lbr);
    ltr.divideBy(fac);
    new BedGraphExporter(lbr).writeToFile(new File(od+"/norm_"+tag+"_rev.wig"));
}
   

View Full Code Here

    LandscapeBuilder lb= new BedGraphReader(outSub2).getLandscapeBuilder();
    LandscapeTransformer lt= new LandscapeTransformer(lb);
    lt.selectLength(150, Integer.MAX_VALUE);
    double sum= lb.totalArea();
    double fac= sum/Math.pow(10, 8);
    lt.divideBy( fac );
    new BedGraphExporter(lb).writeToFile(out);
}
   

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.