Bio::T...TargetP(3pm)
π Bio::T...TargetP π
ok so bestie, you're looking at the manual page for Bio::T...TargetP, part of the User Contributed Perl Documentation set. it's giving "I parse your TargetP output so you don't have to" and honestly? iconic. π
β¨ NAME β¨
Bio::Tools::TargetP β the results of one TargetP run π
πΈ SYNOPSIS πΈ
ok so here's the vibe, literally just:
use Bio::Tools::TargetP;
#filename for TargetP result :
$targetp = Bio::Tools::TargetP->new(-file => 'targetp.out');
# filehandle for TargetP :
$targetp = Bio::Tools::TargetP->new( -fh => \*INPUT );
### targetp v1.1 prediction results ##################################
#Number of query sequences: 11
#Cleavage site predictions included.
#Using NON-PLANT networks.
#
#Name Len mTP SP other Loc RC TPlen
#----------------------------------------------------------------------
#swall|Q9LIP3|C72Y_AR 500 0.245 0.935 0.009 S 2 22
#swall|Q52813|AAPQ_RH 400 0.170 0.462 0.577 _ 5 -
#swall|O86459|AAT_RHI 400 0.346 0.046 0.660 _ 4 -
# parse the results
while($feature = $targetp->next_prediction()) {
#$feature is a Bio::SeqFeature::Generic object
my $method = $targetp->analysis_method();
my $vesion = $targetp->analysis_method_version() || $feature->source();
my $seqid = $feature->seq_id();
# ...
}
# essential if you gave a filename at initialization (otherwise the file
# will stay open)
$targetp->close();
π¦ DESCRIPTION π¦
the TargetP modules serve up parsed info about protein localization, no cap. it reads in a targetp output file, parses those results, and hands you back a Bio::SeqFeature::Generic object for every sequence it finds that has a subcellular localization. one object per sequence, cute and orderly, we love to see it. β¨
π FEEDBACK π
π¬ Mailing Lists
fr fr, user feedback is a whole integral part of how this module (and every other Bioperl module) evolves. send your comments and suggestions to the Bioperl mailing list β your participation is much appreciated π«Ά
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π« Support
please send usage questions and support issues to the mailing list:
bioperl-l@bioperl.org
...rather than sliding into the module maintainer's DMs directly. there are so many experienced and responsive experts on the list who'll be able to look at your problem and address it fast. if at all possible, include a thorough description of the problem along with code and data examples. periodt. π
π Reporting Bugs
report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution. bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π AUTHORS - Emmanuel Quevillon π
Email emmanuel.quevillon@versailles.inra.fr
Describe contact details here
π APPENDIX π
the rest of the documentation goes into detail on each of the object methods. internal methods are usually preceded with a _. iykyk. π
analysis_method
- Usage β
$self->analysis_method(); - Purpose β inherited method. overridden to ensure that the name matches
- Returns β String
- Argument β n/a
network
- Title β network
- Usage β
$self->network($network) - Function β this method Get/Set's the network used for the analysis (
PLANTorNON-PLANT) - Example β
- Returns β string
- Arguments β on set, the network used
cleavage
- Title β cleavage
- Usage β
$self->cleavage($cleavage) - Function β this method Get/Set's whether the SignalP program was used to run TargetP
- Example β
- Returns β 1 or 0
- Arguments β on set, the cleavage used or not
next_prediction
- Usage β
$targetp->next_prediction() - Purpose β returns the next TargetP prediction
- Returns β a
Bio::SeqFeature::Genericobject - Arguments β n/a
create_feature
- Title β create_feature
- Usage β
$self->create_feature(\%hash); - Function β this method creates a new
Bio::SeqFeature::Genericobject - Example β
- Returns β
Bio::SeqFeature::Generic - Arguments β hash reference
π PRIVATE METHODS π
_initialize_state
- Title β _initialize_state
- Usage β n/a; usually called by
_initialize()itself called bynew() - Function β this method is supposed to reset the state such that any 'history' is lost. State information that does not change during object lifetime is not considered as history, e.g. parent, name, etc shall not be reset. An inheriting object should only be concerned with state information it introduces itself, and for everything else call
SUPER::_initialize_state(@args).
The argument syntax is the same as for new() and _initialize(), i.e., named parameters following the -name=>$value convention. The following parameters are dealt with by the implementation provided here:
-INPUT,-FH,-FILE
(tags are case-insensitive).
- Example β
- Returns β
- Args β
_predictions
- Usage β
$targetp->_prediction() - Purpose β returns the number of TargetP predictions
- Returns β a scalar (number)
- Arguments β n/a
_parsed
- Title β _parsed
- Usage β
$targetp->_parsed(1) - Function β this method is used to know if the output result is parsed or not. For internal use only
- Example β
- Returns β 1/0
- Arguments β 1/0 for setting
_parse_results
- Title β _parse_results
- Usage β
$self->_parse_results() - Function β this method parses a TargetP output. For internal use only
- Example β
- Returns β n/a
- Arguments β none
_parse_line
- Title β _parse_line
- Usage β
$self->_parse_line($line) - Function β this method parses the line result. For internal use only
- Example β
- Returns β Hash reference
- Arguemnts β line to parse
_add_feature
- Title β _add_feature
- Usage β
$self->_add_feature($feature) - Function β this method stores a feature object. For internal use only
- Example β
- Returns β n/a
- Arguments β
Bio::SeqFeature::Generic
_toString_location
- Title β _toString_location
- Usage β
$self->_toString_location($key) - Function β this method converts the 'one letter code' location to the corresponding definition. For internal use only
- Example β
- Returns β Location or undef
- Arguments β String
ok that's the whole page bestie, you ate that πβ¨ this gem was brought to you by perl v5.32.1, dated 2021-08-15, and filed under Bio::T...TargetP(3pm). go parse some proteins, mwah πππ¦
π¦ 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