diff --git a/mutalyzer/website.py b/mutalyzer/website.py index 74428d6340538e99eb8399f2787ce1915c535559..1d154ca7ba7d424d29d4d3a12e571ac7e2ca5bd5 100644 --- a/mutalyzer/website.py +++ b/mutalyzer/website.py @@ -800,7 +800,7 @@ class Bed: raw_variants = output.getIndexedOutput('rawVariantsChromosomal', 0) if not raw_variants: web.ctx.status = '404 Not Found' - return 'Sorry, we have not BED track for this variant.' + return 'Sorry, we have no BED track for this variant.' fields = {'name': 'Mutalyzer', 'description': 'Mutalyzer track for ' + variant, @@ -812,7 +812,7 @@ class Bed: for description, positions in raw_variants[2]: bed += '\t'.join([raw_variants[0], str(min(positions) - 1), str(max(positions)), - description, '', raw_variants[1]]) + '\n' + description, '0', raw_variants[1]]) + '\n' return bed #Bed diff --git a/tests/test_website.py b/tests/test_website.py index 09a30ebb9114f4a5129f751d6a2abc92fc718be8..2537d7a675f86feaad4e5f7d0907b3129434a890 100644 --- a/tests/test_website.py +++ b/tests/test_website.py @@ -727,7 +727,7 @@ facilisi.""" """ r = self.app.get('/bed?variant=NM_003002.2%3Ac.274G%3ET') assert_equal(r.content_type, 'text/plain') - r.mustcontain('\t'.join(['chr11', '111959694', '111959695', '274G>T', '', '+'])) + r.mustcontain('\t'.join(['chr11', '111959694', '111959695', '274G>T', '0', '+'])) def test_bed_reverse(self): """ @@ -735,5 +735,5 @@ facilisi.""" """ r = self.app.get('/bed?variant=NM_000132.3%3Ac.%5B4374A%3ET%3B4380_4381del%5D') assert_equal(r.content_type, 'text/plain') - r.mustcontain('\t'.join(['chrX', '154157690', '154157691', '4374A>T', '', '-'])) - r.mustcontain('\t'.join(['chrX', '154157683', '154157685', '4380_4381del', '', '-'])) + r.mustcontain('\t'.join(['chrX', '154157690', '154157691', '4374A>T', '0', '-'])) + r.mustcontain('\t'.join(['chrX', '154157683', '154157685', '4380_4381del', '0', '-']))