Changeset 1612 for branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/PairwiseAlignmentGenerator.java
- Timestamp:
- 07/14/14 23:27:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/PairwiseAlignmentGenerator.java
r1595 r1612 21 21 if (i != j) { 22 22 int smithWatermanThreshold = 10; 23 24 alignments.set(i, j,AlignmentAlgorithmFactory.create( 25 ns1.getSequence(), ns2.getSequence(), submat, 26 smithWatermanThreshold)); 23 AlignmentAlgorithm aa = AlignmentAlgorithmFactory.create(); 24 aa.align(ns1.getSequence(), ns2.getSequence(), submat, 25 smithWatermanThreshold); 26 alignments.set(i,j,aa); 27 27 28 28 AlignmentAlgorithm sameSequence1 = AlignmentAlgorithmFactory.create( 29 AlignmentAlgorithm sameSequence1 = AlignmentAlgorithmFactory.create(); 30 sameSequence1.align( 29 31 ns1.getSequence(), ns1.getSequence(), submat, 30 32 smithWatermanThreshold); 31 AlignmentAlgorithm sameSequence2 = AlignmentAlgorithmFactory.create( 32 ns2.getSequence(), ns2.getSequence(), submat,33 AlignmentAlgorithm sameSequence2 = AlignmentAlgorithmFactory.create(); 34 sameSequence2.align(ns2.getSequence(), ns2.getSequence(), submat, 33 35 smithWatermanThreshold); 34 AlignmentAlgorithm randomSequence = AlignmentAlgorithmFactory.create( 35 ns1.shuffle().getSequence(),ns2.shuffle().getSequence(),submat,smithWatermanThreshold);36 AlignmentAlgorithm randomSequence = AlignmentAlgorithmFactory.create(); 37 randomSequence.align(ns1.shuffle().getSequence(),ns2.shuffle().getSequence(),submat,smithWatermanThreshold); 36 38 37 39 // Score of the aligmnment 38 40 double score = alignments.get(i,j).getAlignmentScore(); 41 /* 39 42 if(score > 0) { 40 43 System.out.println("Alignment: " + i + " " + j); … … 52 55 System.out.println(); 53 56 } 57 */ 54 58 // Scores of the sequence being aligned to itself (maximum score) 55 59 double sSelf1 = sameSequence1.getAlignmentScore();
Note: See TracChangeset
for help on using the changeset viewer.