本文整理汇总了Python中sonLib.bioio.TestStatus.getTestSetup方法的典型用法代码示例。如果您正苦于以下问题:Python TestStatus.getTestSetup方法的具体用法?Python TestStatus.getTestSetup怎么用?Python TestStatus.getTestSetup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sonLib.bioio.TestStatus
的用法示例。
在下文中一共展示了TestStatus.getTestSetup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
unittest.TestCase.setUp(self)
self.testNo = TestStatus.getTestSetup(1, 1, 2, 2)
self.depth = TestStatus.getTestSetup(1, 2, 3, 5)
self.jobTreeDir = os.path.join(os.getcwd(), "jobTree") #A directory for the job tree to be created in
self.tempFileTreeDir = os.path.join(os.getcwd(), "tempFileTree") #Ensures that file tree is visible
self.tempFileTree = TempFileTree(self.tempFileTreeDir) #A place to get temp files from
示例2: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
unittest.TestCase.setUp(self)
self.testNo = TestStatus.getTestSetup(1, 1, 5, 5)
self.depth = TestStatus.getTestSetup(1, 2, 2, 3)
self.jobTreeDir = os.getcwd() + "/jobTree" #A directory for the job tree to be created in
self.tempFileTreeDir = os.path.join(os.getcwd(), "tempFileTree")
self.tempFileTree = TempFileTree(self.tempFileTreeDir) #A place to get temp files from
parasolRestart()
示例3: testCactus_Random
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def testCactus_Random(self, matchingAlgorithm):
configFile = getConfigFile(matchingAlgorithm)
runWorkflow_multipleExamples(getCactusInputs_random,
testNumber=TestStatus.getTestSetup(),
buildReference=True,
configFile=configFile)
os.remove(configFile)
示例4: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
#This is the number of random problems to solve, handed to the test code
self.testNo = TestStatus.getTestSetup(shortTestNo=1, mediumTestNo=5,
longTestNo=10, veryLongTestNo=100)
self.tempFiles = []
self.tempDir = getTempDirectory(os.getcwd())
self.tempBlossomDirectory = self.tempDir + "/tempBlossom"
unittest.TestCase.setUp(self)
示例5: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
self.testNo = TestStatus.getTestSetup(1, 5, 10, 100)
self.tempDir = getTempDirectory(os.getcwd())
self.tempFiles = []
unittest.TestCase.setUp(self)
self.tempOutputFile = os.path.join(self.tempDir, "results1.txt")
self.tempFiles.append(self.tempOutputFile)
self.tempOutputFile2 = os.path.join(self.tempDir, "results2.txt")
self.tempFiles.append(self.tempOutputFile2)
self.encodePath = os.path.join(TestStatus.getPathToDataSets(), "MAY-2005")
示例6: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
unittest.TestCase.setUp(self)
self.testNo = TestStatus.getTestSetup(1, 2, 10, 10)
示例7: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
self.testNo = TestStatus.getTestSetup()
unittest.TestCase.setUp(self)
示例8: testCactus_Random
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def testCactus_Random(self):
"""Build mafs from cactusDisks containing trees, face and an reference (the output will include the MAFS ordered by reference)
"""
runWorkflow_multipleExamples(getCactusInputs_random,
testNumber=TestStatus.getTestSetup(),
makeMAFs=True)
示例9: testCactusRecursiveHalGenerator_Random
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def testCactusRecursiveHalGenerator_Random(self):
runWorkflow_multipleExamples(getCactusInputs_random,
testNumber=TestStatus.getTestSetup(),
buildReference=True, buildHal=True, buildFasta=True)
示例10: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
self.testNo = TestStatus.getTestSetup()
unittest.TestCase.setUp(self)
self.tempDir = getTempDirectory(os.getcwd())
self.tempFiles = []
示例11: testCactus_Random
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def testCactus_Random(self):
runWorkflow_multipleExamples(getCactusInputs_random,
testNumber=TestStatus.getTestSetup(),
buildAvgs=True)
示例12: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
self.testNo = TestStatus.getTestSetup()
unittest.TestCase.setUp(self)
self.trees = randomTreeSet()
示例13: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
self.testNo = TestStatus.getTestSetup(3, 10, 0, 0)
self.batchSystem = "parasol"
unittest.TestCase.setUp(self)
示例14: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
unittest.TestCase.setUp(self)
self.testNo = TestStatus.getTestSetup(1, 2, 10, 10)
self.tempDir = getTempDirectory(os.getcwd())
self.jobTreeDir = os.path.join(self.tempDir, "jobTree") #A directory for the job tree to be created in
示例15: setUp
# 需要导入模块: from sonLib.bioio import TestStatus [as 别名]
# 或者: from sonLib.bioio.TestStatus import getTestSetup [as 别名]
def setUp(self):
self.testNo = TestStatus.getTestSetup()
self.tempFiles = []
unittest.TestCase.setUp(self)