Test_Immunosignature_Data_020212
2015-01-13azim58 - Test_Immunosignature_Data_020212
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
public class Test_Immunosignature_Data_020112
private UsefulTools useful_tools = new UsefulTools();
private Histogram_Distribution_Finder hdf = new
Histogram_Distribution_Finder();
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_020112()
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";
/*
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_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");
hdf.searchRangeOfDistributions(raw_data);
Histogram_Distribution hd = hdf.getMostComplexDistribution();
useful_tools.createTextFile(result_data_directory, sample_name + ".txt",
hd.toString());
}