NAME
Bio::SeqFeature::PositionProxy - handle features when truncation/revcom sequences span a feature
SYNOPSIS
$proxy = Bio::SeqFeature::PositionProxy->new( -loc => $loc,-parent => $basefeature);$seq->add_SeqFeature($feat);
DESCRIPTION
PositionProxy is a Proxy Sequence Feature to handle truncation and revcomp without duplicating all the data within the sequence features. It holds a new location for a sequence feature and the original feature it came from to provide the additional annotation information.
FEEDBACK
Mailing Lists
User feedback is 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.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
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.
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 - Ewan Birney
Ewan Birney <[email protected]>
DEVELOPERS
This class has been written with an eye out of inheritance. The fields the actual object hash are:
_gsf_tag_hash = reference to a hash for the tags_gsf_sub_array = reference to an array for sub arrays_gsf_start = scalar of the start point_gsf_end = scalar of the end point_gsf_strand = scalar of the strand
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
location
Title : locationUsage : my $location = $seqfeature->location()Function: returns a location object suitable for identifying locationof feature on sequence or parent featureReturns : Bio::LocationI objectArgs : none
parent
Title : parentUsage : my $sf = $proxy->parent()Function: returns the seqfeature parent of this proxyReturns : Bio::SeqFeatureI objectArgs : none
start
Title : startUsage : $start = $feat->start$feat->start(20)Function: GetReturns : integerArgs : none
end
Title : endUsage : $end = $feat->end$feat->end($end)Function: getReturns : integerArgs : none
length
Title : lengthUsage :Function:Example :Returns :Args :
strand
Title : strandUsage : $strand = $feat->strand()$feat->strand($strand)Function: get/set on strand information, being 1,-1 or 0Returns : -1,1 or 0Args : none
attach_seq
Title : attach_seqUsage : $sf->attach_seq($seq)Function: Attaches a Bio::Seq object to this feature. ThisBio::Seq object is for the *entire* sequence: iefrom 1 to 10000Example :Returns : TRUE on successArgs :
seq
Title : seqUsage : $tseq = $sf->seq()Function: returns the truncated sequence (if there) for thisExample :Returns : sub seq on attached sequence bounded by start & endArgs : none
entire_seq
Title : entire_seqUsage : $whole_seq = $sf->entire_seq()Function: gives the entire sequence that this seqfeature is attached toExample :Returns :Args :
seqname
Title : seqnameUsage : $obj->seq_id($newval)Function: There are many cases when you make a feature that youdo know the sequence name, but do not know its actualsequence. This is an attribute such that you can storethe seqname.This attribute should *not* be used in GFF dumping, asthat should come from the collection in which the seqfeature was found.Returns : value of seqnameArgs : newvalue (optional)
Proxies
These functions chain back to the parent for all non sequence related stuff.
primary_tag
Title : primary_tagUsage : $tag = $feat->primary_tag()Function: Returns the primary tag for a feature,eg 'exon'Returns : a stringArgs : none
source_tag
Title : source_tagUsage : $tag = $feat->source_tag()Function: Returns the source tag for a feature,eg, 'genscan'Returns : a stringArgs : none
has_tag
Title : has_tagUsage : $tag_exists = $self->has_tag('some_tag')Function:Returns : TRUE if the specified tag exists, and FALSE otherwiseArgs :
get_tag_values
Title : get_tag_valuesUsage : @values = $self->get_tag_values('some_tag')Function:Returns : An array comprising the values of the specified tag.Args :
get_all_tags
Title : get_all_tagsUsage : @tags = $feat->get_all_tags()Function: gives all tags for this featureReturns : an array of stringsArgs : none