Changeset 553

Show
Ignore:
Timestamp:
12/04/11 13:10:11 (6 months ago)
Author:
martijn
Message:

Improve qc: check that ids match expected pattern

Location:
trunk/org.bridgedb.tools.qc
Files:
3 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/org.bridgedb.tools.qc/src/org/bridgedb/tools/qc/BridgeQC.java

    r403 r553  
    99import org.bridgedb.DataSource; 
    1010import org.bridgedb.IDMapperException; 
     11import org.bridgedb.bio.BioDataSource; 
    1112import org.bridgedb.rdb.SimpleGdb; 
    1213import org.bridgedb.rdb.SimpleGdbFactory; 
     
    9899        { 
    99100                Connection con = oldGdb.getConnection(); 
    100                 //TODO 
     101                //TODO ... do something to compare cross-link consistency ... 
    101102        } 
    102103 
     
    105106                long oldSize = oldDb.length(); 
    106107                long newSize = newDb.length(); 
    107                 System.out.printf ("INFO: new size is %d Mb (changed %+3.1f%%)", newSize / 1000000,  
     108                System.out.printf ("INFO: new size is %d Mb (changed %+3.1f%%)\n", newSize / 1000000,  
    108109                                (double)(newSize - oldSize) / (double)oldSize * 100); 
    109110        } 
     
    158159                BridgeQC main = new BridgeQC (new File(args[0]), new File(args[1])); 
    159160                main.run(); 
     161                 
     162                BioDataSource.init(); 
     163                PatternChecker checker = new PatternChecker(); 
     164                checker.run(new File(args[0])); 
    160165        } 
    161166