Rust interface to the HMMER C code. This library provides a Rust interface which builds upon the bindings generated by libhmmer-sys and is intended to provide a more idiomatic Rust interface.
It is quite new and not all of the functionality of HMMER is exposed yet. If you need something that is not exposed, please open an issue or a pull request, or better yet have a go at implementing it yourself.
As this is still early days, the API is likely to change. If you are using this library, please pin your dependency to a specific version.
Example usage, running a HMMSEARCH:
let hmms = read_hmms_from_path
.unwrap;
let hmm = &hmms;
println!;
let mut hmmsearch = new;
let mut query_seq = new;
let seq: & =
b"MVYSGPNAPIEVGNSLPLSEIPLATEIHNIELTPGKGGQLVRSAGSSAQLLAKEGNYVTLRLPSGEMRFVRKECYATIGQ";
query_seq.replace_sequence.unwrap;
debug!;
hmmsearch.query;
let hmmsearch_result = hmmsearch.get_results;
println!;
for hit in hmmsearch_result.hits
Output of this program:
HMM name: S2.1.ribosomal_protein_L2_rplB
Total number of reported hits: 1
New hit:
Hit name:
Hit score: 150.01991
current domain counter 0
New domain:
Domain score: 149.90887
Domain evalue: 1.4970530541655288e-48