def tableQaFactory(db, table, reporter, sumTable): """Returns tableQa object according to trackDb track type.""" tableType = getTrackType(db, table) if not tableType: return TableQa(db, table, tableType, reporter, sumTable) elif tableType in pslTypes: return PslQa(db, table, tableType, reporter, sumTable) elif tableType in genePredTypes: return GenePredQa(db, table, tableType, reporter, sumTable) elif tableType in otherPositionalTypes: return PositionalQa(db, table, tableType, reporter, sumTable) elif tableType in pointerTypes: return PointerQa(db, table, tableType, reporter, sumTable) else: raise Exception(db + table + " has unknown track type " + tableType)
def tableQaFactory(db, table, reporter, sumTable): """Returns tableQa object according to trackDb track type.""" tableType = tableTypeUtils.getTrackType(db, table) if tableType == None: return TableQa(db, table, tableType, reporter, sumTable) elif tableTypeUtils.isPsl(tableType): return PslQa(db, table, tableType, reporter, sumTable) elif tableTypeUtils.isGenePred(tableType): return GenePredQa(db, table, tableType, reporter, sumTable) elif tableTypeUtils.isPositional(tableType): return PositionalQa(db, table, tableType, reporter, sumTable) elif tableTypeUtils.isPointer(tableType): return PointerQa(db, table, tableType, reporter, sumTable) else: raise Exception(db + table + " has unknown track type " + tableType)
def statistics(self): TableQa.statistics(self)
def validate(self): """Adds pointer-specific table checks to basic table checks.""" TableQa.checkForUnderscores(self) PositionalQa.checkLabelLengths(self)
def validate(self): """Adds pointer-specific table checks to errorLog.""" TableQa.checkForUnderscores(self) PositionalQa.checkLabelLengths(self)