464aa35bb5735dfb8f565621dbde8b3b2ead1581 mmaddren Thu May 10 14:53:09 2012 -0700 fixed ucscGb and some of the more important scripts using it since they broke during the move to the new library structure diff --git python/programs/trackInfo/trackInfo python/programs/trackInfo/trackInfo index cdae5f2..802d2b4 100755 --- python/programs/trackInfo/trackInfo +++ python/programs/trackInfo/trackInfo @@ -1,19 +1,21 @@ #!/usr/bin/env python2.7 import sys, os, shutil, argparse -from ucscgenomics import ra, soft, track, styles +from ucscGb.gbData.ra import raFile +from ucscGb.encode import track +from ucscGb.encode import styles def filesize(val): if val > 1099511627776: return str(round(float(val) / 1099511627776, 2)) + 'TB' if val > 1073741824: return str(round(float(val) / 1073741824, 2)) + 'GB' if val > 1048576: return str(round(float(val) / 1048576, 2)) + 'MB' if val > 1024: return str(round(float(val) / 1024, 2)) + 'KB' else: return str(val) + 'B' def getFileType(filename): filename.replace('.gz', '')