comparison Marea/marea_cluster.py @ 9:7c76e8e319c2 draft

fix cluster file and help section
author bimib
date Wed, 13 Feb 2019 04:01:21 -0500
parents 771a40335876
children 2405255d6a09
comparison
equal deleted inserted replaced
8:68a5f2db55b9 9:7c76e8e319c2
575 ################################# main ######################################## 575 ################################# main ########################################
576 576
577 def main(): 577 def main():
578 args = process_args(sys.argv) 578 args = process_args(sys.argv)
579 if args.k_min > args.k_max: 579 if args.k_min > args.k_max:
580 sys.exit('Execution aborted: max cluster > min cluster') 580 warning('k range boundaries inverted.')
581 tmp = args.k_min
582 args.k_min = args.k_max
583 args.k_max = tmp
584 else:
585 warning('k range correct.')
581 if args.rules_selector == 'HMRcore': 586 if args.rules_selector == 'HMRcore':
582 recon = pk.load(open(args.tool_dir + '/local/HMRcore_rules.p', 'rb')) 587 recon = pk.load(open(args.tool_dir + '/local/HMRcore_rules.p', 'rb'))
583 elif args.rules_selector == 'Recon': 588 elif args.rules_selector == 'Recon':
584 recon = pk.load(open(args.tool_dir + '/local/Recon_rules.p', 'rb')) 589 recon = pk.load(open(args.tool_dir + '/local/Recon_rules.p', 'rb'))
585 elif args.rules_selector == 'Custom': 590 elif args.rules_selector == 'Custom':