本文整理汇总了Python中NGS_Util.createDirectory方法的典型用法代码示例。如果您正苦于以下问题:Python NGS_Util.createDirectory方法的具体用法?Python NGS_Util.createDirectory怎么用?Python NGS_Util.createDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NGS_Util
的用法示例。
在下文中一共展示了NGS_Util.createDirectory方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import createDirectory [as 别名]
taxonomy = NGS_Util.createFilePath(projectDataDir, "taxonomy")
nrdb40_fasta = NGS_Util.createFilePath(projectDataDir, "GTG_database/nrdb40_v2.fasta")
orgGTGDatabaseDir = NGS_Util.createDirectoryPath(projectDataDir, "GTG_database")
CAA1Dir = NGS_Util.createFilePath(projectDataDir, "GTG_database/index/CAA1.index")
nids_up = NGS_Util.createFilePath(projectDataDir, "GTG_database/nids.up")
nrdb40_dust = NGS_Util.createFilePath(orgBlastDustDir, "nrdb40_dust.asnb")
nrdb40_blast_db = NGS_Util.createFilePath(orgBlastDBDir, "nrdb40")
########################################################################################## Sequence Blast Output ######################################################################################
orgBlastResDir = NGS_Util.createDirectoryPath(projectResultDir, "blast_results")
jointBlastDir = NGS_Util.createDirectoryPath(projectResultDir, "blast_joint_results")
NGS_Util.createDirectory(orgBlastResDir)
NGS_Util.createDirectory(jointBlastDir)
########################################################################################## Sequence GTG Output ######################################################################################
orgGTGBlastResDir = NGS_Util.createDirectoryPath(projectResultDir, "GTG_blast_results")
GTGBestHitsDir = NGS_Util.createDirectoryPath(projectResultDir, "GTG_best_hits")
GTGKNNDir = NGS_Util.createDirectoryPath(projectResultDir, "GTG_knn")
NGS_Util.createDirectory(orgGTGBlastResDir)
NGS_Util.createDirectory(GTGBestHitsDir)
NGS_Util.createDirectory(GTGKNNDir)
########################################################################################## Sequence IPR Output ######################################################################################
示例2: initialize
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import createDirectory [as 别名]
def initialize(self, seq_org_list, jointBlastDir, GTGFungiKNNDir, fungi_InterProScan_result, phylogeneticTreeFile, modelTrainingDir):
try:
self.seq_org_list = seq_org_list
self.jointBlastDir = jointBlastDir
self.GTGFungiKNNDir = GTGFungiKNNDir
self.fungi_InterProScan_result = fungi_InterProScan_result
self.phylogeneticTreeFile = phylogeneticTreeFile
self.modelTrainingDir = modelTrainingDir
self.modelTraining_IPR_EC_Dir = NGS_Util.createDirectoryPath(self.modelTrainingDir, "IPR_EC")
self.modelTrainingBlastPVDir = NGS_Util.createDirectoryPath(self.modelTrainingDir, "BlastPValues")
self.modelTraining_EC_Scores_Dir = NGS_Util.createDirectoryPath(self.modelTrainingDir, "ECScores")
self.modelTrainingProbabilityDensityScoreDir = NGS_Util.createDirectoryPath(self.modelTrainingDir, "ProbabilityDensityScore")
self.modelTrainingTreeDir = NGS_Util.createDirectoryPath(self.modelTrainingDir, "Tree")
self.modelTrainingModelDir = NGS_Util.createDirectoryPath(self.modelTrainingDir, "Model")
NGS_Util.createDirectory(self.modelTrainingDir)
NGS_Util.createDirectory(self.modelTraining_IPR_EC_Dir)
NGS_Util.createDirectory(self.modelTrainingBlastPVDir)
NGS_Util.createDirectory(self.modelTraining_EC_Scores_Dir)
NGS_Util.createDirectory(self.modelTrainingProbabilityDensityScoreDir)
NGS_Util.createDirectory(self.modelTrainingTreeDir)
NGS_Util.createDirectory(self.modelTrainingModelDir)
if (os.path.exists(self.phylogeneticTreeFile)):
NGS_Util.copyFile( self.phylogeneticTreeFile,NGS_Util.createFilePath(self.modelTrainingTreeDir,"tree") )
self.phylogeneticTreeFile = NGS_Util.createFilePath(self.modelTrainingTreeDir,"tree")
self.treeCPDS = NGS_Util.createFilePath(self.modelTrainingTreeDir,"tree.cpds")
except Exception:
print traceback.print_exc()
开发者ID:BioinformaticsArchive,项目名称:CoReCo,代码行数:42,代码来源:MetabolicRecontructionsPipeline_ModelTraining.py