Ignore:
Timestamp:
03/26/14 19:47:27 (10 years ago)
Author:
rkrimmel
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-alignment/src/main/java/de/ugoe/cs/autoquest/plugin/alignment/commands/CMDbinaryAlignment.java

    r1446 r1449  
    4444         * @see de.ugoe.cs.util.console.Command#run(java.util.List) 
    4545         */ 
     46        @SuppressWarnings("unchecked") 
    4647        public void run(List<Object> parameters) { 
    4748                String sequencesName = "sequences"; 
     
    5859                Collection<List<Event>> sequences = new LinkedList<List<Event>>(); 
    5960                Object obj = GlobalDataContainer.getInstance().getData(sequencesName); 
    60                 if(obj.getClass().equals(sequences.getClass())) { 
    61                         sequences = (Collection<List<Event>>) obj; 
    62                 } 
     61                if(obj != null) { 
     62                         
     63                        if(obj.getClass().equals(sequences.getClass())) { 
     64                                sequences = (Collection<List<Event>>) obj; 
     65                        } 
    6366                  
    64          
    65                  
    66                  
    67  
    68                                 if(sequences != null) { 
     67                                 
    6968                                        Console.println("Number of sequences: " + sequences.size()); 
    7069 
     
    7372                                        int[] seq1 = gen.get(0).getSequence(); 
    7473                                        int[] seq2 = gen.get(0).getSequence(); 
    75                                         ObjectDistanceSubstitionMatrix submat = new ObjectDistanceSubstitionMatrix(); 
    76                                         submat.generate(sequences); 
    77                                         SmithWaterman sw = new SmithWaterman(seq1, seq2, 
    78                                                         new NearbySubstitutionMatrix(seq1, seq2, 10)); 
     74                                        //ObjectDistanceSubstitionMatrix submat = new ObjectDistanceSubstitionMatrix(); 
     75                                        //submat.generate(sequences); 
     76                                        //SmithWaterman sw = new SmithWaterman(seq1, seq2, 
     77                                        //              new NearbySubstitutionMatrix(seq1, seq2, 10)); 
    7978 
    80                                 sw.printDPMatrix(); 
    81                                 System.out.println(); 
    82                                 sw.printAlignments(); 
     79                                //sw.printDPMatrix(); 
     80                                //System.out.println(); 
     81                                //sw.printAlignments(); 
    8382                                // sw.getMatches(); 
     83                                        System.out.println("foo"); 
    8484                                } 
    8585                        } 
Note: See TracChangeset for help on using the changeset viewer.