0c60b4bd06e5d1b224f92f9ea885187333833c9f rhead Wed May 30 16:15:20 2012 -0700 Added a missing parenthesis. diff --git src/utils/qa/qaGbTracks src/utils/qa/qaGbTracks index 2da25ce..284aecc 100755 --- src/utils/qa/qaGbTracks +++ src/utils/qa/qaGbTracks @@ -17,31 +17,31 @@ The following tests are run: checks for underscores in table names checks for the existence of table descriptions checks shortLabel and longLabel length positionalTblCheck checkTblCoords genePredCheck pslCheck featureBits (a version of) countPerChrom creates 3 files: outFile.summary, outFile.log, outFile.chrom """) parser.add_argument('db', help='the database to check') parser.add_argument('-f', dest='tableFile', nargs=1, type=argparse.FileType('r'), - help='a file listing tables to check (separated by spaces or newlines') + help='a file listing tables to check (separated by spaces or newlines)') parser.add_argument('table', help ='the name of a table to check', nargs='*') parser.add_argument('outFile', help='base name to give results files') args = parser.parse_args() if args.tableFile: # add any additional tables in the table file to the table list args.table.extend((args.tableFile[0].read()).split()) args.tableFile[0].close() return args def tableExists(db, table): """True if the table exists in the given database.""" sqlResult = qaUtils.callHgsql(db, "show tables like '" + table + "'") return sqlResult.strip() == table def checkTablesExist(db, tableList):