Package fork.lib.bio.anno.genomic

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


   
   
    HashMap<GenomicRegion, Double> maps= LandscapeScoringResultEntry.toHashMap(rss, 0);
    GenomicRegionsBuilder gbout= new GenomicRegionsBuilder();
    for(int i=0; i<rsz.size() ; i++){
        LandscapeScoringResultEntry rz= rsz.get(i);
        double vz= rz.scores[0], vs= maps.get(rz.gr);
       
        if(vz>zthr && vs<sthr){
            System.out.println(rz.gr.toUCSCFormat()+"  "+ vz+"  "+ vs);
            gbout.add(rz.gr);
View Full Code Here


    LandscapeScoring ls = getScoring();
   
    ArrayList<LandscapeScoringResultEntry> res= ls.getResultEntries();
    vec= new Vector(new double[res.get(0).scores.length]);
    for( int i=0; i<res.size(); i++ ){
        LandscapeScoringResultEntry en= res.get(i);
        /*
        bw.write( ((BedAttribute)en.gr.attribute()).getFieldA() );
        double[] vs= en.scores;
        for( int j=0; j<vs.length; j++ ){
            bw.write("\t"+ (double)Math.round(vs[j]*100)/100);
 
View Full Code Here

        Vector vec= new Vector(vs);
        double vf= vec.subset(fl, fh).toDistribution().mean();
        double vt= vec.subset(tl, th).toDistribution().mean();
       
        double[] ft= new double[]{vf, vt};
        ress.add(new LandscapeScoringResultEntry(gr,ft));
    }
   
}
View Full Code Here


public void writeToFile(File out) throws Exception{
    GenomicRegionsBuilder gbout= new GenomicRegionsBuilder();
    for( int i=0; i<ress.size() ; i++ ){
        LandscapeScoringResultEntry r=ress.get(i);
        GenomicRegion ge= r.gr;
        Object o= ge.attr==null ? ge.toUCSCFormat() : ge.attr;
        ge.attr= new Object[]{o,
            new Double(r.scores[0]), new Double(r.scores[1])
        };
View Full Code Here

            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,
                shigh= gr.isOnForwardStrand() ? side3 : side5;
        if(vs.length >  (slow+shigh)){
View Full Code Here

TOP

Related Classes of fork.lib.bio.anno.genomic.LandscapeScoringResultEntry

Copyright © 2018 www.massapicom. 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.