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

hmm.HMM.create() fails for DNA models #8

Open
andrewparkermorgan opened this issue Dec 12, 2016 · 1 comment
Open

hmm.HMM.create() fails for DNA models #8

andrewparkermorgan opened this issue Dec 12, 2016 · 1 comment
Milestone

Comments

@andrewparkermorgan
Copy link

Hi,

Reading of models built from DNA sequences appears to fail: below I show an example using a motif from the Dfam database (DF0000029).

cp = hmm.HMM.create(input_format = "hmmer", file = "DF0000029.hmm")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/apm/anaconda3/lib/python3.4/site-packages/tral/hmm/hmm.py", line 261, in create
    hmmer_probabilities = next(HMM.read(file))
  File "/Users/apm/anaconda3/lib/python3.4/site-packages/tral/hmm/hmm_io.py", line 187, in read
    for i in string_emissions]
  File "/Users/apm/anaconda3/lib/python3.4/site-packages/tral/hmm/hmm_io.py", line 187, in <listcomp>
    for i in string_emissions]
ValueError: could not convert string to float: 'c'

It seems that too many columns are read from MATCH lines in the model: currently the number of columns is hard-coded as 20 (ie. amino acids) in hmm_io.py @ line 104.

Is there any support for DNA sequences in tral?

@elkeschaper
Copy link
Collaborator

elkeschaper commented Dec 12, 2016 via email

@matteodelucchi matteodelucchi added this to the 3.0.0 milestone Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants