Package fork.lib.bio.anno.genomic

Examples of fork.lib.bio.anno.genomic.LandscapeScoringStrand.writeToBedFile()


        protected double[] scoreStrand(ArrayList<Region> bufs, GenomicRegion gr) throws RegionException{
            return new double[]{Landscape2DBuffer.getArea(bufs, gr) / (gr.getRange()+1) *1000 };
        }
    };
    File out= new File(od+"/"+tag+"_"+FileName.getBaseName(f)+".bed");
    ls.writeToBedFile(out);

}
   


View Full Code Here


   
    LandscapeBuilder lbf= new BedGraphReader(rfor).getLandscapeBuilder();
    LandscapeBuilder lbr= new BedGraphReader(rrev).getLandscapeBuilder();
   
    LandscapeScoringStrand ls= new LandscapeScoringStrand(lbf, lbr, gbnew);
    ls.writeToBedFile(of);
   
   
   
   
   
View Full Code Here

    LandscapeScoringStrand ls= new LandscapeScoringStrand(lbf, lbr, gb){
            protected double[] score(ArrayList<Region> bufs, GenomicRegion gr) throws RegionException{
                return new double[]{Landscape2DBuffer.getArea(bufs, gr) / (gr.getRange()+1)*1000 };
            }
        };
    ls.writeToBedFile(out);
}
   
public static void main(String[] args) throws Exception { //debug
    File dir= Dirs.getFile("dir");
    File cd= new File(dir+"/data/human_magnus/rna/norm");
View Full Code Here

    LandscapeScoringStrand ls= new LandscapeScoringStrand(
            new BarReader(ff).getLandscapeBuilder(),
            new BarReader(fr).getLandscapeBuilder(),
            new BedReader(anno).getGenomicRegionsBuilder()
            );
    ls.writeToBedFile(of);
}
   
   
   
   
View Full Code Here

    LandscapeScoringStrand ls= new LandscapeScoringStrand(
            new BarReader(fr).getLandscapeBuilder(),
            new BarReader(ff).getLandscapeBuilder(),
            new BedReader(anno).getGenomicRegionsBuilder()
            );
    ls.writeToBedFile(of);
}
   
   
   
   
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.