Ignore:
Timestamp:
06/26/14 23:34:58 (10 years ago)
Author:
rkrimmel
Message:

Small fixes and comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java

    r1580 r1583  
    160160                UPGMAMatrix sequenceDistances = new UPGMAMatrix(numberseqs.size()); 
    161161                sequenceDistances.initialize(Double.POSITIVE_INFINITY); 
     162                 
     163                //Save the alignments so we do not need to recalculate those when aligning them again in feng doolittle algorithm 
     164                SmithWatermanRepeated[][] alignments = new SmithWatermanRepeated[numberseqs.size()][numberseqs.size()];  
    162165 
    163166                for (int i = 0; i < numberseqs.size(); i++) { 
     
    169172                                        int smithWatermanThreshold = 10; 
    170173 
    171                                         SmithWatermanRepeated twoSequences = new SmithWatermanRepeated( 
     174                                        alignments[i][j] = new SmithWatermanRepeated( 
    172175                                                        ns1.getSequence(), ns2.getSequence(), submat, 
    173176                                                        smithWatermanThreshold); 
     
    182185                                         
    183186                                        // Score of the aligmnment 
    184                                         double score = twoSequences.getAlignmentScore(); 
     187                                        double score = alignments[i][j].getAlignmentScore(); 
    185188                                        // Scores of the sequence being aligned to itself (maximum score) 
    186189                                        double sSelf1 = sameSequence1.getAlignmentScore(); 
Note: See TracChangeset for help on using the changeset viewer.