18 $self->add_pos(split);
22 =head2 $prof->jpred_profile(@Sequence)
24 Creates a PSIBLAST like profile for Jpred.
29 my ($self, @seqs) = @_;
30 croak "Not passed Sequence objects" if grep { not isa $_, 'Sequence' } @seqs;
31 $self->_check_seq_length(@seqs) or croak "Not passed sequences of equal length\n";
33 my @profile = profile( map { join "", $_->seqs } @seqs );
36 $self->add_pos(@{$_});
42 =head2 _check_seq_length(@Sequence);
44 Checks that we've been passed PSISEQ objects and that they are the same length. Returns undef if their not and warns, otherwise returns the length of the sequence.
48 sub _check_seq_length {
53 $lengths{ $_->seq } = 1;
56 if (keys %lengths != 1) {
57 warn "The sequences are of different lengths";
61 return (keys %lengths)[0];