本文整理汇总了Python中NGS_Util.checkFile方法的典型用法代码示例。如果您正苦于以下问题:Python NGS_Util.checkFile方法的具体用法?Python NGS_Util.checkFile怎么用?Python NGS_Util.checkFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NGS_Util
的用法示例。
在下文中一共展示了NGS_Util.checkFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: int
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import checkFile [as 别名]
mode = int(sys.argv[1])
clusterUtil = MetabolicReconstructionPipeline_ClusterUtil.MetabolicReconstructionPipeline_ClusterUtil()
clusterUtil.initialize(orgListFile, orgFastaDir, orgBlastResDir, jointBlastDir, orgGTGBlastResDir, GTGBestHitsDir, GTGKNNDir, orgIPRScanDir, InterProScan_EC_RAW_results, moveToDir)
if mode == 0:
pathToSeqs = NGS_Util.createFilePath(moveToDir, "data/org_sequence_db/")
preProcess = MetabolicReconstructionPipeline_PreProcess.MetabolicReconstructionPipeline_PreProcess()
preProcess.initialize(uniprot_fasta, uniprot_dust, uniprot_blast_db, nrdb40_fasta, nrdb40_dust, nrdb40_blast_db, orgListFile, orgFastaDir, seq_org_list, orgBlastDBDir, orgBlastDustDir, ec_files, uniprot_sprot_dat, keggAtomMapsDataDir )
preProcess.preProcess()
successStat=True
print("\nChecking input files that need to be downloaded ...............")
successStat = successStat and NGS_Util.checkFile(uniprot_fasta)
successStat = successStat and NGS_Util.checkFile(uniprot_sprot_dat)
successStat = successStat and NGS_Util.checkFile(ec2go)
print("\nChecking input files that need to be extracted for GTG ...............")
successStat = successStat and NGS_Util.checkFile(nrdb40_fasta)
successStat = successStat and NGS_Util.checkFile(nrdb40_dust)
print("\n")
if not successStat:
raise Exception("Missing required input files")
print("\nChecking Uniprot BLAST input...............")
successStat = successStat and NGS_Util.checkFile(uniprot_blast_db + ".phd")
successStat = successStat and NGS_Util.checkFile(uniprot_blast_db + ".psq")
successStat = successStat and NGS_Util.checkFile(ec_files)