work for rrm project (ComPhy 2012 Moscow)
authorcmzmasek <cmzmasek@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Wed, 8 Aug 2012 13:28:48 +0000 (13:28 +0000)
committercmzmasek <cmzmasek@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Wed, 8 Aug 2012 13:28:48 +0000 (13:28 +0000)
forester/java/src/org/forester/application/aa.java

index 6d7be4f..1ae5dfb 100644 (file)
@@ -45,6 +45,11 @@ public class aa {
                     }
                 }
                 if ( found > 0 ) {
+                    for( final Sequence found_seq : found_seqs ) {
+                        if ( found_seq.getLength() >= 85 ) {
+                            all_found_seqs.add( found_seq );
+                        }
+                    }
                     if ( found > 1 ) {
                         System.out.println( i + ": " + id + "=>" + id_ + " " + range );
                         System.out.println( "  found: " + found );
@@ -58,6 +63,10 @@ public class aa {
                     System.exit( -1 );
                 }
             }
+            int i = 0;
+            for( Sequence sequence : all_found_seqs ) {
+                System.out.println( i++ + ": " + sequence );
+            }
             System.out.println( "DONE." );
         }
         catch ( final Exception e ) {