Bio::T...nemark(3pm)
π Bio::Tools::Genemark π
okay bestie, so this is a page from the User Contributed Perl Documentation, and it's literally all about Bio::Tools::Genemark β the lil module that holds the results of one Genemark run. pull up a chair, we're doing bioinformatics and we're doing it cute π§β¨
πΈ NAME πΈ
Bio::Tools::Genemark β results of one Genemark run, bestie. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
okay so here's how you actually use this thing, no cap:
$Genemark = Bio::Tools::Genemark->new(-file => 'result.Genemark');
# filehandle:
$Genemark = Bio::Tools::Genemark->new( -fh => \*INPUT );
# parse the results
# note: this class is-a Bio::Tools::AnalysisResult which implements
# Bio::SeqAnalysisParserI, i.e., $Genemark->next_feature() is the same
while($gene = $Genemark->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)
$Genemark->close();
no fr, that close() is ESSENTIAL if you gave a filename at initialization β otherwise the file just stays open forever like a situationship you never ended π
π¦ DESCRIPTION π¦
the Genemark module is your parser bestie for Genemark gene structure prediction output. it takes one gene prediction and turns it into a Bio::SeqFeature::Gene::Transcript-derived object. slay.
ngl, this module was developed around genemark.hmm for eukaryots v2.2a and will probably not work with other versions. so likeβ¦ don't come for me if you use a different version π
it also implements the Bio::SeqAnalysisParserI interface, so it can be used wherever such an object fits. see Bio::SeqAnalysisParserI. iykyk π
π FEEDBACK π
π Mailing Lists π
user feedback is an integral part of the evolution of this and other Bioperl modules β like, genuinely, we need you π«Ά. send your comments and suggestions preferably to one of the Bioperl mailing lists. 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. many experienced and reponsive experts will be able 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. give them the β¨fullβ¨ tea so they can actually help you.
π Reporting Bugs π
report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π AUTHOR - Hilmar Lapp, Mark Fiers π
email hlapp@gmx.net m.w.e.j.fiers@plant.wag-ur.nl
iconic authors, we stan π
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ (you know, the lil underscore that says "not for you bestie, this is internal business" π).
π₯ new
- Title β
new - Usage β
my $obj = Bio::Tools::Genemark->new(); - Function β Builds a new Bio::Tools::Genemark object
- Returns β an instance of Bio::Tools::Genemark
- Args β seqname
π₯ analysis_method
- Usage β
$Genemark->analysis_method(); - Purpose β Inherited method. Overridden to ensure that the name matches
/GeneMark.hmm/i. - Returns β String
- Argument β n/a
π₯ next_feature
- Title β
next_feature - Usage β
while($gene = $Genemark->next_feature()) {
# do something
}
- Function β Returns the next gene structure prediction of the Genemark 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::Gene object.
- Args β
π₯ next_prediction
- Title β
next_prediction - Usage β
while($gene = $Genemark->next_prediction()) {
# do something
}
- Function β Returns the next gene structure prediction of the Genemark result file. Call this method repeatedly until FALSE is returned.
- Example β
- Returns β A Bio::Tools::Prediction::Gene object.
- Args β
π₯ _parse_predictions
- Title β
_parse_predictions() - Usage β
$obj->_parse_predictions() - Function β Parses the prediction section. Automatically called by
next_prediction()if not yet done. - 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.
π₯ _seqname
- Title β
_seqname - Usage β
$obj->_seqname($seqname) - Function β internal
- Example β
- Returns β String
and that's the whole page bestie, you ate that π
β¨ this little gem is from perl v5.32.1, dated 2021-08-15, and it lives under the name Bio::T...nemark(3pm) in the User Contributed Perl Documentation. go forth and parse some genes, main character πΈπ¦π
π¦ 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