本文整理汇总了Python中NGS_Util.createDirectoryPath方法的典型用法代码示例。如果您正苦于以下问题:Python NGS_Util.createDirectoryPath方法的具体用法?Python NGS_Util.createDirectoryPath怎么用?Python NGS_Util.createDirectoryPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NGS_Util
的用法示例。
在下文中一共展示了NGS_Util.createDirectoryPath方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: initialize
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import createDirectoryPath [as 别名]
def initialize(self, orgListFile, orgFastaDir, orgBlastResDir, jointBlastDir, orgGTGBlastResDir, GTGBestHitsDir, GTGKNNDir, orgIPRScanDir, InterProScan_EC_RAW_results, moveToDir): #, new_seq_org_list):
try:
self.orgListFile = orgListFile
self.orgFastaDir = orgFastaDir
self.orgBlastResDir = orgBlastResDir
self.jointBlastDir = jointBlastDir
self.orgGTGBlastResDir = orgGTGBlastResDir
self.GTGBestHitsDir = GTGBestHitsDir
self.GTGKNNDir = GTGKNNDir
self.orgIPRScanDir = orgIPRScanDir
self.InterProScan_EC_RAW_results = InterProScan_EC_RAW_results
self.moveToDir = moveToDir
self.moveToDir_orgBlastResDir = NGS_Util.createDirectoryPath(self.moveToDir, "blast_results")
self.moveToDir_jointBlastDir = NGS_Util.createDirectoryPath(self.moveToDir, "blast_joint_results")
self.moveToDir_orgGTGBlastResDir = NGS_Util.createDirectoryPath(self.moveToDir, "GTG_blast_results")
self.moveToDir_GTGBestHitsDir = NGS_Util.createDirectoryPath(self.moveToDir, "GTG_best_hits")
self.moveToDir_GTGKNNDir = NGS_Util.createDirectoryPath(self.moveToDir, "GTG_knn")
self.moveToDir_orgIPRScanDir = NGS_Util.createDirectoryPath(self.moveToDir, "iprscan_results")
self.moveToDir_InterProScan_EC_RAW_results = NGS_Util.createDirectoryPath(self.moveToDir, "iprscan_ec_raw_results") #InterProScan_EC_RAW_results
except Exception:
print traceback.print_exc()
示例2: splitFiles
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import createDirectoryPath [as 别名]
def splitFiles(self, organismName):
try:
print "splitFiles: " + organismName
org_fasta = NGS_Util.createFilePath(self.orgFastaDir, organismName + ".faa")
org_ipr_split_dir = NGS_Util.createDirectoryPath(self.orgIPRScanDir, organismName)
call = "sh " + ScriptsDir.IPRScanScripts_fsplit + " " + org_fasta + " " + org_ipr_split_dir
NGS_Util.executeCall(call)
return org_ipr_split_dir
except Exception:
print traceback.print_exc()
return ""
示例3: initialize
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import createDirectoryPath [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
示例4: fastasplitN
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import createDirectoryPath [as 别名]
############################################################################################################################################################################################################
Java_PATH = "/usr/java/latest/bin/"
LibSBML_PATH = "/share/apps/local/lib64/python2.6/site-packages/"
############################################################################################################################################################################################################
fastaSplitNDir = "Path to the program to cut the fasta file in pieces called fastasplitN (Author: David Mathog, Biology Division, Caltech")
fastaSplitN = NGS_Util.createFilePath(fastaSplitNDir,"fastasplitn")
###############################################################################################################################################################################################
projectBinDir = NGS_Util.createDirectoryPath(projectDir,"bin")
BLASTScripts = NGS_Util.createDirectoryPath(projectDir,"Blast_scripts")
BlastScripts_blast=BLASTScripts + "blast.bash"
BlastScripts_blastp_bwdblast=BLASTScripts + "blastp_bwdblast.bash"
BlastScripts_blastp_fwdblast=BLASTScripts + "blastp_fwdblast.bash"
BlastScripts_makeblastdb_AUTO=BLASTScripts + "makeblastdb_AUTO.bash"
BlastScripts_makedustfile_AUTO=BLASTScripts + "makedustfile_AUTO.bash"
BlastScripts_buildBlastResult=BLASTScripts + "buildBlastResult.py"
BlastScripts_combineAllBlasts=BLASTScripts + "combineAllBlasts.py"
BlastScripts_getEcs=BLASTScripts + "getEcs.py"
BlastScripts_rectify_blastresult=BLASTScripts + "rectify_blastresult.py"
GTGScripts = NGS_Util.createDirectoryPath(projectDir,"GTG_scripts")
GTGScripts_reform_knn= GTGScripts + "reform_knn.py"
示例5: Syed
# 需要导入模块: import NGS_Util [as 别名]
# 或者: from NGS_Util import createDirectoryPath [as 别名]
#!/usr/bin/env python
"""
Author: M. Fahad Syed ([email protected])
"""
import sys
sys.path.append("model_reconstruction_pipeline")
import NGS_Util
import ScriptsDir
projectDir = ScriptsDir.projectDir #Needs to be set the user#
projectBinDir = NGS_Util.createDirectoryPath(projectDir,"bin")
projectDataDir = NGS_Util.createDirectoryPath(projectDir,"data")
projectResultDir = NGS_Util.createDirectoryPath(projectDir,"results")
########################################################################################## Blast Toolkit ##########################################################################################
orgBlastDBDir = ScriptsDir.BlastDBDir
orgBlastDustDir = ScriptsDir.BlastDustDir
########################################################################################## Uniprot Data Files ##########################################################################################
uniprot_fasta = NGS_Util.createFilePath(projectDataDir, "Uniprot_EC_GO_Data/uniprot_sprot.fasta")
uniprot_sprot_dat = NGS_Util.createFilePath(projectDataDir, "Uniprot_EC_GO_Data/uniprot_sprot.dat")
uniprot_dust = NGS_Util.createFilePath(orgBlastDustDir, "uniprot_dust.asnb")
uniprot_blast_db = NGS_Util.createFilePath(orgBlastDBDir, "uniprot")
########################################################################################## EC Go Data Files ##########################################################################################
ec_files = NGS_Util.createFilePath(projectDataDir, "Uniprot_EC_GO_Data/ec_files.txt")