BP_SREFORMAT(1p)
π BP_SREFORMAT π
okay bestie, welcome to bpsreformat β it's the lil script from the User Contributed Perl Documentation corner of the world, and it's here to do exactly one iconic thing: flip your sequence formats around. π¦
β¨ NAME β¨
bpsreformat β convert sequence formats, no cap π
πΈ DESCRIPTION πΈ
so this script rides on the SeqIO system, which is the whole reason it can convert sequence formats β and it does it for either straight-up sequence data or multiple sequence alignment data. both. she contains multitudes. π«Ά
about the name, because I know you're gonna ask: Sean Eddy's program sreformat (it lives inside the HMMER pkg) already does this exact thing, so the name is a little homage moment. but here's the difference, and it's giving opposite energy: Sean's program tries to guess your input formats, while our code currently makes you say out loud what the input and output formats are, and whether the data is coming from a multiple sequence alignment or from straight sequence files. no guessing, just vibes and explicit flags. π
π Usage
bpsreformat -if INFORMAT -of OUTFORMAT -i FILENAME -o output.FORMAT
π the options, bestie
-h/--helpβ print this help. she's helpful like that π-if/--informatβ specify the input format. tell her what you're feeding her π-of/--outformatβ specify the output format. tell her what you want back β¨-i/--inputβ specify the input file name. (to pass in data on STDIN use the minus sign as the filename β yes, just-, iconic)-o/--outputβ specify the output file name. (to pass data out on STDOUT use the minus sign as the filename β-again, she's consistent)--msaβ specify this is multiple sequence alignment data π--specialβ will pass on special parameters to the AlignIO/SeqIO object. most of these are for Bio::AlignIO objects, fyi. it takes a comma separated list of the following:nointerleavedβ for phylip, non-interleaved formatidlinebreakβ for phylip, makes it molphy formatpercentagesβ for clustalw, show % id per line
lowkey important: with --special you're handing parameters straight to those objects, so keep the list comma-separated and spell them exactly like above. no typos, bestie π
that's the whole page, and honestly? she ate. this was written for perl v5.32.1, dated 2021-08-15 β so if you're reading this in the future, hi, love that for you, the flags are still the flags. πβ¨ bye bestie, go convert something π
π¦ where this page comes from
- debian bookworm: bioperl 1.7.8-1 Β· Perl
- debian trixie: bioperl 1.7.8-1 Β· Perl
- ubuntu jammy: bioperl 1.7.8-1 Β· Perl
- ubuntu noble: bioperl 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