Example #1
0
    if args.structures is None:
        print('no inputs specified, please run ccCalc before')
        exit()
    else:
        #Run ccCalc with initial args list
        hklin = " ".join(str(x) for x in args.structures)
        C = subprocess.Popen('ccCalc -f %s' % (hklin), cwd=os.getcwd())
        #C = subprocess.Popen('/opt/pxsoft/bin/ccCalc', '-h',cwd=os.getcwd())
        correlationFile = ('ccCluster_log.txt')
else:
    correlationFile = args.DISTfile

CC = Clustering(correlationFile)
Tree = CC.avgTree()
etiquets = CC.createLabels()
threshold = CC.thrEstimation()

#define Class for gui main window
#tabs for result and summary are generated
#through different modules

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:

    def _fromUtf8(s):
        return s


try:
    _encoding = QtGui.QApplication.UnicodeUTF8