Skip to content
Snippets Groups Projects
Commit 4ddd28ad authored by Vermaat's avatar Vermaat
Browse files

Update unit tests to pass with latest NCBI data

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@743 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent b75fd9ae
No related branches found
No related tags found
No related merge requests found
......@@ -328,8 +328,8 @@ class TestServicesSoap():
"""
r = self.client.service.getdbSNPDescriptions('rs9919552')
assert 'NC_000011.9:g.111959625C>T' in r.string
assert 'NG_012337.1:g.7055C>T' in r.string
assert 'NM_003002.2:c.204C>T' in r.string
assert 'NG_012337.2:g.7055C>T' in r.string
assert 'NM_003002.3:c.204C>T' in r.string
assert 'NP_002993.1:p.Ser68=' in r.string
def test_gettranscripts(self):
......@@ -496,8 +496,8 @@ class TestServicesSoap():
Running getTranscriptsAndInfo on a chromosomal slice should include
chromosomal positions.
slice: 48284000 - 48259456 (COL1A1 with 5001 and 2001 borders)
translation start: 48284000 - 5001 + 1 = 48279000
slice: 48284003 - 48259456 (COL1A1 with 5001 and 2001 borders)
translation start: 48284003 - 5001 + 1 = 48279003
translation end: 48259456 + 2001 = 48261457
"""
ud = str(self.client.service.sliceChromosomeByGene('COL1A1', 'human', 5000, 2000))
......@@ -508,18 +508,18 @@ class TestServicesSoap():
for t in r.TranscriptInfo:
if t.name != 'COL1A1_v001':
continue
assert_equal(t.cTransStart, '-126')
assert_equal(t.cTransStart, '-129')
assert_equal(t.gTransStart, 5001)
assert_equal(t.chromTransStart, 48279000)
assert_equal(t.chromTransStart, 48279003)
assert_equal(t.cTransEnd, '*1406')
assert_equal(t.gTransEnd, 22544)
assert_equal(t.gTransEnd, 22547)
assert_equal(t.chromTransEnd, 48261457)
assert_equal(t.sortableTransEnd, 5801)
assert_equal(t.sortableTransEnd, 4883)
assert_equal(t.cCDSStart, '1')
assert_equal(t.gCDSStart, 5127)
assert_equal(t.gCDSStart, 5130)
assert_equal(t.chromCDSStart, 48278874)
assert_equal(t.cCDSStop, '4395')
assert_equal(t.gCDSStop, 21138)
assert_equal(t.cCDSStop, '3477')
assert_equal(t.gCDSStop, 21141)
assert_equal(t.chromCDSStop, 48262863)
@slow
......
......@@ -321,8 +321,8 @@ class TestWSGI():
r.mustcontain('0 Errors',
'0 Warnings',
'NC_000011.9:g.111959625C>T',
'NG_012337.1:g.7055C>T',
'NM_003002.2:c.204C>T',
'NG_012337.2:g.7055C>T',
'NM_003002.3:c.204C>T',
'NP_002993.1:p.Ser68=')
def test_snp_converter_invalid(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment