2 # BioPerl module for Bio::Tools::Tmhmm
4 # Original copyright Balamurugan Kumarasamy
5 # Re-written cleanly by Torsten Seemann, Sep 2006
8 # You may distribute this module under the same terms as Perl itself
12 Bio::Tools::Tmhmm - parse TMHMM output (TransMembrane HMM)
16 use Bio::Tools::Tmhmm;
17 my $parser = Bio::Tools::Tmhmm->new(-fh => $filehandle );
18 while ( my $tmhmm_feat = $parser->next_result ) {
20 push @tmhmm_feat, $tmhmm_feat;
25 TMHMM is software for the prediction of transmembrane helices in proteins.
26 See L<http://www.cbs.dtu.dk/services/TMHMM/> for more details.
28 This module parses the "long output" format of TMHMM 2.0 and
29 creates a Bio:SeqFeature::Generic object for each C<TMHelix> feature found
32 my_sequence_id TMHMM2.0 TMhelix 54 76
39 User feedback is an integral part of the evolution of this and other
40 Bioperl modules. Send your comments and suggestions preferably to
41 the Bioperl mailing list. Your participation is much appreciated.
43 bioperl-l@bioperl.org - General discussion
44 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
48 Please direct usage questions or support issues to the mailing list:
50 I<bioperl-l@bioperl.org>
52 rather than to the module maintainer directly. Many experienced and
53 reponsive experts will be able look at the problem and quickly
54 address it. Please include a thorough description of the problem
55 with code and data examples if at all possible.
59 Report bugs to the Bioperl bug tracking system to help us keep track
60 of the bugs and their resolution. Bug reports can be submitted via the
63 https://github.com/bioperl/bioperl-live/issues
65 =head1 AUTHOR - Torsten Seemann
67 Email torsten.seemann AT infotech.monash.edu.au
69 =head1 CONTRIBUTOR - Bala
71 Email savikalpa@fugu-sg.org
75 The rest of the documentation details each of the object methods.
76 Internal methods are usually preceded with a _
80 package Bio
::Tools
::Tmhmm
;
84 use Bio
::Tools
::AnalysisResult
;
88 use base
qw(Bio::Root::Root Bio::Root::IO Bio::Tools::AnalysisResult);
90 use Bio
::SeqFeature
::Generic
;
96 Usage : my $obj = Bio::Tools::Tmhmm->new();
97 Function: Builds a new Bio::Tools::Tmhmm object
98 Returns : Bio::Tools::Tmhmm
99 Args : Either of the following as per L<Bio::Root::IO> interface
106 my($class,@args) = @_;
107 my $self = $class->SUPER::new
(@args);
108 $self->_initialize_io(@args);
116 Usage : my $feat = $Tmhmm->next_result
117 Function: Get the next result set from parser data
118 Returns : Bio::SeqFeature::Generic
126 # # my_sequence_id Length: 178
127 # my_sequence_id TMHMM2.0 outside 1 53
128 # my_sequence_id TMHMM2.0 TMhelix 54 76
129 # my_sequence_id TMHMM2.0 inside 77 115
131 while (my $line = $self->_readline) {
132 if ( $line =~ m/^(\S+)\s+(\S+)\s+(TMhelix)\s+(\d+)\s+(\d+)$/i ) {
133 return Bio
::SeqFeature
::Generic
->new(
134 -primary
=> 'transmembrane',