Bio::T...Fgenesh(3pm)
β¨ Bio::T...Fgenesh(3pm) β¨
okay bestie, buckle up π this is Bio::Tools::Fgenesh, straight out of the User Contributed Perl Documentation collection. it's a Perl module and it has ONE job and it does it gorgeously.
πΈ NAME πΈ
Bio::Tools::Fgenesh β parse results of one Fgenesh run. that's it. that's the whole vibe. one run, one parse, no cap. π
π¦ SYNOPSIS π¦
here's how you actually use it, copy-paste coded exactly like the original:
use Bio::Tools::Fgenesh;
$fgenesh = Bio::Tools::Fgenesh->new(-file => 'result.fgenesh');
# filehandle:
$fgenesh = Bio::Tools::Fgenesh->new( -fh => \*INPUT );
# parse the results
# note: this class is-a Bio::Tools::AnalysisResult which implements
# Bio::SeqAnalysisParserI, i.e., $fgensh->next_feature() is the same
while($gene = $fgenesh->next_prediction()) {
# $gene is an instance of Bio::Tools::Prediction::Gene, which inherits
# off Bio::SeqFeature::Gene::Transcript.
#
# $gene->exons() returns an array of
# Bio::Tools::Prediction::Exon objects
# all exons:
@exon_arr = $gene->exons();
# initial exons only
@init_exons = $gene->exons('Initial');
# internal exons only
@intrl_exons = $gene->exons('Internal');
# terminal exons only
@term_exons = $gene->exons('Terminal');
# singleton exons:
($single_exon) = $gene->exons();
}
# essential if you gave a filename at initialization (otherwise the file
# will stay open)
$fgenesh->close();
lowkey important: if you handed it a filename at initialization, calling $fgenesh->close() is essential β otherwise the file just stays open forever. it's giving "left you on read" energy and we do not do that. π
π DESCRIPTION π
the Fgenesh module is a parser for Fgenesh (version 2) gene structure prediction output. it takes one gene prediction and turns it into a Bio::SeqFeature::Gene::Transcript-derived object. slay. π
and because it also implements the Bio::SeqAnalysisParserI interface, you can drop it in wherever an object like that fits. it's a social butterfly fr fr. π¦
π«Ά FEEDBACK π«Ά
π Mailing Lists π
user feedback is, like, an integral part of the evolution of this and other Bioperl modules. send your comments and suggestions preferably to one of the Bioperl mailing lists. your participation is much appreciated β genuinely, we're obsessed with you for it. π₯Ή
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. there are so many experienced and reponsive experts who will be able to look at the problem and quickly address it. please include a thorough description of the problem with code and data examples if at all possible. the more deets, the faster the fix. π
π 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 - Chris Dwan π
Email chris-at-dwan.org β say hi, he made this. π
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ (iykyk β underscore means "don't touch, that's my business"). π
β analysis_method β
- Usage β
$genscan->analysis_method(); - Purpose β inherited method. overridden to ensure that the name matches
/genscan/i. (yes, genscan. that's what it says. iconic of it.) - Returns β string
- Argument β n/a
β next_feature β
- Title β
next_feature - Usage β
while($gene = $fgenesh->next_feature()) {
# do something
}
- Function β returns the next gene structure prediction of the Fgenesh result file. call this method repeatedly until FALSE is returned.
the returned object is actually a SeqFeatureI implementing object. this method is required for classes implementing the SeqAnalysisParserI interface, and is merely an alias for next_prediction() at present.
- Example β
- Returns β a
Bio::Tools::Prediction::Geneobject. - Args β
β next_prediction β
- Title β
next_prediction - Usage β
while($gene = $fgenesh->next_prediction()) { ... } - Function β returns the next gene structure prediction of the Genscan result file. call this method repeatedly until FALSE is returned.
- Example β
- Returns β a
Bio::Tools::Prediction::Geneobject. - Args β
β _parse_predictions β
- Title β
_parse_predictions() - Usage β
$obj->_parse_predictions() - Function β parses the prediction section. automatically called by
next_prediction()if not yet done. it's proactive like that, main character energy. π - Example β
- Returns β
β _prediction β
- Title β
_prediction() - Usage β
$gene = $obj->_prediction() - Function β internal
- Example β
- Returns β
β _add_prediction β
- Title β
_add_prediction() - Usage β
$obj->_add_prediction($gene) - Function β internal
- Example β
- Returns β
β _predictions_parsed β
- Title β
_predictions_parsed - Usage β
$obj->_predictions_parsed - Function β internal
- Example β
- Returns β TRUE or FALSE
β _has_cds β
- Title β
_has_cds() - Usage β
$obj->_has_cds() - Function β whether or not the result contains the predicted CDSs, too.
- Example β
- Returns β TRUE or FALSE
β _read_fasta_seq β
- Title β
_read_fasta_seq() - Usage β
($id,$seqstr) = $obj->_read_fasta_seq(); - Function β simple but specialised FASTA format sequence reader. uses
$self->_readline()to retrieve input, and is able to strip off the traling description lines. - Example β
- Returns β an array of two elements: fasta_id & sequence
and that's the whole page, bestie π this one's perl v5.32.1, dated 2021-08-15, filed under Bio::T...Fgenesh(3pm). go parse something gorgeous. 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