예제 #1
0
 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
0
 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
0
def testCactus_Random(self, matchingAlgorithm):
    configFile = getConfigFile(matchingAlgorithm)
    runWorkflow_multipleExamples(getCactusInputs_random,
                                 testNumber=TestStatus.getTestSetup(),
                                 buildReference=True,
                                 configFile=configFile)
    os.remove(configFile)
예제 #4
0
 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,
         "testJobTree")  #A directory for the job tree to be created in
예제 #5
0
def runCactus_Random(self, matchingAlgorithm):
    configFile = getConfigFile(matchingAlgorithm)
    runWorkflow_multipleExamples(self.id(),
                                 getCactusInputs_random,
                                 testNumber=TestStatus.getTestSetup(),
                                 configFile=configFile)
    os.remove(configFile)
예제 #6
0
def testCactus_Random(self, matchingAlgorithm):
    configFile = getConfigFile(matchingAlgorithm)
    runWorkflow_multipleExamples(getCactusInputs_random, 
                                 testNumber=TestStatus.getTestSetup(), 
                                 buildReference=True,
                                 configFile=configFile)
    os.remove(configFile)
 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)
 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.tempMatchGraphDirectory = self.tempDir + "/tempMatchGraph"
     unittest.TestCase.setUp(self)
 def testCactus_RandomAlignmentsOnly(self):
     """Build mafs from cactusDisks containing no trees, faces or reference.
     """
     runWorkflow_multipleExamples(
         getCactusInputs_random,  #Just for the alignments.
         testNumber=TestStatus.getTestSetup(),
         makeMAFs=True,
         buildAvgs=False,
         buildReference=False)
예제 #10
0
 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")
예제 #11
0
 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")
예제 #12
0
파일: bioioTest.py 프로젝트: adderan/sonLib
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     unittest.TestCase.setUp(self)
     self.tempDir = getTempDirectory(os.getcwd())
     self.tempFiles = []
예제 #13
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     unittest.TestCase.setUp(self)
예제 #14
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     unittest.TestCase.setUp(self)
     self.tempDir = getTempDirectory(os.getcwd())
     self.tempFiles = []
예제 #15
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup(3, 10, 0, 0)
     self.batchSystem = "parasol"
     unittest.TestCase.setUp(self)
예제 #16
0
 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
예제 #17
0
 def testCactus_Random(self):
     runWorkflow_multipleExamples(getCactusInputs_random,
                                  testNumber=TestStatus.getTestSetup(),
                                  buildCactusPDF=True,
                                  buildAdjacencyPDF=True)
 def testCactus_RandomAlignmentsOnly(self):
     """Build mafs from cactusDisks containing no trees, faces or reference.
     """
     runWorkflow_multipleExamples(getCactusInputs_random, #Just for the alignments.
                                  testNumber=TestStatus.getTestSetup(), 
                                  makeMAFs=True,buildAvgs=False, buildReference=False)
예제 #19
0
 def setUp(self):
     unittest.TestCase.setUp(self)
     self.testNo = TestStatus.getTestSetup(1, 2, 10, 10)
예제 #20
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     unittest.TestCase.setUp(self)
 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)
예제 #22
0
파일: nxtreeTest.py 프로젝트: ptdtan/sonLib
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     unittest.TestCase.setUp(self)
     self.trees = randomTreeSet()
 def testCactus_Random(self):
     runWorkflow_multipleExamples(getCactusInputs_random, 
                                  testNumber=TestStatus.getTestSetup(), 
                                  buildAvgs=True)
예제 #24
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup(3, 10, 0, 0)
     self.batchSystem = "parasol"
     unittest.TestCase.setUp(self)
예제 #25
0
 def testCactusNormalisation_Random(self):
     runWorkflow_multipleExamples(self.id(),
                                  getCactusInputs_random,
                                  testNumber=TestStatus.getTestSetup())
 def testCactus_Random(self):
     runWorkflow_multipleExamples(self.id(),
                                  getCactusInputs_random,
                                  testNumber=TestStatus.getTestSetup(),
                                  buildAvgs=True)
예제 #27
0
 def testCactusRecursiveHalGenerator_Random(self):
     runWorkflow_multipleExamples(getCactusInputs_random,
                                  testNumber=TestStatus.getTestSetup(),
                                  buildReference=True, buildHal=True, buildFasta=True)
예제 #28
0
 def setUp(self):
     unittest.TestCase.setUp(self)
     self.testNo = TestStatus.getTestSetup(1, 2, 10, 10)
예제 #29
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     self.tempFiles = []
     unittest.TestCase.setUp(self)
예제 #30
0
 def testCactusNormalisation_Random(self):
     runWorkflow_multipleExamples(getCactusInputs_random,
                                  testNumber=TestStatus.getTestSetup())
예제 #31
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     unittest.TestCase.setUp(self)
     self.trees = randomTreeSet()
예제 #32
0
 def testCactusCore_Random(self):
     for test in xrange(TestStatus.getTestSetup()):
         randomConfigFile=getRandomConfigFile()
         runWorkflow_multipleExamples(getCactusInputs_random, 
                                      configFile=randomConfigFile)
         os.remove(randomConfigFile)
예제 #33
0
 def testCactusCore_Random(self):
     for test in xrange(TestStatus.getTestSetup()):
         randomConfigFile = getRandomConfigFile()
         runWorkflow_multipleExamples(getCactusInputs_random,
                                      configFile=randomConfigFile)
         os.remove(randomConfigFile)
예제 #34
0
 def setUp(self):
     self.testNo = TestStatus.getTestSetup()
     self.tempFiles = []
     unittest.TestCase.setUp(self)
 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)
예제 #36
0
 def testCactus_Random(self):
     runWorkflow_multipleExamples(getCactusInputs_random,
                                  testNumber=TestStatus.getTestSetup(),
                                  makeCactusTreeStats=True)
예제 #37
0
 def testCactusRecursiveHalGenerator_Random(self):
     runWorkflow_multipleExamples(getCactusInputs_random,
                                  testNumber=TestStatus.getTestSetup(),
                                  buildReference=True,
                                  buildHal=True,
                                  buildFasta=True)