Test_Immunosignature_Data_020312
2015-01-13azim58 - Test_Immunosignature_Data_020312
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
//this time I will test the distributions while using a constant bin size
of 10
public class Test_Immunosignature_Data_020312
private UsefulTools useful_tools = new UsefulTools();
private Histogram_Distribution_Finder hdf = new
Histogram_Distribution_Finder();
private Histogram_Distribution hd = new Histogram_Distribution();
String intensity_data_directory = "";
String result_data_directory = "";
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Test_Immunosignature_Data_020112 tid = new
Test_Immunosignature_Data_020112();
public Test_Immunosignature_Data_020312()
System.out.println(useful_tools.getTime());
this.intensity_data_directory = "L:\\storage\\CIM Research
Folder\\kwhittem\\Records in CIM Folder\\Categorical
Records\\Biodesign\\Entropy of Immunosignature\\Entropy of
Immunosignature Experiment 011812\\intensities";
this.result_data_directory = "L:\\storage\\CIM Research
Folder\\kwhittem\\Records in CIM Folder\\Categorical
Records\\Biodesign\\Entropy of Immunosignature\\Entropy of
Immunosignature Experiment 011812\\analysis\\Constant Bin Size";
/*
ArrayList a406971_bot =
useful_tools.storeTextFiletoArrayList(intensity_data_directory +
"\\\\406971_bot.txt");
hdf.searchRangeOfDistributions(a406971_bot);
Histogram_Distribution hd_a406971_bot = hdf.getMostComplexDistribution();
useful_tools.createTextFile(result_data_directory, "406971_bot.txt",
hd_a406971_bot.toString());
*/
ArrayList samples_to_process =
useful_tools.stringWithCommasToArrayList("406971_bot, 406971_top,
407166_bot, 407166_top, 407167_bot, 407167_top, 407788_bot, 407788_top");
for(int i=0; i<samples_to_process.size(); i++)
{
processSample(samples_to_process.get(i).toString());
System.out.println(useful_tools.getTime());
}
public void processSample(String sample_name)
ArrayList raw_data =
useful_tools.storeTextFiletoArrayList(intensity_data_directory + "\\" +
sample_name + ".txt");
hd.createDistribution(10, raw_data);
useful_tools.createTextFile(result_data_directory, sample_name + ".txt",
hd.toString());
}