Examples of toUCSCFormat()


Examples of fork.lib.bio.anno.genomic.region.DirectionalGenomicRegion.toUCSCFormat()

        GenomicRegion gr= it.next();
        String seq= get.getSequence(gr);
        fe.appendEntry(new FastaEntry(gr.toUCSCFormat(), seq));
        String cseq = NucleotideSequenceParser.parseSequence(seq).complementary().toString();
        DirectionalGenomicRegion cgr= new DirectionalGenomicRegion(gr.chr, '-', (int)gr.low, (int)gr.high);
        fe.appendEntry(new FastaEntry( cgr.toUCSCFormat(), cseq));
    }
    fe.close();
}

View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegion.toUCSCFormat()

    FastaExporter fe= new FastaExporter(out);
    Iterator<GenomicRegion> it= gb.iterator();
    while(it.hasNext()){
        GenomicRegion gr= it.next();
        String seq= get.getSequence(gr);
        fe.appendEntry(new FastaEntry(gr.toUCSCFormat(), seq));
        String cseq = NucleotideSequenceParser.parseSequence(seq).complementary().toString();
        DirectionalGenomicRegion cgr= new DirectionalGenomicRegion(gr.chr, '-', (int)gr.low, (int)gr.high);
        fe.appendEntry(new FastaEntry( cgr.toUCSCFormat(), cseq));
    }
    fe.close();
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegion.toUCSCFormat()

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])
        };
        gbout.add(ge);
    }
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.