13db05916455fc43b3c007d9265887772e20e127 mmaddren Mon Jan 30 12:39:22 2012 -0800 added optional label for all stanzas in CV, and dataGroup mandatory for dataType diff --git python/programs/cvValidate/cvValidate python/programs/cvValidate/cvValidate index db2051f..2633d33 100755 --- python/programs/cvValidate/cvValidate +++ python/programs/cvValidate/cvValidate @@ -1,22 +1,22 @@ #!/hive/groups/encode/dcc/bin/python import sys import argparse from ucscgenomics import cv class validate(object): - """validation script that calls cv.validate and then puts all its errors into a list""" + '''validation script that calls cv.validate and then puts all its errors into a list''' def __init__(self): parser = argparse.ArgumentParser(description = 'Validates the controlled vocabulary file') parser.add_argument('-c', '--cvPath', help='Overrides the default cv path ~/kent/src/hg/makeDb/trackDb/cv/alpha/cv.ra') parser.add_argument('-p', '--protocolPath', help='Overrides the default protocol path ~/htdocsExtras/ENCODE/') parser.add_argument('-l', '--loose', action='store_true', default=False, help='Suppress all warnings, only display breaking errors') args = parser.parse_args(sys.argv[1:]) self.loose = args.loose self.errors = list() self.cv = cv.CvFile(args.cvPath, self.addtoerrs, args.protocolPath) self.cv.validate()