Biotech > FAQ > BioPerl FAQ (Frequently Asked Questions)

Can I get domain number from hmmpfam or hmmsearc...

To see other biotech frequently asked questions, please visit http://biotech.fyicenter.com/faq/

(Continued from previous question...)

Can I get domain number from hmmpfam or hmmsearch output?

For example:

 SH2_5: domain 2 of 2, from 349 to 432: score 104.4, E = 1.9e-26

Not directly but you can compute it since the domains are numbered by their order on the protein:

my @domains = $hit->domains;
my $domainnum = 1;
my $total = scalar @domains;
foreach my $domain ( sort { $a->start <=> $b->start } $hit->domains ) {
  print "domain $domainnum of $total,\n";
  $domainnum++;
}

(Continued on next question...)

Other Frequently Asked Questions