From: Diane Trout Date: Tue, 10 Jul 2012 23:55:19 +0000 (-0700) Subject: Fix import statement and typos for genomemap X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=10a94bb9755bb3e838118cabd987a59b07a90214 Fix import statement and typos for genomemap --- diff --git a/htsworkflow/pipelines/genomemap.py b/htsworkflow/pipelines/genomemap.py index 0dc4919..f39df79 100644 --- a/htsworkflow/pipelines/genomemap.py +++ b/htsworkflow/pipelines/genomemap.py @@ -3,6 +3,7 @@ from glob import glob import os import collections +from htsworkflow.pipelines.runfolder import ElementTree vldInfo = collections.namedtuple('vldInfo', 'name is_link') @@ -78,7 +79,7 @@ def guess_genome(contig_sizes): genomes = {'chr1': {197195432: 'mm9', 247249719: 'hg19', }, - 'chrI': {230218, 'sacCer3'}, + 'chrI': {230218: 'sacCer3'}, } for key in genomes: diff --git a/htsworkflow/pipelines/test/test_genomemap.py b/htsworkflow/pipelines/test/test_genomemap.py index 8dc64d0..421308d 100644 --- a/htsworkflow/pipelines/test/test_genomemap.py +++ b/htsworkflow/pipelines/test/test_genomemap.py @@ -57,5 +57,7 @@ class TestGenomeMap(unittest.TestCase): self.assertTrue('chr1.fa' in g) self.assertEqual(len(g), 3) self.assertEqual(g['chr1.fa'], '{0}/chr1.fa'.format(tempgenome)) + + if __name__ == "__main__": unittest.main()