Package common.inspect

Source Code of common.inspect.ClassifierList

/*
* 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();
}
   
   
   
}
TOP

Related Classes of common.inspect.ClassifierList

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.