Algorithm::HMM(3pm)

Algorithm::HMM3pm

Perl bindings for a hidden markov model library.

Usage

  use Algorithm::HMM;
  # Load a Hidden Markov Model.
  my $hmm = new Algorithm::HMM(Model => 'sample.hmm');
  # Run a sequence through the loaded model.
  my $rep = $hmm->search("AAIELKBPOWELKQJPASDLKJIGE");
  # Get all the global hits from the search.
  my @ghits = $rep->global_hits();
  # Get all the domain hits from the search.
  my @dhits = $rep->domain_hits();
  # Display information about the domain hits.
  for (@dhits) {
    print("pvalue = " . $_->pvalue . "\n");
    print("evalue = " . $_->evalue . "\n");
    print("score  = " . $_->score  . "\n");
  }
  # Save the model to a different file.
  $hmm->save("sample.hmm.0");
  # Load the saved model again.
  $hmm->load("sample.hmm.1")

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From psortb 3.0.6+dfsg-4+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.