Bio::CodonUsage::IO - for reading and writing codon usage tables to file
use Bio::CodonUsage::IO; ## read in a codon usage file my $io = Bio::CodonUsage::IO->new(-file => "in"); my $cut = $io->next_data(); ## write it out again my $out = Bio::CodonUsage::IO->new(-file => ">out"); $out->write_data($cut);
This class provides standard IO methods for reading and writing text files of codon usage tables. These tables can initially be retrieved using Bio::DB::CUTG. At present only this format is supported for read/write.
Reading a CUTG will return a Bio::CodonUsage::Table object.
Bio::Tools::CodonTable, Bio::WebAgent, Bio::CodonUsage::Table, Bio::CodonUsage::IO
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.
bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists
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:
http://bugzilla.open-bio.org/
Richard Adams, Richard.Adams@ed.ac.uk
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
Title : new Usage : my $io = Bio::CodonUsage::IO->new(-file => "CUTfile"); Purpose: To read/write a Bio:CodonUsage::Table object Returns: A Bio:CodonUsage::IO object Args : a file or file handle
Title : next_data Usage : my $cut = $io->next_data(); Purpose: To obtain a Bio:CodonUsage::Table object Returns: A Bio:CodonUsage::Table object Args : none
Title : write_data Usage : $io->write_data($cut); Purpose: To write a CUT to file Returns: void Args : a Bio::CodonUsage::Table object reference
To install Bio::Seq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Seq
CPAN shell
perl -MCPAN -e shell install Bio::Seq
For more information on module installation, please visit the detailed CPAN module installation guide.