当前位置: 首页>>代码示例>>Python>>正文


Python NGS_Util.createDirectory方法代码示例

本文整理汇总了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  ######################################################################################

开发者ID:argju,项目名称:CoReCo,代码行数:31,代码来源:ProjectDir.py

示例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


注:本文中的NGS_Util.createDirectory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。