diff --git a/mutalyzer/describe.py b/mutalyzer/describe.py index 44e62646fa7e2ba958e29363fb9c47e6da3e9322..4ca3f45352aaab20b2d1e1930198f1757c723903 100644 --- a/mutalyzer/describe.py +++ b/mutalyzer/describe.py @@ -256,6 +256,10 @@ def fitFS(peptide, altPeptide, FS): @arg FS: Frame shift table. @type FS: dict """ + # Todo: This is a temporary fix to prevent crashing on frameshift + # detection (I think bug #124). + return False + if len(peptide) < len(altPeptide): return False @@ -766,7 +770,7 @@ def protein_description(M, s1, s2, s1_start, s1_end, s2_start, s2_end): if (fitFS(s1[s1_start + 1:], s2[s2_start + 1:], FS1) or fitFS(s1[s1_start + 1:], s2[s2_start + 1:], FS2) or fitFS(s2[s2_start + 1:], s1[s1_start + 2:], FS1) or - fitFS(s2[s2_start + 1:], s1[s1_start + 2:], FS2)): + fitFS(s2[s2_start + 1:], s1[s1_start + 2:], FS2)): return [RawVar(DNA=False, start=s1_start + 1, deleted=s1[s1_start], inserted=s2[s2_start], term=len(s2) - s2_start, type="fs")] #if