Package fork.lib.bio.anno.genomic.region

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsBuilder.sortAll()


    GenomicRegionsBuilder gb= new GenomicRegionsBuilder();
    gb.addAll(getSUTs());
    gb.addAll(getCUTs());
    gb.addAll(getORFs());
    gb.addAll(getOthers());
    gb.sortAll();
    return gb;
}

   
View Full Code Here


        ge.attr= new Object[]{o,
            new Double(r.scores[0]), new Double(r.scores[1])
        };
        gbout.add(ge);
    }
    gbout.sortAll();
    BedExporter be= new BedExporter(gbout){
        protected String column3(GenomicRegion gr){
            return ((Object[])gr.attr)[0].toString();
        }
        protected String column4(GenomicRegion gr){
View Full Code Here

                Integer.parseInt(r.get(2))
        );
        gr.setValue(Double.parseDouble(r.get(3)));
        gb.add(gr);
    }
    gb.sortAll();
   
    SplicedRegionsLocator sl= new SplicedRegionsLocator(gb, new SplicedBedReader(anno));
   
    File od= new File(d+"/locate");
    File out= new File(d+"/"+FileName.getBaseName(f)+"_locate.bed");
View Full Code Here

public static void main(String[] args) throws Exception { //debug
    File f= new File("E:\\muxingu\\mystudy\\phd\\files\\anno\\bed\\hg19\\enhancers/human_unsort.bed");
    File out= new File("E:\\muxingu\\mystudy\\phd\\files\\anno\\bed\\hg19\\enhancers/human_sorted.bed");
   
    GenomicRegionsBuilder gb= new BedReader(f).getGenomicRegionsBuilder();
    gb.sortAll();
   
    new BedExporter(gb).writeToFile(out);
   
   
}
View Full Code Here

        }else{
            xxx.add(gr);
        }
    }
   
    gbout.sortAll();
    xxx.sortAll();
    return gbout;
}
   
   
View Full Code Here

    File f= new File(dir+"/anno/raw/refGene_hg19_raw.bed");
    File of= new File(dir+"/anno/refGene_hg19.bed");
   
    GenomicRegionsBuilder gb= new BedReader(f).getGenomicRegionsBuilder();
    gb.removeRedundant();
    gb.sortAll();

   
    new BedExporter(gb).writeToFile(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.