Bio::S...Handler(3pm)
π NAME π
Bio::SeqIO::game::featHandler β a class for handling feature elements β¨
(that's Bio::S...Handler(3pm) to the manpage system, straight out of the User Contributed Perl Documentation, iykyk π«Ά)
πΈ SYNOPSIS πΈ
okay so real talk: this module is not used directly. it's backstage, not the main act π
π¦ DESCRIPTION π¦
Bio::SeqIO::game::featHandler takes game XML <annotation> elements and converts them into flattened Bio::SeqFeature::Generic objects, which then get added to the sequence. that's the whole glow-up, no cap β¨
π FEEDBACK π
π¬ Mailing Lists
user feedback is literally 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 π«Ά
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 responsive 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 π
π 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
π AUTHOR - Sheldon McKay π
Email mckays@cshl.edu
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ π
π new
- Title:
new - Usage:
my $featHandler = Bio::SeqIO::game::featHandler->new($seq, $seq_h, $ann_l) - Function: creates an object to deal with sequence features
- Returns: a handler object
- Args:
$seqβ a Bio::SeqI compliant object$seq_hβ ref. to a hash of other sequences associated with the main sequence (proteins, etc)$ann_lβ ref. to a list of annotations
𧬠add_source
- Title:
add_source - Usage:
$featHandler->add_source($seq->length, \%tags); - Function: creates a source feature
- Returns: a
Bio::SeqFeature::Genericobject - Args: sequence length and a ref. to a hash of tag/value attributes
π has_gene
- Title:
has_gene - Usage:
my $gene = $self->_has_gene($gene, $gname, $id) - Function: method to get/set the current gene feature
- Returns: a
Bio::SeqFeature::Genericobject (if there is a gene) - Args: (optional)
$geneβ an XML element for the annotation$gnameβ gene name$idβ gene ID (not always the same as the name)
π _has_CDS
- Title:
_has_CDS - Usage:
my $cds = $self->_has_CDS - Function: internal getter/setter for CDS features
- Returns: a
Bio::SeqFeature::Generictranscript object (or nothing) - Args: a
Bio::SeqFeature::Generictranscript feature
β¨ add_annotation
- Title:
add_annotation - Usage:
$featHandler->add_annotation($seq, $type, $id, $tags, $feats) - Function: converts a containment hierarchy into an ordered list of flat features
- Returns: nothing
- Args:
$seqβ a Bio::SeqI compliant object$typeβ the annotation type$idβ the anotation ID$tagsβ ref. to a hash of tag/value attributes$featsβ ref to an array ofBio::SeqFeature::Genericobjects
π _add_generic_annotation
- Title:
_add_generic_annotation - Usage:
$self->_add_generic_annotation($seq, $type, $id, $tags, $feats) - Function: an internal method to handle non-gene annotations
- Returns: nothing
- Args:
$seqβ a Bio::SeqI compliant object$typeβ the annotation type$idβ the anotation ID$tagsβ ref. to a hash of tag/value attributes$featsβ ref to an array ofBio::SeqFeature::Genericobjects
π feature_set
- Title:
feature_set - Usage:
push @feats, $featHandler->feature_set($id, $gname, $set, $anntype); - Function: handles
<feature_span>hierarchies (usually a transcript) - Returns: a list of
Bio::SeqFeature::Genericobjects - Args:
$idβ ID of the feature set$gnameβ name of the gene$setβ the<feature_set>object$anntypeβ type of the parent annotation
π οΈ _build_feature_set
- Title:
_build_feature_set - Usage:
$self->_build_feature_set($set, 1) # 1 flag means retain the exon as a subfeat - Function: an internal method to process attributes and subfeats of a feature set
- Returns: nothing
- Args:
$setβ a<feature_set>element1β optional flag to retain exons as subfeats. Otherwise, they will be converted to sublocations of a parent CDS feature
π₯ _add_feature_span
- Title:
_add_feature_span - Usage:
$self->_add_feature_span($el, 1) - Function: an internal method to process
<feature_span>elements - Returns: nothing
- Args:
$elβ a<feature_span>element1β an optional flag to retain exons as subfeatures
π§ _add_CDS
- Title:
_add_CDS - Usage:
my $cds = $self->_add_CDS($transcript, $tags) - Function: an internal method to create a CDS feature from a transcript feature
- Returns: a
Bio::SeqFeature::Genericobject - Args:
$transcriptβ aBio::SeqFeature::Genericobject for a transcript$tagsβ ref. to a hash of tag/value attributes
and that's a wrap bestie π this page ships with perl v5.32.1, dated 2021-08-15 β go forth and annotate responsibly π
π¦ 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