Package data.cerevisiae.region.aclen

Source Code of data.cerevisiae.region.aclen.Frequency

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package data.cerevisiae.region.aclen;

import fork.lib.base.Print;
import fork.lib.base.file.io.txt.ReadTable;
import fork.lib.base.file.management.Dirs;
import fork.lib.math.applied.stat.FrequencyCount;
import java.io.File;

/**
*
* @author forksapien
*/
public class Frequency {
   
   
   
public static void main(String[] args) throws Exception {
    File dir= Dirs.getFile("dir");
    File d= new File(dir+"/anno/bed/len/score/select_ac");
   
    String deac= "ac";
    //String deac= "de";
   
    double[] zs= Locate.zs;
    double[] acs= Locate.acs;
   
    for( int i=0; i<zs.length ; i++ ){
        double z= zs[i];
        for( int j=0; j<acs.length ; j++ ){
            double ac= acs[j];
   
            File f= new File(d+"/locate-"+deac+"_z"+z+"_ac"+ac+"_in.txt"); int tar= 8;
            System.out.println(f.getName());

            ReadTable rt= new ReadTable(f);
            String[] cs= rt.getColumn(tar);

            FrequencyCount<String> ff= new FrequencyCount<>(cs);
            Print.map(ff.getFrequencyCounts());
            System.out.println();
        }
    }
   
}
   
}
TOP

Related Classes of data.cerevisiae.region.aclen.Frequency

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.