//public static Font upFont;
//public static Font downFont;
public static void main(String[] args) throws Throwable
{
Kronometre kron = new Kronometre();
String file = "result/Result_fdr0.05_var1.0_AR_expo_prostate";
comtype = "33";
String plat = "GPL8300";
List<Triplet> trips = Triplet.readTripsAndAssociate(file + ".xls",
"resource/expop/expop_1.txt", "resource/expop/expop_2.txt", "resource/expop/expop_3.txt");
// List<Triplet> trips = Triplet.readTrips(file + ".xls");
Iterator<Triplet> iter = trips.iterator();
while (iter.hasNext())
{
Triplet t = iter.next();
if (t.fac_id.startsWith("M")) iter.remove();
}
System.out.println("trips.size() = " + trips.size());
// CrossPlatformMapper.associateAndClean(trips, "resource/expop/nikidata.txt");
// CrossPlatformMapper.associateWithGSE6919(trips, plat);
// trips = Triplet.selectModulator(trips, "SPDEF");
posCancer = CellTypeMatcher.getCancerProstateInExpop(comtype);
// posNormal = CellTypeMatcher.getCancerProstateInExpop(comtype + "_primary");
posNormal = CellTypeMatcher.getBenignProstateInExpop(comtype);
// posCancer = CrossPlatformMapper.getPosInGSE6919(plat, false);
// posNormal = CrossPlatformMapper.getPosInGSE6919(plat, true);
// CellTypeMatcher.randomizeInside(posCancer, posNormal);
boolean[] pos = CellTypeMatcher.takeOR(posNormal, posCancer);
CellTypeMatcher.replaceValsToRanks(trips, pos);
fillChangeMaps(trips);
keepMostChangedTargetIsoforms(trips);
fillMappingsAfter(trips);
generateSVG(trips, file + "_in" + comtype);
// generatePNG(trips, file);
// printScores(trips);
kron.stop();
kron.print();
}