shuffle(1)
π shuffle(1) β the Biosquid Manual's most chaotic little bestie π
ok so. you know how sometimes you just need to scramble a sequence? like, shake it up, keep all the same pieces, but β¨rearrangedβ¨? that's literally this whole program. welcome to shuffle, a page from the Biosquid Manual, and she's here to randomize ur sequences and never once forget a single letter. periodt. π
πΈ NAME πΈ
shuffle β randomize the sequences in a sequence file π¦
β¨ SYNOPSIS β¨
shuffle [options] seqfile
that's it. that's the whole summoning ritual, bestie. π
π DESCRIPTION π
ok so here's the vibe: shuffle reads a sequence file called seqfile, randomizes each sequence in it, and prints all the randomized sequences out in FASTA format on standard output. π«Ά
and here's the part that lowkey saves your life: the sequence names are unchanged. so if you ever need to track down which randomized sequence came from which original sequence? you can. iykyk. π₯
by default it just shuffles each input sequence, preserving monosymbol composition exactly. like, same letters, same counts, different order. iconic.
if you want to shuffle while preserving both monosymbol and disymbol composition exactly, use the -d option. that's the fancy one. π
now, the -0 and -1 options are a whole different beast β they let you generate sequences with the same Markov properties as each input sequence:
- with
-0, for each input sequence, 0th order Markov statistics are collected (e.g. symbol composition), and a new sequence is generated with the same composition. - with
-1, the generated sequence has the same 1st order Markov properties as the input sequence (e.g. the same disymbol frequencies).
okay bestie pay attention here bc this is a real distinction and not me being dramatic: note that the default and-0, or-dand-1, are similar β but the shuffling algorithms preserve composition exactly, while the Markov algorithms only expect to generate a sequence of similar composition on average. exact vs. on-average. that's the whole tea. π
other shuffling algorithms are also available, and they're all documented below in the options. slay. π
π OPTIONS π
-0β Calculate 0th order Markov frequencies of each input sequence (e.g. residue composition); generate output sequence using the same 0th order Markov frequencies. β¨-1β Calculate 1st order Markov frequencies for each input sequence (e.g. diresidue composition); generate output sequence using the same 1st order Markov frequencies. The first residue of the output sequence is always the same as the first residue of the input sequence. (yes, always. she's committed.) π-dβ Shuffle the input sequence while preserving both monosymbol and disymbol composition exactly. Uses an algorithm published by S.F. Altschul and B.W. Erickson, Mol. Biol. Evol. 2:526-538, 1985. (academic citation but make it cute π)-hβ Print brief help; includes version number and summary of all options, including expert options. ur little map. πΊοΈ-lβ Look only at the length of each input sequence; generate an i.i.d. output protein sequence of that length, using monoresidue frequencies typical of proteins (taken from Swissprot 35). π-n <n>β Make<n>different randomizations of each input sequence in seqfile, rather than the default of one. more is more, bestie. β¨-rβ Generate the output sequence by reversing the input sequence. (Therefore only one "randomization" per input sequence is possible, so it's not worth using-nif you use reversal.) π-t <n>β Truncate each input sequence to a fixed length of exactly<n>residues. If the input sequence is shorter than<n>it is discarded (therefore the output file may contain fewer sequences than the input file). If the input sequence is longer than<n>a contiguous subsequence is randomly chosen. π (yes the discard thing is real, don't come for me)-w <n>β Regionally shuffle each input sequence in window sizes of<n>, preserving local residue composition in each window. Probably a better shuffling algorithm for biosequences with nonstationary residue composition (e.g. composition that is varying along the sequence, such as between different isochores in human genome sequence). π§-Bβ (Babelfish). Autodetect and read a sequence file format other than the default (FASTA). Almost any common sequence file format is recognized (including Genbank, EMBL, SWISS-PROT, PIR, and GCG unaligned sequence formats, and Stockholm, GCG MSF, and Clustal alignment formats). See the printed documentation for a complete list of supported formats. π
π EXPERT OPTIONS π
ok these ones are for when you're feeling like the main character of bioinformatics. no cap. π
--informat <s>β Specify that the sequence file is in format<s>, rather than the default FASTA format. Common examples include Genbank, EMBL, GCG, PIR, Stockholm, Clustal, MSF, or PHYLIP; see the printed documentation for a complete list of accepted format names. This option overrides the default expected format (FASTA) and the-BBabelfish autodetection option. π--nodescβ Do not output any sequence description in the output file, only the sequence names. minimalism. π--seed <s>β Set the random number seed to<s>. If you want reproducible results, use the same seed each time. By default,shuffleuses a different seed each time, so it does not generate the same output in subsequent runs with the same input. (so if ur results keep changing, that's not a bug bestie that's literally the design π)
π¦ SEE ALSO π¦
afetch(1), alistat(1), compalign(1), compstruct(1), revcomp(1), seqsplit(1), seqstat(1), sfetch(1), sindex(1), sreformat(1), stranslate(1), weight(1).
the whole squad. go say hi. π
πΈ AUTHOR πΈ
Biosquid and its documentation are Copyright (C) 1992-2003 HHMI/Washington University School of Medicine. Freely distributed under the GNU General Public License (GPL). See COPYING in the source code distribution for more details, or contact me. π
Sean Eddy
HHMI/Department of Genetics
Washington University School of Medicine
4444 Forest Park Blvd., Box 8510
St Louis, MO 63108 USA
Phone: 1-314-362-7666
FAX : 1-314-362-2157
Email: eddy@genetics.wustl.edu
and that's the whole page, bestie!! π«Ά this was Biosquid 1.9g, dated January 2003, and honestly she aged like fine wine. now go forth and scramble some sequences responsibly. mwah. π β¨π
π¦ where this page comes from
- debian bookworm: biosquid 1.9g+cvs20050121-12 Β· GPL-2.0-only
- debian trixie: biosquid 1.9g+cvs20050121-15.1+b2 Β· GPL-2.0-only
- ubuntu jammy: biosquid 1.9g+cvs20050121-12 Β· GPL-2.0-only
- ubuntu noble: biosquid 1.9g+cvs20050121-15.1build1 Β· GPL-2.0-only
- ubuntu resolute: biosquid 1.9g+cvs20050121-16 Β· GPL-2.0-only
- ubuntu stonking: biosquid 1.9g+cvs20050121-16 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms