Bio::C...age::IO(3pm)
π Bio::CodonUsage::IO β the Perl doc, bestie edition π
okay so real quick: this is Bio::C...age::IO(3pm), one of those User Contributed Perl Documentation pages, and it is genuinely the little IO goblin that reads and writes codon usage tables. let's get into it β¨
πΈ NAME πΈ
Bio::CodonUsage::IO β for reading and writing codon usage tables to file
β¨ SYNOPSIS β¨
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);
π¦ DESCRIPTION π¦
so this class is literally just giving you the standard IO methods for reading and writing text files full of codon usage tables. no cap. π«Ά
those tables can initially be retrieved using Bio::DB::CUTG β that's where they come from, that's the source, periodt.
at present only this format is supported for read/write. that's it. that's the format. don't come for me about other formats, they are not here. π
and the cute part: reading a CUTG will return a Bio::CodonUsage::Table object. you give it a file, it hands you a whole object. main character energy honestly. π
π SEE ALSO π
Bio::Tools::CodonTableBio::WebAgentBio::CodonUsage::TableBio::CodonUsage::IO
(yes, the module sees itself. iconic behaviour. self-love fr fr. π)
π FEEDBACK π
π¬ Mailing Lists π¬
user feedback is an integral part of the evolution of this and other Bioperl modules β like, the whole thing grows because y'all talk to us. send your comments and suggestions preferably to one of the Bioperl mailing lists. your participation is much appreciated, genuinely ππ
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π«Ά Support π«Ά
please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. the reason is that many experienced and responsive experts will be able look at the problem and quickly address it. if at all possible, please include a thorough description of the problem with code and data examples. give them the whole picture bestie, they'll eat it up. β¨
π 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
π AUTHORS π
Richard Adams, Richard.Adams@ed.ac.uk
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ β so if you see that underscore, mind your business, that's the private zone π
π§ new
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
so you call new, you hand it a file or a file handle, and it blesses you with a Bio:CodonUsage::IO object so you can read/write a Bio:CodonUsage::Table. that's the whole vibe check. β
π§ next_data
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
no args, no problem β it just hands you a Bio:CodonUsage::Table object. lowkey the easiest method on this whole page. π
π§ write_data
Title : write_data
Usage : $io->write_data($cut);
Purpose: To write a CUT to file
Returns: void
Args : a Bio::CodonUsage::Table object reference
you give it a Bio::CodonUsage::Table object reference and it writes that CUT to file. returns void, so like, don't go looking for a return value, there isn't one. it ate and left no crumbs and also left no return value. π
friendly reminder bestie: internal methods usually start with _, so if it's got the underscore it's not for you, it's for the module's own business. respect the boundary, it's giving healthy relationships π
and that's the whole page!! this was Bio::C...age::IO(3pm) from the User Contributed Perl Documentation, sitting pretty in perl v5.32.1, dated 2021-08-15. go read some codon usage tables, bestie, you got this π
β¨πΈπ¦π
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms