Bio::T...nemark(3pm)

πŸ“¦
version 1.7.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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