Changeset 1307 for trunk/autoquest-plugin-guitar
- Timestamp:
- 09/12/13 01:04:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-guitar/src/main/java/de/ugoe/cs/autoquest/plugin/alignment/commands/CMDbinaryAlignment.java
r1304 r1307 18 18 import java.io.FilenameFilter; 19 19 import java.util.Collection; 20 import java.util.Iterator; 20 21 import java.util.LinkedList; 21 22 import java.util.List; … … 24 25 import de.ugoe.cs.autoquest.CommandHelpers; 25 26 import de.ugoe.cs.autoquest.eventcore.Event; 27 import de.ugoe.cs.autoquest.plugin.alignment.SmithWaterman; 28 import de.ugoe.cs.autoquest.plugin.alignment.DifferenceSubstitutionMatrix; 29 import de.ugoe.cs.autoquest.plugin.alignment.seqgen.RandomSequenceGenerator; 26 30 import de.ugoe.cs.util.console.Command; 27 31 import de.ugoe.cs.util.console.Console; … … 36 40 * @version 1.0 37 41 */ 38 public class CMDbinaryAlig ment implements Command {42 public class CMDbinaryAlignment implements Command { 39 43 40 44 /* … … 56 60 } 57 61 58 59 62 Collection<List<Event>> sequences = new LinkedList<List<Event>>(); 60 63 sequences = (Collection<List<Event>>) GlobalDataContainer.getInstance() 64 .getData(sequencesName); 65 Console.println("Number of sequences: " + sequences.size()); 66 for (Iterator<List<Event>> it = sequences.iterator(); it.hasNext();) { 67 List<Event> ev = it.next(); 68 RandomSequenceGenerator randgen = new RandomSequenceGenerator(1, 69 80, 10); 70 int[] seq1 = randgen.generate(ev); 71 int[] seq2 = randgen.generate(ev); 72 SmithWaterman sw = new SmithWaterman(seq1, seq2, 73 new DifferenceSubstitutionMatrix(seq1, seq2)); 74 75 sw.printDPMatrix(); 76 Console.println("Number of events in sequence: " + ev.size()); 77 for (Iterator<Event> foo = ev.iterator(); foo.hasNext();) { 78 Event blubb = foo.next(); 79 // Console.println(blubb.toString()); 80 } 81 } 61 82 62 83 }
Note: See TracChangeset
for help on using the changeset viewer.