Example #1
0
def main_with_args(args):
    print(title_string)
    if len(args) < 1:
        parser.print_usage()
        print(description_string)
        return

    parameters = parser.parse_args(args)
    p_dict = vars(parameters)
    if p_dict['debug']:
        print('Parsed parameters:')
        print(p_dict)

    action = p_dict['ldpred_action']
    if action == 'coord':
        coord_genotypes.main(p_dict)
    elif action == 'gibbs':
        LDpred_gibbs.main(p_dict)
    elif action == 'inf':
        LDpred_inf.main(p_dict)
    elif action == 'p+t':
        LD_pruning_thres.main(p_dict)
    elif action == 'score':
        validate.main(p_dict)
    elif action == 'all':
        pass
    else:
        parser.print_help(sys.stderr)
        sys.exit(1)
Example #2
0
def main():
    if len(sys.argv)==1:
        print ('ERROR: No options provided.\n')
        parser.print_help(sys.stderr)
        sys.exit(1)
    parameters = parser.parse_args()
    p_dict= vars(parameters)
    if p_dict['debug']:
        print ('Parsed parameters:')
        print(p_dict)

    action = p_dict['ldpred_action']
    if action=='coord':
        coord_genotypes.main(p_dict)
    elif action=='gibbs':
        LDpred_gibbs.main(p_dict)
    elif action=='inf':
        LDpred_inf.main(p_dict)
    elif action=='p+t':
        LD_pruning_thres.main(p_dict)
    elif action=='score':
        validate.main(p_dict)
    elif action=='ldfile':
        ld.get_ld_dict(p_dict['cf'], p_dict['ldf'], p_dict['ldr'],wallaceld=True)

    elif action=='all':
        pass
Example #3
0
def main():
    parameters = parser.parse_args()
    p_dict = vars(parameters)
    if p_dict['debug']:
        print('Parsed parameters:')
        print(p_dict)

    action = p_dict['ldpred_action']
    if action == 'coord':
        coord_genotypes.main(p_dict)
    elif action == 'gibbs':
        LDpred_gibbs.main(p_dict)
    elif action == 'inf':
        LDpred_inf.main(p_dict)
    elif action == 'p+t':
        LD_pruning_thres.main(p_dict)
    elif action == 'score':
        validate.main(p_dict)
    elif action == 'all':
        pass
Example #4
0
def main():
    print(title_string)
    if len(sys.argv)==1:
        parser.print_help(sys.stderr)
        sys.exit(1)
    parameters = parser.parse_args()
    p_dict= vars(parameters)
    if p_dict['debug']:
        print ('Parsed parameters:')
        print(p_dict)
    
    action = p_dict['ldpred_action']
    if action=='coord':
        coord_genotypes.main(p_dict)
    elif action=='gibbs':
        LDpred_gibbs.main(p_dict)
    elif action=='inf':
        LDpred_inf.main(p_dict)
    elif action=='p+t':
        LD_pruning_thres.main(p_dict)
    elif action=='score':
        validate.main(p_dict)
    elif action=='all':
        pass
Example #5
0
def main():
    print(title_string)
    if len(sys.argv) == 1:
        parser.print_help(sys.stderr)
        sys.exit(1)
    parameters = parser.parse_args()
    p_dict = vars(parameters)
    if p_dict['debug']:
        print('Parsed parameters:')
        print(p_dict)

    action = p_dict['ldpred_action']
    if action == 'coord':
        coord_genotypes.main(p_dict)
    elif action == 'gibbs':
        LDpred_gibbs.main(p_dict)
    elif action == 'inf':
        LDpred_inf.main(p_dict)
    elif action == 'p+t':
        LD_pruning_thres.main(p_dict)
    elif action == 'score':
        validate.main(p_dict)
    elif action == 'all':
        pass