/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package common.inspect;
import fork.lib.base.file.io.txt.MarkEntry;
import fork.lib.base.file.io.txt.MarkReader;
import java.io.File;
/**
*
* @author forksapien
*/
public class ClassifierList extends Classifier{
protected File file;
public ClassifierList(File fasta, String tit) throws Exception{
super(tit);
this.file=fasta;
init();
}
protected void init() throws Exception{
MarkReader mr= new MarkReader(file,">");
MarkEntry en;
while((en=mr.nextEntry())!=null){
sets.add( new GeneSet(en.getChunk(), en.getTitle()) );
}
mr.close();
}
}