Package fork.lib.base.file.io.txt

Examples of fork.lib.base.file.io.txt.ReadTable.param()


        File f= fs[i];
        if(f.isFile()){
            IDMapperAffy map = new IDMapperAffy(anno);

            ReadTable rt= new ReadTable(f);
            rt.param().setSkipRows(0);
            HashMap<String, String> hm= rt.getHashMap(0, 1);
            HashMap<String, Double> idv= new HashMap();
            Iterator<String> it= hm.keySet().iterator();
            while(it.hasNext()){
                String id= it.next();
View Full Code Here


   
    jj.initRows(ref);
   
   
    ReadTable rt= new ReadTable(new File(refd+"/anno_ercc-rna_spike-in.txt"));
    rt.param().setSkipRows(0);
    jj.addHashMapIDToVal(rt.getHashMap(1, 3), "conc");
   
   
    jj.addBedFile(new File(d+"/569-4kr-cen_sd-ura_20140313-r1_pe1_read.bed"));
    jj.addBedFile(new File(d+"/569-4kr-cen_sd-ura_20140313-r2_pe1_read.bed"));
View Full Code Here

    }
   
   
protected void init() throws Exception{
    ReadTable rt= new ReadTable(f);
    rt.param().setSkipSyntax("#");
    rt.setSkipRows(0);
    String[][] arr= rt.getTableAsArray();
    ids= FormatOp1D.strToArrayList( rt.getColumn(0) );
    vs= FormatOp1D.doubleToArrayDouble( FormatOp1D.objToDouble(rt.getColumn(1)) );
}
View Full Code Here

public void addTextFileChunk(File f)throws Exception {
    ReadTable rt= new ReadTable(f);
    ArrayList<String> r0= rt.getTable().getRow(0);
    rt= new ReadTable(f);
    rt.param().setSkipRows(0);
    for( int i=1; i<r0.size(); i++ ){
        String cn= r0.get(i).replace(" ", "");
        this.addHashMapIDToVal(rt.getHashMap(0, i), cn);
    }
}
View Full Code Here

   
   
protected void init() throws IOException, RegionException{
    hm= new HashMap<>();
    ReadTable rt= new ReadTable(f);
    rt.param().setSkipRows(0);
    String[][] arr= rt.getTableAsArray();
    for( int i=0; i<arr.length ; i++ ){
        String[] r= arr[i];
        r[6]= r[6].replaceAll(" ", "");
        String id= r[6].split(",")[0];
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.