Examples of GenomicRegionsComparator


Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

   
   
   
   
protected void writeToFile(File out)throws Exception {
    GenomicRegionsComparator comp= new GenomicRegionsComparator(peaks, anno);
    GenomicRegionsBuilder gbout= comp.getNonIntersection();
    new BedExporter(gbout).writeToFile(out);
}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

    }
   
   
   
public void writeToFile(File out)throws Exception {
    GenomicRegionsCrossover gc= new GenomicRegionsComparator(gb, gbcomp).getCrossover();
    HashSet<GenomicRegion> allrs= new HashSet<>();
    Iterator<GenomicRegion> it= gc.both.iterator();
    while(it.hasNext()){
        allrs.add( it.next() );
    }
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

    GenomicRegionsBuilder gbc= new BedReader(reff).getGenomicRegionsBuilder();
   
    System.out.println(gbe.size());
    System.out.println(gbc.size());
   
    GenomicRegionsCrossover gc= new GenomicRegionsComparator(gbe, gbc).getCrossover();
    gc.print();

}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

    GenomicRegionsBuilder gbc= new BedReader(reff).getGenomicRegionsBuilder();
   
    System.out.println(gbe.size());
    System.out.println(gbc.size());
   
    GenomicRegionsCrossover gc= new GenomicRegionsComparator(gbe, gbc).getCrossover();
    gc.print();

}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

    random();
}


protected int ovl(GenomicRegionsBuilder tar, GenomicRegionsBuilder ref) throws Exception{
    GenomicRegionsCrossover gc=  new GenomicRegionsComparator(tar, ref).getCrossover();
    //gc.both.print();
    return gc.both.size();
    //return gc.tarOnly.size();
}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

   
   
   
   
public static GenomicRegionsBuilder overlap(GenomicRegionsBuilder tar, GenomicRegionsBuilder ref)throws Exception {
    GenomicRegionsCrossover gc= new GenomicRegionsComparator(tar, ref).getCrossover();
    return gc.both;
}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

    GenomicRegionsCrossover gc= new GenomicRegionsComparator(tar, ref).getCrossover();
    return gc.both;
}

public static GenomicRegionsBuilder tarOnly(GenomicRegionsBuilder tar, GenomicRegionsBuilder ref)throws Exception {
    GenomicRegionsCrossover gc= new GenomicRegionsComparator(tar, ref).getCrossover();
    return gc.tarOnly;
}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

    GenomicRegionsBuilder gb= new BedReader(f).getGenomicRegionsBuilder();
    GenomicRegionsBuilder gbref= new BedReader(new File(dir+"/anno/hg19_ensGene_exon.bed")).getGenomicRegionsBuilder();
    GenomicRegionsBuilder gbrefs= new GenomicRegionsModifier(gbref).getExtendedRegions(side, side);
   
   
    GenomicRegionsComparator gc= new GenomicRegionsComparator(gb, gbrefs);
    new BedExporter( gc.getNonIntersection() ).writeToFile(of);
   
   
}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

    }
   
   
public void writeToDir(File od, String tag)throws Exception{
    GenomicRegionsBuilder gbr= new GenomicRegionsModifier(gbtr).getExtendedRegions(side, side);
    GenomicRegionsComparator gc= new GenomicRegionsComparator(gbpeak, gbr);
    File ofa= new File(od+"/asso-"+side+"_"+ tag+".bed");
    File ofn= new File(od+"/asso-not-"+side+"_"+ tag+".bed");
    new BedExporter( gc.getIntersection() ).writeToFile(ofa);
    new BedExporter( gc.getNonIntersection() ).writeToFile(ofn);
}
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsComparator

   
   
   
   
protected void writeToFile(File out)throws Exception {
    GenomicRegionsComparator comp= new GenomicRegionsComparator(peaks, in);
    GenomicRegionsBuilder gbOverlapIn= comp.getIntersection();
    GenomicRegionsComparator comp2= new GenomicRegionsComparator(gbOverlapIn, ex);
    GenomicRegionsBuilder gbOverlapInNotEx = comp2.getNonIntersection();
   
    new BedExporter(gbOverlapInNotEx).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.