NAME
Bio::Matrix::PSM::IO::meme - PSM meme parser implementation
SYNOPSIS
See Bio::Matrix::PSM::IO for detailed documentation on how to use PSM parsers
DESCRIPTION
Parser for meme.
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 - Stefan Kirov
Email [email protected]
APPENDIX
new
Title : newUsage : my $psmIO = Bio::Matrix::PSM::IO->new(-format=>'meme',-file=>$file);Function: Associates a file with the appropriate parserThrows : Throws if the file passed is in HTML format orif the MEME header cannot be found.Example :Args : hashReturns : "Bio::Matrix::PSM::$format"->new(@args);
_parse_coordinates
Title : _parse_coordinatesUsage :Function:Throws :Example : Internal stuffReturns :Args :
header
Title : headerUsage : my %header=$psmIO->header;Function: Returns the header for the MEME fileThrows :Example : Fetching all the sequences included in the MEME analysis,being parsedmy %header=$psmIO->header;foreach my $seqid (@{$header{instances}}) {my $seq=$db->get_Seq_by_acc($id);#Do something with the sequence}where $db might be Bio::DB:GenBank object, seeReturns : Hash with three keys: instances, weights and lengths, whichshould be self-explenatory. Each value is an arrayreference. Each array element corresponds to the sameelement in the other two arrays. So $header{instances}->[$i]will refer to the same sequence in the motif file as$header{weights}->[$i] and $header{lengths}->[$i]Args : noneNotes : OBSOLETE!
next_psm
Title : next_psmUsage : my $psm=$psmIO->next_psm();Function: Reads the next PSM from the input file, associated with this objectThrows : Throws if the format is inconsistent with the rules for MEME 3.0.4:no SUMMARY Section present or some keywords are missing/altered.Example :Returns : Bio::Matrix::PSM::Psm objectArgs : none
_parseMatrix
Title : _parseMatrixUsage :Function: Parses the next site matrix information in the meme fileThrows :Example : Internal stuffReturns : hash as for constructing a SiteMatrix object (see SiteMatrixI)Args : string
_parse_logs
Title : _parse_logsUsage :Function: Parses the next site matrix log values in the meme fileThrows :Example : Internal stuffReturns : array of array refsArgs : string
_parseInstance
Title : _parseInstanceUsage :Function: Parses the next sites instances from the meme fileThrows :Example : Internal stuffReturns : Bio::Matrix::PSM::InstanceSite objectArgs : none