Bio::T...sFinder(3pm)
β¨ NAME β¨
Bio::Tools::TandemRepeatsFinder β it's a parser for Tandem Repeats Finder output, bestie. That's the whole job and she does it beautifully π
π SYNOPSIS π
okay so here's the vibe, copy-paste ready:
use Bio::Tools::TandemRepeatsFinder;
# create parser
my $parser = Bio::Tools::Bio::Tools::TandemRepeatsFinder->new(-file => 'tandem_repeats.out');
# loop through results
while( my $feature = $parser->next_result ) {
# print the source sequence id, start, end, percent matches, and the consensus sequence
my ($percent_matches) = $feat->get_tag_values('percent_matches');
my ($consensus_sequence) = $feat->get_tag_values('consensus_sequence');
print $feat->seq_id()."\t".$feat->start()."\t".$feat->end()."\t$percent_matches\t$consensus_sequence\n";
}
(yes, the class name in the example really is written out like that and the loop var is $feature while the body uses $feat β we're keeping it 100% verbatim because that's what the page says, no editing the lore π)
πΈ DESCRIPTION πΈ
A parser for Tandem Repeats Finder output. Written and tested for version 4.00. No cap, that's the version it was built for.
So here's where the goods live: Location, seq_id, and score get stored in a Bio::SeqFeature::Generic feature. Everything else? Tags. All the rest of the data is chilling in tags. The available tags are:
period_size
copy_number
consensus_size
percent_matches
percent_indels
percent_a
percent_c
percent_g
percent_t
entropy
consensus_sequence
repeat_sequence
run_parameters
sequence_description
And the run_parameters? Those live inside a hashref, and the keys are:
match_weight
mismatch_weight
indel_weight
match_prob
indel_prob
min_score
max_period_size
π«Ά FEEDBACK π«Ά
π Mailing Lists
User feedback is, like, an integral part of the evolution of this and other Bioperl modules β genuinely iconic behavior. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated, fr fr π₯Ή
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π§ Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. So many experienced and reponsive experts will be able look at the problem and quickly address it. If at all possible, please include a thorough description of the problem with code and data examples β the more detail the better, bestie, it's giving helpful β¨
π Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π AUTHOR - Eric Just π
Email e-just@northwestern.edu
π APPENDIX π
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ (iykyk β the underscore ones are the backstage crew)
β new
Title : new
Usage : my $obj = Bio::Tools::TandemRepeatsFinder->new();
Function: Builds a new Bio::Tools::TandemRepeatsFinder object
Returns : Bio::Tools::TandemRepeatsFinder
Args : -fh/-file => $val, for initing input, see Bio::Root::IO
β version
Title : version
Usage : $self->version( $version )
Function: get/set the version of Tandem Repeats finder that was used in analysis
Returns : value of version of
Args : new value (optional)
β _current_seq_id
Title : _current_seq_id
Usage : $self->_current_seq_id( $current_seq_id )
Function: get/set the _current_seq_id
Returns : value of _current_seq_id
Args : new value (optional)
β _current_seq_description
Title : _current_seq_description
Usage : $self->_current_seq_description( $current_seq_id )
Function: get/set the _current_seq_description
Returns : value of _current_seq_description
Args : new value (optional)
β _current_parameters
Title : _current_parameters
Usage : $self->_current_parameters( $parameters_hashref )
Function: get/set the _current_parameters
Returns : hashref representing current parameters parsed from results file
: keys are
match_weight
mismatch_weight
indel_weight
match_prob
indel_prob
min_score
max_period_size
Args : parameters hashref (optional)
β next_result
Title : next_result
Usage : my $r = $trf->next_result()
Function: Get the next result set from parser data
Returns : Bio::SeqFeature::Generic
Args : none
β _create_feature
Title : _create_feature
Usage : internal method used by 'next_feature'
Function: Takes a line from the results file and creates a bioperl object
Returns : Bio::SeqFeature::Generic
Args : none
and that's the whole page, bestie β you ate πβ¨
This little masterpiece comes to you from perl v5.32.1, dated 2021-08-15, and it's part of the User Contributed Perl Documentation for Bio::T...sFinder(3pm). Obsessed. Periodt. ππ¦π
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms