BP_SEQPART(1)
π bp_seqpart.pl β BP_SEQPART(1), bestie edition
okay so picture this: it's a Perl script, it's got SeqIO energy, and its whole personality is taking your sequence files and splitting them into load-balanced chunks. the manual page is BP_SEQPART(1) and honestly? she ate. β¨
πΈ NAME πΈ
bp_seqpart.pl β takes one or more sequence files and splits them into a number of load balanced files. literally that's the job. no cap. π«Ά
β¨ USAGE β¨
here's the whole thing, exactly as it lives, no edits:
bp_seqpart.pl -n <NUM_PARTS> [-h, -p <PREFIX>, -f <FORMAT>, -o <OUT_DIR>] <FILES...>
-n number of files to create through partitioning
-h this help message
-p prefix for all FASTA file names output, files are of the form <outdir>/<prefix>#.<format>
-f format of the files, defaults to FASTA but you can specify anything supported by SeqIO from BioPerl
-o output directory where to dump the split sequence files
and in group-chat form, one bullet per flag:
-nβ number of files to create through partitioning π (this one's the main character, you gotta have it)-hβ this help message π-pβ prefix for all FASTA file names output, files are of the form<outdir>/<prefix>#.<format>π¦-fβ format of the files, defaults toFASTAbut you can specify anything supported bySeqIOfrom BioPerl π₯-oβ output directory where to dump the split sequence files π
π DESCRIPTION π
so this is a script wrapping SeqIO that allows partitioning of multiple sequence files into near equal sized parts for later parallel processing. like, it's giving "prep work for your cluster job." π
and here's the slay part: even if you have 10 input files, outputting to 10 files will balance the files to contain similar total length of sequence. the balancing is by total sequence length, not by count β which is genuinely the smart way to do it.
β οΈ real talk though: ID's are ignored when deciding on how to balance each sequence. so don't come in here expecting your IDs to influence anything. they do not. π
π AUTHOR π
Matt Oates β mattoates+support@gmail.com π«Ά
π FEEDBACK π
π Mailing Lists
user feedback is an integral part of the evolution of this and other Bioperl modules. so likeβ¦ send your comments and suggestions, preferably to the Bioperl mailing list. your participation is much appreciated, fr fr. π§
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π 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 email or the web:
https://github.com/bioperl/bioperl-live/issues
like please report them, bestie, they cannot fix what they don't know about π
β EDIT HISTORY β
2012-04-03β Matt Oates β First features added. the origin story. iconic. π
π¦ DEPENDANCY π¦
(yes, that's how it's spelled in the original, we respect the spelling π)
- Getopt::Long β used to parse command line options.
- Pod::Usage β used for usage and help output.
- Bio::SeqIO β used to cut up sequences and parse FASTA.
okay that's the whole page π shoutout to perl v5.42.3 and the 2021-02-03 date on this one β that's the version and stamp this gorgeous little manpage shipped with. go partition something and slay, bestie πΈβ¨π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-BioPerl 1.7.8
- nixpkgs unstable: perl5.42.3-BioPerl 1.7.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms