aa145ac73643ba31fab4dadd0e2d65996ae90349 mspeir Wed Jun 24 07:30:04 2026 -0700 porting runBits to python3, no refs diff --git src/utils/qa/runBits src/utils/qa/runBits index 2ff5fcd33d0..1902be71425 100755 --- src/utils/qa/runBits +++ src/utils/qa/runBits @@ -1,16 +1,16 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 ################################################################## # # 05-24-17 # Matthew Speir # # Run featureBits and check for overlap with gaps (including unbridged) # ################################################################## import argparse from ucscGb.qa import qaUtils from ucscGb.qa.tables import checkGapOverlap @@ -35,19 +35,19 @@ output = "" fbCmd = ["featureBits", "-countGaps", db, table] fbOut, fbErr = qaUtils.runCommand(fbCmd) output += "\n" + fbCmd[0] + " " + fbCmd[1] + " " + fbCmd[2] + " " + fbCmd[3] + "\n" + fbErr fbGapCmd = ["featureBits", "-countGaps", db, table, "gap"] fbGapOut, fbGapErr = qaUtils.runCommand(fbGapCmd) output += "\n" + fbGapCmd[0] + " " + fbGapCmd[1] + " " + fbGapCmd[2] + " " + fbGapCmd[3] +\ " " + fbGapCmd[4] + "\n" + fbGapErr gapOverlapOut = '' if table != 'gap': gapOverlapOut = checkGapOverlap.checkGapOverlap(db, table, checkUnbridged) - print output + gapOverlapOut + print(output + gapOverlapOut) if __name__ == "__main__": main()