this.get=get;
}
public void writeToFile(File out)throws Exception {
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();
}