NAME
Bio::Map::Physical - A class for handling a Physical Map (such as FPC)
SYNOPSIS
use Bio::MapIO;# acquire a Bio::Map::Physical using Bio::MapIO::fpcmy $mapio = Bio::MapIO->new(-format => "fpc",-file => "rice.fpc",-readcor => 0);my $physical = $mapio->next_map();# get all the markers idsforeach my $marker ( $physical->each_markerid() ) {print "Marker $marker\n";# acquire the marker object using Bio::Map::FPCMarkermy $markerobj = $physical->get_markerobj($marker);# get all the clones hit by this markerforeach my $clone ($markerobj->each_cloneid() ) {print " +++$clone\n";}}
DESCRIPTION
This class is basically a continer class for a collection of Contig maps and other physical map information.
Bio::Map::Physical has been tailored to work for FPC physical maps, but could probably be used for others as well (with the appropriate MapIO module).
This class also has some methods with specific functionalities:
print_gffstyle() : Generates GFF; either Contigwise[Default] orGroupwiseprint_contiglist() : Prints the list of Contigs, markers that hit thecontig, the global position and whether the markeris a placement (<P>) or a Framework (<F>) marker.print_markerlist() : Prints the markers list; contig and correspondingnumber of clones.matching_bands() : Given two clones [and tolerence], this methodcalculates how many matching bands do they have.coincidence_score() : Given two clones [,tolerence and gellen], thismethod calculates the Sulston Coincidence score.
For faster access and better optimization, the data is stored internally in hashes. The corresponding objects are created on request.
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 - Gaurav Gupta
Email [email protected]
CONTRIBUTORS
Sendu Bala [email protected]
PROJECT LEADERS
Jamie Hatfield [email protected] Dr. Cari Soderlund [email protected]
PROJECT DESCRIPTION
The project was done in Arizona Genomics Computational Laboratory (AGCoL) at University of Arizona.
This work was funded by USDA-IFAFS grant #11180 titled "Web Resources for the Computation and Display of Physical Mapping Data".
For more information on this project, please refer:
http://www.genome.arizona.edu
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
Access Methods
These methods let you get and set the member variables
version
Title : versionUsage : my $version = $map->version();Function: Get/set the version of the program used togenerate this mapReturns : scalar representing the versionArgs : none to get, OR string to set
modification_user
Title : modification_userUsage : my $modification_user = $map->modification_user();Function: Get/set the name of the user who last modified this mapReturns : scalar representing the usernameArgs : none to get, OR string to set
group_type
Title : group_typeUsage : $map->group_type($grptype);my $grptype = $map->group_type();Function: Get/set the group type of this mapReturns : scalar representing the group typeArgs : none to get, OR string to set
group_abbr
Title : group_abbrUsage : $map->group_abbr($grpabbr);my $grpabbr = $map->group_abbr();Function: get/set the group abbrev of this mapReturns : string representing the group abbrevArgs : none to get, OR string to set
core_exists
Title : core_existsUsage : my $core_exists = $map->core_exists();Function: Get/set if the FPC file is accompanied by COR fileReturns : booleanArgs : none to get, OR 1|0 to set
each_cloneid
Title : each_cloneidUsage : my @clones = $map->each_cloneid();Function: returns an array of clone namesReturns : list of clone namesArgs : none
get_cloneobj
Title : get_cloneobjUsage : my $cloneobj = $map->get_cloneobj('CLONEA');Function: returns an object of the clone given in the argumentReturns : object of the cloneArgs : scalar representing the clone name
each_markerid
Title : each_markeridUsage : my @markers = $map->each_markerid();Function: returns list of marker namesReturns : list of marker namesArgs : none
get_markerobj
Title : get_markerobjUsage : my $markerobj = $map->get_markerobj('MARKERA');Function: returns an object of the marker given in the argumentReturns : object of the markerArgs : scalar representing the marker name
each_contigid
Title : each_contigidUsage : my @contigs = $map->each_contigid();Function: returns a list of contigs (numbers)Returns : list of contigsArgs : none
get_contigobj
Title : get_contigobjUsage : my $contigobj = $map->get_contigobj('CONTIG1');Function: returns an object of the contig given in the argumentReturns : object of the contigArgs : scalar representing the contig number
matching_bands
Title : matching_bandsUsage : $self->matching_bands('cloneA','cloneB',[$tol]);Function: given two clones [and tolerence], this method calculates how manymatching bands do they have.(this method is ported directly from FPC)Returns : scalar representing the number of matching bandsArgs : names of the clones ('cloneA', 'cloneB') [Default tolerence=7]
coincidence_score
Title : coincidence_scoreUsage : $self->coincidence_score('cloneA','cloneB'[,$tol,$gellen]);Function: given two clones [,tolerence and gellen], this method calculatesthe Sulston Coincidence score.(this method is ported directly from FPC)Returns : scalar representing the Sulston coincidence score.Args : names of the clones ('cloneA', 'cloneB')[Default tol=7 gellen=3300.0]
print_contiglist
Title : print_contiglistUsage : $map->print_contiglist([showall]); #[Default 0]Function: prints the list of contigs, markers that hit the contig, theglobal position and whether the marker is a placement (P) ora Framework (F) marker.Returns : noneArgs : [showall] [Default 0], 1 includes all the discrepant markers
print_markerlist
Title : print_markerlistUsage : $map->print_markerlist();Function : prints the marker list; contig and corresponding number ofclones for each marker.Returns : noneArgs : none
print_gffstyle
Title : print_gffstyleUsage : $map->print_gffstyle([style]);Function : prints GFF; either Contigwise (default) or GroupwiseReturns : noneArgs : [style] default = 0 contigwise, else1 groupwise (chromosome-wise).
_calc_markerposition
Title : _calc_markerpositionUsage : $map->_calc_markerposition();Function: Calculates the position of the marker in the contigReturns : noneArgs : none
_calc_contigposition
Title : _calc_contigpositionUsage : $map->_calc_contigposition();Function: calculates the position of the contig in the groupReturns : noneArgs : none
_calc_contiggroup
Title : _calc_contiggroupUsage : $map->_calc_contiggroup();Function: calculates the group of the contigReturns : noneArgs : none
_set<Type>Ref
Title : _set<Type>RefUsage : These are used for initializing the reference of the hash inBio::MapIO (fpc.pm) to the corresponding hash in Bio::Map(physical.pm). Should be used only from Bio::MapIO System.$map->setCloneRef(\%_clones);$map->setMarkerRef(\%_markers);$map->setContigRef(\%_contigs);Function: sets the hash references to the corresponding hashesReturns : noneArgs : reference of the hash.