85c51face300add10b745269401ffbdd632fe750 max Mon Nov 18 05:18:46 2019 -0800 fixing chromToUcsc, once more, the download --get example didn't work anymore, refs #24407 diff --git src/utils/chromToUcsc/chromToUcsc src/utils/chromToUcsc/chromToUcsc index 2dacbd0..4a699e0 100755 --- src/utils/chromToUcsc/chromToUcsc +++ src/utils/chromToUcsc/chromToUcsc @@ -105,35 +105,35 @@ data = gzip.GzipFile(fileobj=data).read().decode() outFname = db+".chromAlias.tsv" open(outFname, "w").write(data) print("Wrote %s" % outFname) exit(0) def main(): args, options = parseArgs() db = options.db aliasFname = options.aliasFname inFname = options.inFname outFname = options.outFname + if options.doDownload: + download(db) + if aliasFname is None: logging.error("You need to provide an alias table with the -a option") exit(1) - if options.doDownload: - download(db) - if inFname is None: ifh = stdin else: ifh = open(inFname) if outFname is None: ofh = stdout else: ofh = open(outFname, "w") chromToUcsc(db, aliasFname, ifh, ofh) main()