NAME
Bio::SeqIO::agave - AGAVE sequence output stream.
SYNOPSIS
It is probably best not to use this object directly, but rather go through the SeqIO handler system. Go:
$in = Bio::SeqIO->new('-file' => "$file_in",'-format' => 'EMBL');$out = Bio::SeqIO->new('-file' => ">$file_out",'-format' => 'AGAVE');while (my $seq = $in->next_seq){$out->write_seq($seq);}
DESCRIPTION
This object can transform Bio::Seq objects to agave xml file and vice-versa. I (Simon) coded up this module because I needed a parser to extract data from AGAVE xml to be utitlized by the GenQuire genome annotation system (See http://www.bioinformatics.org/Genquire).
***NOTE*** At the moment, not all of the tags are implemented. In general, I followed the output format for the XEMBL project http://www.ebi.ac.uk/xembl/
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 - Simon K. Chan
Email:
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
_process
Title : _processUsage : $self->_processFunction : Parses the agave xml file.Args : None.Returns : Nothing.Note : Method(s) that call(s) this method : _initializeMethod(s) that this method calls : _process_sciobjFIRST/START sub.
_process_sciobj
Title : _process_sciobjUsage : $self->_process_sciobjFunction : Parses the data between the <sciobj></sciobj> tags.Args : The string that holds the attributes for <sciobj>.Returns : Data structure holding the values parsed betweenthe <sciobj></sciobj> tags.Note : Method(s) that call(s) this method : _processMethod(s) that this method calls :_helper_store_attribute_list , _process_contig
_process_contig
Title : _process_contigUsage : $self->_process_contigFunction : Parses the data between the <contig></contig> tags.Args : 2 scalars:- reference to a scalar holding the line to be parsed.- scalar holding the attributes for the <contig> tagto be parsed.Returns : Data structure holding the values parsed betweenthe <contig></contig> tags.Note : Method(s) that call(s) this method : _process_sciobjMethod(s) that this method calls :_helper_store_attribute_list, _one_tag , _process_fragment_order
_process_fragment_order
Title : _process_fragment_orderUsage : $self->_process_fragment_orderFunction : Parses the data between the <fragment_order></fragment_order> tags.Args : 2 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the <fragment_order> data.Returns : Nothing.Note : Method(s) that call(s) this method : _process_contigMethod(s) that this method calls :_helper_store_attribute_list , _process_fragment_orientation
_process_fragment_orientation
Title : _process_fragment_orientationUsage : $self->_process_fragment_orientationFunction : Parses the data between the <fragment_orientation> and</fragment_orientation> tags.Args : 2 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the <fragment_orientation> data.Returns : Nothing.Note : Method(s) that call(s) this method : _process_fragment_order
Method(s) that this method calls : _helper_store_attribute_list , _process_bio_sequence
_process_bio_sequence
Title : _process_bio_sequenceUsage : $self->_process_bio_sequenceFunction : Parses the data between the <bio_sequence></bio_sequence> tags.Args : 2 scalars:- reference to a scalar holding the value of the line to be parsed.- scalar holding the value of the attributes for <bio_sequence>Returns : data structure holding the values between <bio_sequence></bio_sequence>Note : Method(s) that call(s) this method : _process_fragment_orientation
Method(s) that this method calls : _helper_store_attribute_list , _one_tag , _question_mark_tag , _star_tag , _process_alt_ids , _process_xrefs , _process_sequence_map
_process_xrefs
Title : _process_xrefsUsage : $self->_process_xrefsFunction : Parse the data between the <xrefs></xrefs> tags.Args : reference to a scalar holding the value of the line to be parsed.Return : Nothing.Note : Method(s) that call(s) this method: _process_bio_sequenceMethod(s) that this method calls: _one_tag , _process_xref
_process_xref
Title : _process_xrefUsage : $self->_process_xrefFunction : Parses the data between the <xref></xref> tags.Args : 2 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the <xref> data.Returns : Nothing.Note : Method(s) that call(s) this method : _process_xrefs (note the 's' in 'xrefs')Method(s) that this method calls : _helper_store_attribute_list , _star_tag
_process_sequence_map
Title : _process_sequence_mapUsage : $self->_process_sequence_mapFunction : Parses the data between the <sequence_map></sequence_map> tags.Args : Reference to scalar holding the line to be parsed.Returns : Data structure that holds the values that were parsed.Note : Method(s) that call(s) this method : _process_bio_sequenceMethod(s) that this method calls : _helper_store_attribute_list ,_question_mark_tag , _process_annotations
_process_annotations
Title : _process_annotationsUsage : $self->_process_annotationsFunction : Parse the data between the <annotations></annotations> tags.Args : Reference to scalar holding the line to be parsed.Returns : Data structure that holds the values that were parsed.Note : Method(s) that call(s) this method : _process_sequence_mapMethod(s) that this method calls : _process_seq_feature
_process_seq_feature
Title : _process_seq_featureUsage : $self->_process_seq_featureFunction : Parses the data between the <seq_feature></seq_feature> tag.Args : 2 scalars:- Reference to scalar holding the line to be parsed.- Scalar holding the attributes for <seq_feature>.Returns : Data structure holding the values parsed.Note : Method(s) that call(s) this method: _process_annotations
Method(s) that this method calls: _helper_store_attribute_list , _process_classification , _question_mark_tag , _one_tag , _process_evidence , _process_qualifier , _process_seq_feature , _process_related_annot
_process_qualifier
Title : _process_qualifierUsage : $self->_process_qualifierFunction : Parse the data between the <qualifier></qualifier> tags.Args : 2 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the <qualifer> data.Returns : Nothing.Note : Method(s) that call(s) this method : _process_seq_featureMethod(s) that this method calls : _star_tag
_process_classification
Title : _process_classificationUsage : $self->_process_classificationFunction: Parse the data between the <classification></classification> tags.Args : 2 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the <qualifer> data.Returns : Nothing.Note : Method(s) that call(s) this method: _process_seq_featureMethod(s) that this method calls: _helper_store_attribute_list ,_question_mark_tag , _star_tag, _process_evidence
_tag_processing_helper
Title : _tag_processing_helperUsage : $self->_tag_processing_helperFunction : Stores the tag value within the data structure.Also calls _helper_store_attribute_list to store theattributes and their values in the data structure.Args : 5 scalars:- Scalar holding the value of the attributes- Reference to a data structure to store the data for <$tag_name>- Scalar holding the tag name.- Scalar holding the value of the tag.- Scalar holding the value of either 'star', 'plus',or 'question mark' which specifies what type of methodcalled this method.Returns : Nothing.Note : Method(s) that call(s) this method:Method(s) that this method calls: _helper_store_attribute_list
_one_tag
Title : _one_tagUsage : $self->_one_tagFunction : A method to store data from tags that occurs just once.Args : 2 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the data for <$tag_name>Returns : Nothing.Note : Method(s) that call(s) this method : manyMethod(s) that this method calls : _tag_processing_helper
_question_mark_tag
Title : _question_mark_tagUsage : $self->_question_mark_tagFunction : Parses values from tags that occurs zero or one time. ie: tag_name?Args : 3 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the data for <$tag_name>- scalar holding the name of the tag.Returns : Nothing.Note : Method(s) that call(s) this method : many.Method(s) that this method calls : _tag_processing_helper
_star_tag
Title : _star_tagUsage : $self->_star_tagFunction : Parses values from tags that occur zero or more times. ie: tag_name*Args : 3 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the data for <$tag_name>- scalar holding the name of the tag.Returns : Nothing.Note : Method(s) that call(s) this method : many.Method(s) that this method calls : _tag_processing_helper
_plus_tag
Title : _plus_tagUsage : $self->_plus_tagFunction : Handles 'plus' tags (tags that occur one or more times). tag_name+Args : 3 scalars:- reference to a scalar holding the value of the line to be parsed.- reference to a data structure to store the data for <$tag_name>- scalar holding the name of the tag.Returns : Nothing.Note : Method(s) that call(s) this method : many.Method(s) that this method calls : _star_tag
_helper_store_attribute_list
Title : _helper_store_attribute_listUsage : $self->_helper_store_attribute_listFunction : A helper method used to store the attributes fromthe tags into the data structure.Args : 2 scalars:- scalar holding the attribute values to be parsed.- reference to a data structure to store the data between the 2 tags.Returns : Nothing.Note : Method(s) that call(s) this method : Many.Method(s) that this method call(s) : None.
_store_seqs
Title : _store_seqsUsage : $self->_store_seqsFunction : This method is called once in the life time of the script.It stores the data parsed from the agave xml file intothe Bio::Seq object.Args : None.Returns : Nothing.Note : Method(s) that call(s) this method : next_seqMethod(s) that this method calls : None.
next_seq
Title : next_seqUsage : $seq = $stream->next_seq()Function : Returns the next sequence in the stream.Args : None.Returns : Bio::Seq object
Method is called from the script. Method(s) that this method calls: _store_seqs (only once throughout the life time of script execution).
next_primary_seq
Title : next_primary_seqUsage : $seq = $stream->next_primary_seq()Function: returns the next primary sequence (ie no seq_features) in the streamReturns : Bio::PrimarySeq objectArgs : NONE
write_seq
Title : write_seqUsage : Not Yet Implemented! $stream->write_seq(@seq)Function: writes the $seq object into the streamReturns : 1 for success and 0 for errorArgs : Bio::Seq object
_write_each_record
Title : _write_each_recordUsage : $agave->_write_each_record( $seqI )Function: change data into agave formatReturns : NONEArgs : Bio::SeqI object
_write_seqfeature
Usage : $agave->_write_each_record( $seqfeature, $write )Function: change seeqfeature data into agave formatReturns : NONEArgs : Bio::SeqFeature object and XML::writer object
_filehandle
Title : _filehandleUsage : $obj->_filehandle($newval)Function:Example :Returns : value of _filehandleArgs : newvalue (optional)
throw
Title : throwUsage : $self->throw;Function : Throw's error message. Calls SeqIO's throw method.Args : Array of string(s), holding error message(s).Returns : Nothing.Note : Method(s) that call(s) this method: many.Method(s) that this method calls: Bio::SeqIO's throw method.