(hmmsearch) find targets with multiple query profiles with hmmsearch
1
0
Entering edit mode
3.0 years ago
usr2 ▴ 10

hmmsearch manual specifies:

"hmmsearch is used to search one or more profiles against a sequence database"

However I could not find specification about how to specify multiple queries. I tried hmmsearch [options] <hmmfile1> <hmmfile> <seqdb> without succes.

Does someone know if its possible to search for proteins with two profiles?

thanks & cheers,

multiple hmmer queries hmmsearch profiles • 1.5k views
ADD COMMENT
1
Entering edit mode
3.0 years ago
Mensur Dlakic ★ 28k

You will have to concatenate multiple HMMs into a single file. They have a double slash // to signify the end of profile, and the program knows that whatever comes next will be a separate profile. After that, you do a simple command:

hmmsearch [options] <concatenated_hmmfile> <seqdb>
ADD COMMENT
0
Entering edit mode

Many thanks! :)

ADD REPLY
0
Entering edit mode

how can we download seqdb file

ADD REPLY
0
Entering edit mode

You can use any appropriate multi-fasta sequence file.

ADD REPLY
0
Entering edit mode

I have one protein fa file. Now how can I convert that file into seqdb?

For hmmsearch, I wrote one command line once please check and let me know what's wrong in it hmmsearch --tblout <profile_PF03936.hmm> GCF_907164915.1_protein.faa > search_PF03936

ADD REPLY
0
Entering edit mode

Now how can I convert that file into seqdb?

No conversion is needed.

Here is a basic example courtesy of GPT. You need to have these minimum options.

hmmsearch -o output.txt --tblout results.tbl HMM_model.hmm sequence_database.fasta

hmmsearch: The command to run HMMER’s hmmsearch tool.
-o output.txt: This specifies the output file where the standard results will be written.
--tblout results.tbl: This option specifies a tabular output file for the results, which is easier to parse and contains the summary of hits.
HMM_model.hmm: The input file containing the HMM profile model you want to search with.
sequence_database.fasta: The FASTA file containing the sequence(s) to be searched against the HMM profile.
ADD REPLY
0
Entering edit mode

hmmsearch --tblout <profile_PF03936.hmm> GCF_907164915.1_protein.faa > search_PF03936

You should not be literal with the example command I gave. Left and right single angle characters in the example above signify that the name inside is generic, and should be replaced with your own appropriate file name. For your example it most likely should be:

hmmsearch --tblout table_out.txt profile_PF03936.hmm GCF_907164915.1_protein.faa > search_PF03936

This will use a HMM file profile_PF03936.hmm, a sequence file GCF_907164915.1_protein.faa and save tabular output in table_out.txt and the screen output in search_PF03936. That means you didn't provide a name for the table output and HMM name should not be in single angle brackets.

ADD REPLY

Login before adding your answer.

Traffic: 2655 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