Parse hmm(er) profiles in R
1
1
Entering edit mode
7.8 years ago
hivemind ▴ 20

Hello everyone,

I am currently working with HMMER3 and created a bunch of profiles which I now want to use for another project.

The problem is, that I want to write the code for my project in R and can't find a method to load the profiles. Does anybody know a method or package to get the model out of the hmmbuild profile and store them in a way which can be used productively?

If there is no method available in R I could also live with Python, but I would prefer R.

Many thanks in advance.

hmm R parse hmmer profile • 3.5k views
ADD COMMENT
1
Entering edit mode

Another option I can think of is that with hmmsearch you can use different flags to save the results in a table. Which you could use R to parse and format the data how you intend to use it.

 --tblout <f>     : save parseable table of per-sequence hits to file <f>
 --domtblout <f>  : save parseable table of per-domain hits to file <f>
 --pfamtblout <f> : save table of hits and domains to file, in Pfam format <f>
ADD REPLY
0
Entering edit mode

Hi, I've had the same issue, but I ended up using python.

C: parsing hammer 2.3.2 results using biopython

ADD REPLY
0
Entering edit mode
7.8 years ago
hivemind ▴ 20

Hi,

thanks for the replies. I think I have to clarify my request: I am not trying to parse/load the results of hmmsearch (this should be no problem using SearchIO in Python). I want to load the hmmbuild model. Basically the values for the match-states, insertion-states and the transition-probabilities for each residue.

Is there anybody who might be able to tell me, if this is possible/reasonable or should I generate a new hmm profile with one of the hmm packages (like depmixS4)?

ADD COMMENT
2
Entering edit mode

A profile HMM is basically a series of emission probabilities and a state transition matrix. hmmbuild output these in plain text and the format is described in section 8 of the HMMER manual. Not a ready-made solution but it can be used to build your own reader.

ADD REPLY

Login before adding your answer.

Traffic: 2332 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6