Bio::S...rgeSeq(3pm)
π Bio::Seq::LargeSeq β the manual, but make it make sense π
okay bestie, so this is Bio::Seq::LargeSeq, a SeqI compliant object that stores sequence as files in /tmp. yeah. files. in /tmp. we're doing that. π
It lives in the Perl documentation, it's a user contributed thing, and the page is literally called Bio::S...rgeSeq(3pm) because apparently even the title got truncated (ironic, given what trunc does here, but whatever, we move).
β¨ NAME β¨
Bio::Seq::LargeSeq β a SeqI compliant object that stores sequence as files in /tmp.
no cap, that's the whole name section. iconic.
β¨ SYNOPSIS β¨
# normal primary seq usage
that's it. that's the synopsis. the original really said "you know what, you'll figure it out" and honestly? respect. π«Ά
β¨ DESCRIPTION β¨
So here's the vibe: this object stores a sequence as a series of files in a temporary directory. The whole point β the main character energy of this module β is letting someone store very large sequences (like, eg, > 100MBases) on a file system without running out of memory. And yes, the original literally specifies the scenario: eg, on a 64 MB real memory machine! π a 64 MB machine. our ancestors suffered fr fr.
But listen, bestie, here's the catch β and it's a big one, so pay attention:
To actually make use of this functionality, the programs that use this object must not call $primary_seq->seq. If you do, the entire sequence will come out into memory and probably paste your machine. π
However (and this is the slay part), calls like $primary_seq->subseq(10,100) will cause only 90 characters to be brought into real memory. so it's giving lazy loading before lazy loading was cool. π
β¨ 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. π
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. 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.
(yes, "reponsive" β that's the original's typo and I am not fixing it, we preserve the lore β¨)
π 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
please do this instead of just yelling into the void, bestie. the void does not have a ticket queue. π
β¨ AUTHOR - Ewan Birney β¨
Email birney@ebi.ac.uk
shoutout Ewan, absolute legend, built this whole thing. π
β¨ APPENDIX β¨
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _. iykyk. π
β¨ trunc β¨
- Title β
trunc - Usage β
$subseq = $myseq->trunc(10,100); - Function β Provides a truncation of a sequence,
- Example β (nothing, the original left this blank, and so shall we π)
- Returns β a fresh
Bio::SeqIobject - Args β (also blank. mysterious. we love a mystery. π )
β¨ Bio::Seq::LargePrimarySeq methods β¨
β¨ add_sequence_as_string β¨
- Title β
add_sequence_as_string - Usage β
$seq->add_sequence_as_string("CATGAT"); - Function β Appends additional residues to an existing
LargePrimarySeqobject. This allows one to build up a large sequence without storing entire object in memory. - Returns β Current length of sequence
- Args β string to append
that's the one that lets you just keep adding to your giant sequence without your RAM having a whole breakdown. we stan a memory-conscious king. π«Ά
and that's the whole page, bestie!! π
perl v5.32.1 Β· 2021-08-15 Β· Bio::S...rgeSeq(3pm) β that's the version, the date, and the (truncated, as always) page name, right here in my cute little sign-off. go forth and store enormous sequences responsibly. mwah π
β¨
π¦ 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