Examples of LandscapeScoring


Examples of fork.lib.bio.anno.genomic.LandscapeScoring

    od.mkdirs();
    File[] fs= ScoreChipGene.files(org);
    for(int i=0; i<fs.length ; i++){
        File f=fs[i];
        System.out.println(f);
        ls= new LandscapeScoring(lb, new BedReader(f).getGenomicRegionsBuilder()){
            protected double[] score(ArrayList<Region> bufs, GenomicRegion gr) throws RegionException{
                return new double[]{Landscape2DBuffer.getArea(bufs, gr) / ((gr.getRange()+1)/1000) / rlen };
            }
        };
        File out= new File(od+"/"+samp+"_"+FileName.getBaseName(f)+".bed");
View Full Code Here

Examples of fork.lib.bio.anno.genomic.LandscapeScoring

       
    }
   
   
protected void start() throws Exception{
    LandscapeScoring ls= new LandscapeScoring(lb, gb){
        protected double[] score(ArrayList<Region> bufs, GenomicRegion gr) throws RegionException{
            return Landscape2DBuffer.getLandscape(bufs, gr);
        }
    };
    ArrayList<LandscapeScoringResultEntry> ress= ls.getResultEntries();
    for( int i=0; i<ress.size() ; i++ ){
        LandscapeScoringResultEntry res= ress.get(i);
        DirectionalGenomicRegion gr= (DirectionalGenomicRegion)res.gr;
        double[] vs= res.scores;
        int slow= gr.isOnForwardStrand() ? side5: side3,
View Full Code Here

Examples of fork.lib.bio.anno.genomic.LandscapeScoring




public void writeToFile(File out) throws Exception{
    LandscapeScoring ls= new LandscapeScoring(lb, gbout);
    LandscapeScoringResultEntry.writeToBedFile(ls.getResultEntries(), 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.