Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seroWY doesn't handle gaps #25

Open
kwongj opened this issue Apr 18, 2017 · 0 comments
Open

seroWY doesn't handle gaps #25

kwongj opened this issue Apr 18, 2017 · 0 comments
Assignees
Labels

Comments

@kwongj
Copy link
Contributor

kwongj commented Apr 18, 2017

If there are gaps in the assembly, unable to translate sequence:

$ meningotype --all fasta/NM_NM115.fna 
SAMPLE_ID	SEROGROUP	ctrA	MLST	PorA	FetA	PorB	fHbp	NHBA	NadA	BAST
Traceback (most recent call last):
  File "/home/jasonk1/scripts/bin/meningotype", line 11, in <module>
    load_entry_point('meningotype==0.8b0', 'console_scripts', 'meningotype')()
  File "/home/jasonk1/.local/lib/python2.7/site-packages/meningotype/meningotype.py", line 504, in main
    seroCOUNT = '/'.join(seroTYPE(f, seroPRIMERS, allelesDB))
  File "/home/jasonk1/.local/lib/python2.7/site-packages/meningotype/meningotype.py", line 154, in seroTYPE
    sero = seroWY(f, sero)
  File "/home/jasonk1/.local/lib/python2.7/site-packages/meningotype/meningotype.py", line 160, in seroWY
    wyTYPE = menwy.menwy(f, False)
  File "/home/jasonk1/.local/lib/python2.7/site-packages/meningotype/menwy.py", line 60, in menwy
    EX7E = str(EX7E_SEQ.translate())
  File "/home/jasonk1/.local/lib/python2.7/site-packages/Bio/Seq.py", line 1025, in translate
    cds, gap=gap)
  File "/home/jasonk1/.local/lib/python2.7/site-packages/Bio/Seq.py", line 2098, in _translate_str
    "Codon '{0}' is invalid".format(codon))
Bio.Data.CodonTable.TranslationError: Codon 'AT-' is invalid
@kwongj kwongj self-assigned this Apr 18, 2017
@kwongj kwongj added the bug label Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant