コード例 #1
0
ファイル: CmdRule.py プロジェクト: Moxikai/pubMunch
 def openIn(self, autoDecompress=True):
     """open the input file for reading in the ExRun process"""
     path = self.__setupIn()
     if fileOps.isCompressed(path) and autoDecompress:
         return fileOps.openz(path)
     else:
         return open(path)
コード例 #2
0
ファイル: CmdRule.py プロジェクト: strbean/pubMunch-BRCA
 def openIn(self, autoDecompress=True):
     """open the input file for reading in the ExRun process"""
     path = self.__setupIn()
     if fileOps.isCompressed(path) and autoDecompress:
         return fileOps.openz(path)
     else:
         return open(path)
コード例 #3
0
ファイル: CmdRule.py プロジェクト: Moxikai/pubMunch
 def openOut(self, autoCompress=True):
     """open the output file for writing from the ExRun process"""
     path = self.__setupOut(autoCompress)
     if fileOps.isCompressed(path) and autoCompress:
         return fileOps.openz(path, "w")
     else:
         return open(path, "w")
コード例 #4
0
ファイル: CmdRule.py プロジェクト: strbean/pubMunch-BRCA
 def openOut(self, autoCompress=True):
     """open the output file for writing from the ExRun process"""
     path = self.__setupOut(autoCompress)
     if fileOps.isCompressed(path) and autoCompress:
         return fileOps.openz(path, "w")
     else:
         return open(path, "w")