Posted 9/11/2009 18:29:10 | 1. |
Q: When we trim a pair of genes, does a prefix take precedence? A: Yes, trim the prefix first and then trim the suffix. |
Posted 9/15/2009 15:51:26 | 2. |
Q: When the geneDistance() function is called, should gene1 be less than gene2? A: geneDistance() can be called with any two genes; it shouldn't assume that gene1 is less than gene2. However, if gene1 is greater than gene2, the function should swap the two internally before running the gene distance algorithm. |
Posted 9/20/2009 20:05:07 | 3. |
Q: What is the test suite's main class? A: The test suite's main class is cs2110.assignment2.test.Tester. |
Posted 9/20/2009 20:06:10 | 4. |
Q: The test suite only seems to be testing formatting, not values. How do I test values? A: The test suite does indeed test formatting, as well as some simple sanity checks---for instance, the values on the diagonal must be zero, the matrix must be symmetrical, there must be the right number of rows and columns, the genes must be sorted, et cetera. If you actually want to ensure that the distances you compute are the correct ones, however, try comparing your output to the results posted on the assignment web page. It is highly unlikely that you could get all the same answers as we did for A0 and A1/A2 and nonetheless be doing something wrong. |
Posted 9/22/2009 17:16:53 | 5. |
Q: The test suite opens my .jar and lists my classes, but then it complains that it can't find my main method. It also says that maybe my JAR doesn't have a manifest. What's wrong? A: In the third screen of the export JAR dialog, specify your GeneComparison class under "Select the class of the application entry point". This will enter your main class in the manifest, and the test suite will find it. |