a b/Scripts/Pre_runner.py
1
import time
2
import Pre_config_dnngp, Pre_dnngp #导入的设置文件和dnngp.pyx文件
3
4
if __name__ == '__main__': #以文件形式而非导入形式运行则下方代码进行。
5
    start_model = time.time()
6
    opt = Pre_config_dnngp.get_options()
7
    SNP = opt.SNP
8
    output = opt.output
9
    model=opt.Model
10
    Pre_dnngp.prepare() #运行dnngp.pyx中的环境函数,进行运行环境的设置。
11
    Pre_dnngp.main(SNP, model,output) #将参数传入dnngp中。
12
    end_model = time.time()
13
    print('Running time: %s Seconds' % (end_model - start_model))