Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
 def statistics(self):
     TableQa.statistics(self)
Esempio n. 4
0
 def validate(self):
     """Adds pointer-specific table checks to basic table checks."""
     TableQa.checkForUnderscores(self)
     PositionalQa.checkLabelLengths(self)
Esempio n. 5
0
 def statistics(self):
     TableQa.statistics(self)
Esempio n. 6
0
 def validate(self):
     """Adds pointer-specific table checks to errorLog."""
     TableQa.checkForUnderscores(self)
     PositionalQa.checkLabelLengths(self)