NAME
Bio::Map::GeneRelative - Represents being relative to named sub-regions of a
gene.
SYNOPSIS
use Bio::Map::GeneRelative;# say that a something will have a position relative to the start of the# gene on mapmy $rel = Bio::Map::GeneRelative->new(-gene => 0);# or that something will be relative to the third transcript of a gene# on a map$rel = Bio::Map::GeneRelative->new(-transcript => 3);# or to the 5th intron of the default transcript$rel = Bio::Map::GeneRelative->new(-intron => [0, 5]);# use the $rel as normal; see L<Bio::Map::Relative>
DESCRIPTION
Be able to say that a given position is relative to some standard part of a gene.
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 the Bioperl mailing list. 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 of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Sendu Bala
Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : newUsage : my $relative = Bio::Map::Relative->new();Function: Build a new Bio::Map::Relative object.Returns : Bio::Map::Relative objectArgs : -gene => int : coordinates are relative to the int'th basedownstream of the Position's map's gene[default is gene => 0, ie. relative to thestart of the gene],-transcript => int : or relative to the start of the int'thtranscript of the Position's map's gene,-exon => [i, n] : or relative to the start of the n'thtranscript's i'th exon,-intron => [i, n] : or intron,-coding => int : or the start of the int'th transcript's codingregion.-description => string : Free text description of what this relativedescribes(To say a Position is relative to something and upstream of it,the Position's start() co-ordinate should be set negative)In all cases, a transcript number of 0 means the active transcript.
absolute_conversion
Title : absolute_conversionUsage : my $absolute_coord = $relative->absolute_conversion($pos);Function: Convert the start co-ordinate of the supplied position into a numberrelative to the start of its map.Returns : scalar numberArgs : Bio::Map::PositionI object
type
Title : typeUsage : my $type = $relative->type();Function: Get the type of thing we are relative to. The types correspondto a method name, so the value of what we are relative to cansubsequently be found by $value = $relative->$type;Note that type is set by the last method that was set, or duringnew().Returns : 'gene', 'transcript', 'exon', 'intron' or 'coding'Args : none
gene
Title : geneUsage : my $int = $relative->gene();$relative->gene($int);Function: Get/set the distance from the start of the gene that the Position'sco-ordiantes are relative to.Returns : intArgs : none to get, ORint to set; a value of 0 means relative to the start of the gene.
transcript
Title : transcriptUsage : my $int = $relative->transcript();$relative->transcript($int);Function: Get/set which transcript of the Position's map's gene the Position'sco-ordinates are relative to.Returns : intArgs : none to get, ORint to set; a value of 0 means the active (default) transcript.
exon
Title : exonUsage : my ($exon_number, $transcript_number) = @{$relative->exon()};$relative->exon($exon_number, $transcript_number);Function: Get/set which exon of which transcript of the Position's map's genethe Position's co-ordinates are relative to.Returns : reference to list with two ints, exon number and transcript numberArgs : none to get, ORint (exon number) AND int (transcript number) to set. The second intis optional and defaults to 0 (meaning default/active transcript).
intron
Title : intronUsage : my ($intron_number, $transcript_number) = @{$relative->intron()};$relative->intron($intron_number, $transcript_number);Function: Get/set which intron of which transcript of the Position's map's genethe Position's co-ordinates are relative to.Returns : reference to list with two ints, intron number and transcript numberArgs : none to get, ORint (intron number) AND int (transcript number) to set. The secondint is optional and defaults to 0 (meaning default/activetranscript).
coding
Title : codingUsage : my $transcript_number = $relative->coding;$relative->coding($transcript_number);Function: Get/set which transcript's coding region of the Position's map's genethe Position's co-ordinates are relative to.Returns : intArgs : none to get, ORint to set (the transcript number, see transcript())