NAME
Bio::Structure::Entry - Bioperl structure Object, describes the whole entry
SYNOPSIS
#add synopsis here
DESCRIPTION
This object stores a whole Bio::Structure entry. It can consist of one or more models (Bio::Structure::Model), which in turn consist of one or more chains (Bio::Structure::Chain). A chain is composed of residues (Bio::Structure::Residue) and a residue consists of atoms (Bio::Structure::Atom). If no specific model or chain is chosen, the first one is chosen.
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 - Kris Boulez
Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new()
Title : new()Usage : $struc = Bio::Structure::Entry->new(-id => 'structure_id',);Function: Returns a new Bio::Structure::Entry object from basicconstructors. Probably most called from Bio::Structure::IO.Returns : a new Bio::Structure::Model object
model()
Title : modelFunction: Connects a (or a list of) Model objects to a Bio::Structure::Entry.To add a Model (and keep the existing ones) use add_model()It returns a list of Model objects.Returns : List of Bio::Structure::Model objectsArgs : One Model or a reference to an array of Model objects
add_model()
Title : add_modelUsage : $structure->add_model($model);Function: Adds a (or a list of) Model objects to a Bio::Structure::Entry.Returns :Args : One Model or a reference to an array of Model objects
get_models()
Title : get_modelsUsage : $structure->get_models($structure);Function: general get method for models attached to an EntryReturns : a list of models attached to this entryArgs : an Entry
id()
Title : idUsage : $entry->id("identity");Function: Gets/sets the IDReturns : The IDArgs :
chain()
Title : chainUsage : @chains = $structure->chain($chain);Function: Connects a Chain or a list of Chain objects to a Bio::Structure::Entry.Returns : List of Bio::Structure::Chain objectsArgs : A Chain or a reference to an array of Chain objects
add_chain()
Title : add_chainUsage : @chains = $structure->add_chain($model,$chain);Function: Adds one or more Chain objects to a Bio::Structure::Entry.Returns : List of Chain objects associated with the ModelArgs : A Model object and a Chain object or a reference to an array ofof Chain objects
get_chains()
Title : get_chainsUsage : $entry->get_chains($model);Function: General get method for Chains attached to a ModelReturns : A list of Chains attached to this modelArgs : A Model
residue()
Title : residueUsage : @residues = $structure->residue($residue);Function: Connects a (or a list of) Residue objects to a Bio::Structure::Entry.Returns : List of Bio::Structure::Residue objectsArgs : One Residue or a reference to an array of Residue objects
add_residue()
Title : add_residueUsage : @residues = $structure->add_residue($chain,$residue);Function: Adds one or more Residue objects to a Bio::Structure::Entry.Returns : List of Bio::Structure::Residue objectsArgs : A Chain object and a Residue object or a reference to an array ofResidue objects
get_residues()
Title : get_residuesUsage : $structure->get_residues($chain);Function: General get method for Residues attached to a ChainReturns : A list of residues attached to this ChainArgs : A Chain
add_atom()
Title : add_atomUsage : @atoms = $structure->add_atom($residue,$atom);Function: Adds a (or a list of) Atom objects to a Bio::Structure::Residue.Returns : List of Bio::Structure::Atom objectsArgs : A Residue and an Atom
get_atoms()
Title : get_atomsUsage : $structure->get_atoms($residue);Function: General get method for Atoms attached to a ResidueReturns : A list of Atoms attached to this ResidueArgs : A Residue
parent()
Title : parentUsage : $structure->parent($residue);Function: Returns the parent of the argumentReturns : The parent of the argumentArgs : A Bio::Structure object
connect
Title : connectUsage :Function: Alias to conect()Returns :Args :
conect()
Title : conectUsage : $structure->conect($source);Function: Get/set method for conectReturns : A list of serial numbers for Atoms connected to source(together with $entry->get_atom_by_serial($model, $serial),this should be OK for now)Args : The source, the serial number for the source Atom, and the type
get_all_connect_source
Title : get_all_connect_sourceUsage :Function: Alias to get_all_conect_source()Returns :Args :
get_all_conect_source()
Title : get_all_conect_sourceUsage : @sources = $structure->get_all_conect_source;Function: Get all the sources for the conect recordsReturns : A list of serial numbers for atoms connected to source(together with $entry->get_atom_by_serial($model, $serial),this should be OK for now)Args :Notes : This is a bit of a kludge, but it is the best for now. Conect info might needto go in a separate object
master()
Title : masterUsage : $structure->master($source);Function: Get/set method for masterReturns : The master lineArgs : The master line for this entry
seqres()
Title : seqresUsage : $seqobj = $structure->seqres("A");Function: Gets a sequence object containing the sequence from the SEQRES record.if a chain-ID is given, the sequence for this chain is given, if noneis provided the first chain is chosenReturns : A Bio::PrimarySeqArgs : The chain-ID of the chain you want the sequence from
get_atom_by_serial()
Title : get_atom_by_serialUsage : $structure->get_atom_by_serial($model,$serial);Function: Get the Atom by serialReturns : The Atom object with this serial number in the modelArgs : Model on which to work, serial number for atom(if only a number is supplied, the first model is chosen)
annotation
Title : annotationUsage : $obj->annotation($seq_obj)Function:Example :Returns : value of annotationArgs : newvalue (optional)
_remove_models()
Title : _remove_modelsUsage :Function: Removes the models attached to an Entry. Tells the models theydo not belong to this Entry any moreReturns :Args :
_create_default_model()
Title : _create_default_modelUsage :Function: Creates a default Model for this Entry. Typical situationin an X-ray structure where there is only one modelReturns :Args :
_create_default_chain()
Title : _create_default_chainUsage :Function: Creates a default Chain for this Model. Typical situationin an X-ray structure where there is only one chainReturns :Args :
_parent()
Title : _parentUsage : This is an internal function only. It is used to have oneplace that keeps track of which object has which other objectas parent. Thus allowing the underlying modules (Atom, Residue,...)to have no knowledge about all this (and thus removing the possibilityof reference cycles).This method hides the details of manipulating references to an anonymoushash.Function: To get/set an objects parentReturns : A reference to the parent if it exist, undef otherwise. In thecurrent implementation each node should have a parent (except Entry).Args :
_child()
Title : _childUsage : This is an internal function only. It is used to have oneplace that keeps track of which object has which other objectas child. Thus allowing the underlying modules (Atom, Residue,...)to have no knowledge about all this (and thus removing the possibilityto have no knowledge about all this (and thus removing the possibilityof reference cycles).This method hides the details of manipulating references to an anonymoushash.Function: To get/set an the children of an objectReturns : A reference to an array of child(ren) if they exist, undef otherwise.Args :
_remove_from_graph()
Title : _remove_from_graphUsage : This is an internal function only. It is used to remove fromthe parent/child graph. We only remove the links from object tohis parent. Not the ones from object to its children.Function: To remove an object from the parent/child graphReturns :Args : The object to be orphaned