1 package HMMER::Profile::Jnet;
7 use base qw(HMMER::Profile Write);
14 while (my $line = <$fh>) {
16 my @data = split / /, $line;
17 croak "HMMER::Profile::Jnet: Wrong number of data items in ".$self->path." at line $." if @data != 24;
18 $self->add_line(@data);
25 for ($self->get_line) {
26 # This provides the same output as for hmm2profile
29 sprintf "%2.5f", 1 / (1 + (exp(-($_ / 100))));
39 #die "Sorry, I don't think you mean to use this function. If you do, remove this line";
42 print $fh join(" ", @{$_}), "\n";
54 HMMER::Profile::Jnet - Read in the data output from HMMER::Profile::jnet()
58 Reads the output of the HMMER::Profile::jnet() function.
62 =head2 my $prof = HMMER::Profile::Jnet->new;
66 =head2 $prof->read_file($path_to_file);
70 =head2 my @data = $prof->seq
72 Returns an AoA of the numbers.
76 Packages Root, Read, Sequence and HMMER::Profile.
80 Jonathan Barber <jon@compbio.dundee.ac.uk>