package pp2.prediction.knn; /** * command-line wrapper to apply kNN predictions to a file containing several targets * @author Thomas Hopf * */ public class KNNPredictor { public static void main(String[] args) { // example run: java KNNPredictor -i examples/blast_results_all.blast -o examples/prediction_out1 -k 11 -c data/deductiveClosureGO.txt -t data/goterm.txt String usage = "java KNNPredictor -i -o -d [-k <#neighbors> |-e ] [-nofilter] [-cc] " + "-c -t "; if(args.length < 8) { System.out.println(usage); System.exit(-1); } String hitFile = null; //"examples/blast_results_example_subset2"; String outFile = null; // "examples/prediction_out1"; String distributionFile = null; boolean eliminateDuplicateHits = true; boolean useEValueThreshold = false; double eValueTreshold = 1E-10; int k=1; String closureFile = null; String termFile = null; boolean noCellularComponent = false; //String hitFile = "examples/blast_results_all.blast"; //String outFile = "examples/prediction_out1"; //boolean eliminateDuplicateHits = true; //boolean useEValueThreshold = false; //double eValueTreshold=1E-10; //int k=2; //"data/deductiveClosureGO.txt" //"data/goterm.txt" for(int i=0; i