def PrintResults(results, resultsFile, featureFile):
    demo_utils.print_results(results, resultsFile)
    print results.getLog()
    print results.getSuccessRate

    #Find features
    demo_utils.find_features(trainData, featureFile)
def PrintResults(results, resultsFile, featureFile):
	demo_utils.print_results(results, resultsFile);
	print results.getLog();
	print results.getSuccessRate

	#Find features
	demo_utils.find_features(trainData, featureFile);
k2 = int(sys.argv[3])
posLen = int(sys.argv[4])
negLen = int(sys.argv[5])
numFolds = int(sys.argv[6]);
seqMask = int(sys.argv[7]);
rna = int(sys.argv[8]);
if numArgs > 10:
	featureVectorFile=sys.argv[9]
else:
	featureVectorFile = "FeatureVectors.txt"; 

if numArgs == 11:
	dataFile=sys.argv[10]
else:
	dataFile = "spectrum.data";

print "=== Three UTR, k-mer  length: 5 ===\n"
three_utr_data = get_spectrum_data(three_utr_combined_file, k1, k2, posLen, negLen, True);
three_utr_data.save(dataFile);
#three_utr_data = addSequenceFeatures(three_utr_combined_file, three_utr_data, seqMask, rna);
r1 = run_svm(three_utr_data, numFolds, 1, 1)
print_results(r1, 'three_utr_5_spectrum.csv');
demo_utils.find_features(three_utr_data, featureVectorFile);
score_features(three_utr_data);

#print "=== Three UTR, k-mer  length: 7 ===\n"
#three_utr_data = get_spectrum_data(three_utr_combined_file, 7, None, 275, 286, True);
#print three_utr_data
#r2 = run_svm(three_utr_data, 5, 1, 1)
#print_results(r2, "three_utr_7_spectrum.csv");