| 1 |
.TH "esl\-shuffle" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
esl\-shuffle \- shuffling sequences or generating random ones |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
|
| 8 |
.nf |
| 9 |
\fBesl\-shuffle \fR[\fIoptions\fR] \fIseqfile\fR |
| 10 |
(shuffle sequences) |
| 11 |
|
| 12 |
\fBesl\-shuffle \-G \fR[\fIoptions\fR] |
| 13 |
(generate random sequences) |
| 14 |
|
| 15 |
\fBesl\-shuffle \-A \fR[\fIoptions\fR] \fImsafile\fR |
| 16 |
(shuffle multiple sequence alignments) |
| 17 |
.fi |
| 18 |
|
| 19 |
.SH DESCRIPTION |
| 20 |
|
| 21 |
.PP |
| 22 |
.B esl\-shuffle |
| 23 |
has three different modes of operation. |
| 24 |
|
| 25 |
.PP |
| 26 |
By default, |
| 27 |
.B esl\-shuffle |
| 28 |
reads individual sequences from |
| 29 |
.IR seqfile , |
| 30 |
shuffles them, and outputs the shuffled sequences. |
| 31 |
By default, shuffling is done by preserving monoresidue |
| 32 |
composition; other options are listed below. |
| 33 |
|
| 34 |
.PP |
| 35 |
With the |
| 36 |
.B \-G |
| 37 |
option, |
| 38 |
.B esl\-shuffle |
| 39 |
generates some number of random sequences of some length in |
| 40 |
some alphabet. The |
| 41 |
.B \-N |
| 42 |
option controls the number (default is 1), the |
| 43 |
.B \-L |
| 44 |
option controls the length (default is 0), |
| 45 |
and the |
| 46 |
.BR \-\-amino , |
| 47 |
.BR \-\-dna , |
| 48 |
and |
| 49 |
.B \-\-rna |
| 50 |
options control the alphabet. |
| 51 |
|
| 52 |
.PP |
| 53 |
With the |
| 54 |
.B \-A |
| 55 |
option, |
| 56 |
.B esl\-shuffle |
| 57 |
reads one or more multiple alignments from |
| 58 |
.I msafile |
| 59 |
shuffles them, and outputs the shuffled alignments. |
| 60 |
By default, the alignment is shuffled columnwise |
| 61 |
(i.e. column order is permuted). |
| 62 |
Other options are listed below. |
| 63 |
|
| 64 |
|
| 65 |
.SH GENERAL OPTIONS |
| 66 |
|
| 67 |
.TP |
| 68 |
.B \-h |
| 69 |
Print brief help; includes version number and summary of |
| 70 |
all options, including expert options. |
| 71 |
|
| 72 |
.TP |
| 73 |
.BI \-o " <f>" |
| 74 |
Direct output to a file named |
| 75 |
.I <f> |
| 76 |
rather than to stdout. |
| 77 |
|
| 78 |
.TP |
| 79 |
.BI \-N " <n>" |
| 80 |
Generate |
| 81 |
.I <n> |
| 82 |
sequences, or |
| 83 |
.I <n> |
| 84 |
perform independent shuffles per input sequence or alignment. |
| 85 |
|
| 86 |
.TP |
| 87 |
.BI \-L " <n>" |
| 88 |
Generate sequences of length |
| 89 |
.IR <n> , |
| 90 |
or truncate output shuffled sequences or alignments to a length of |
| 91 |
.IR <n> . |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
.SH SEQUENCE SHUFFLING OPTIONS |
| 97 |
|
| 98 |
These options only apply in default (sequence shuffling) mode. They |
| 99 |
are mutually exclusive. |
| 100 |
|
| 101 |
.TP |
| 102 |
.B \-m |
| 103 |
Monoresidue shuffling (the default): preserve monoresidue composition exactly. |
| 104 |
Uses the Fisher/Yates algorithm (aka Knuth's "Algorithm P"). |
| 105 |
|
| 106 |
.TP |
| 107 |
.B \-d |
| 108 |
Diresidue shuffling; preserve diresidue composition exactly. Uses the |
| 109 |
Altschul/Erickson algorithm (Altschul and Erickson, 1986). A more |
| 110 |
efficient algorithm (Kandel and Winkler 1996) is known but has not yet |
| 111 |
been implemented in Easel. |
| 112 |
|
| 113 |
.TP |
| 114 |
.B \-0 |
| 115 |
0th order Markov generation: generate a sequence of the same length |
| 116 |
with the same 0th order Markov frequencies. Such a sequence will |
| 117 |
approximately preserve the monoresidue composition of the input. |
| 118 |
|
| 119 |
.TP |
| 120 |
.B \-1 |
| 121 |
1st order Markov generation: generate a sequence of the same length |
| 122 |
with the same 1st order Markov frequencies. Such a sequence will |
| 123 |
approximately preserve the diresidue composition of the input. |
| 124 |
|
| 125 |
.TP |
| 126 |
.B \-r |
| 127 |
Reversal; reverse each input. |
| 128 |
|
| 129 |
.TP |
| 130 |
.BI \-w " <n>" |
| 131 |
Regionally shuffle the input in nonoverlapping windows of size |
| 132 |
.I <n> |
| 133 |
residues, preserving exact monoresidue composition in each window. |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
.SH MULTIPLE ALIGNMENT SHUFFLING OPTIONS |
| 138 |
|
| 139 |
.TP |
| 140 |
.B \-b |
| 141 |
Sample columns with replacement, in order to generate a |
| 142 |
bootstrap-resampled alignment dataset. |
| 143 |
|
| 144 |
.TP |
| 145 |
.B \-v |
| 146 |
Shuffle residues with each column independently; i.e., permute residue |
| 147 |
order in each column ("vertical" shuffling). |
| 148 |
|
| 149 |
|
| 150 |
.SH SEQUENCE GENERATION OPTIONS |
| 151 |
|
| 152 |
One of these must be selected, if |
| 153 |
.B \-G |
| 154 |
is used. |
| 155 |
|
| 156 |
.TP |
| 157 |
.B \-\-amino |
| 158 |
Generate amino acid sequences. |
| 159 |
|
| 160 |
.TP |
| 161 |
.B \-\-dna |
| 162 |
Generate DNA sequences. |
| 163 |
|
| 164 |
.TP |
| 165 |
.B \-\-rna |
| 166 |
Generate RNA sequences. |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
.SH EXPERT OPTIONS |
| 171 |
|
| 172 |
.TP |
| 173 |
.BI \-\-informat " <s>" |
| 174 |
Assert that input |
| 175 |
.I seqfile |
| 176 |
is in format |
| 177 |
.IR <s> , |
| 178 |
bypassing format autodetection. |
| 179 |
Common choices for |
| 180 |
.I <s> |
| 181 |
include: |
| 182 |
.BR fasta , |
| 183 |
.BR embl , |
| 184 |
.BR genbank. |
| 185 |
Alignment formats also work; |
| 186 |
common choices include: |
| 187 |
.BR stockholm , |
| 188 |
.BR a2m , |
| 189 |
.BR afa , |
| 190 |
.BR psiblast , |
| 191 |
.BR clustal , |
| 192 |
.BR phylip . |
| 193 |
For more information, and for codes for some less common formats, |
| 194 |
see main documentation. |
| 195 |
The string |
| 196 |
.I <s> |
| 197 |
is case-insensitive (\fBfasta\fR or \fBFASTA\fR both work). |
| 198 |
|
| 199 |
|
| 200 |
.TP |
| 201 |
.BI \-\-seed " <n>" |
| 202 |
Specify the seed for the random number generator, where the seed |
| 203 |
.I <n> |
| 204 |
is an integer greater than zero. This can be used to make the results of |
| 205 |
.B esl\-shuffle |
| 206 |
reproducible. |
| 207 |
If |
| 208 |
.I <n> |
| 209 |
is 0, the random number generator is seeded arbitrarily and |
| 210 |
stochastic simulations will vary from run to run. |
| 211 |
Arbitrary seeding (0) is the default. |
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
.SH SEE ALSO |
| 217 |
|
| 218 |
.nf |
| 219 |
@EASEL_URL@ |
| 220 |
.fi |
| 221 |
|
| 222 |
.SH COPYRIGHT |
| 223 |
|
| 224 |
.nf |
| 225 |
@EASEL_COPYRIGHT@ |
| 226 |
@EASEL_LICENSE@ |
| 227 |
.fi |
| 228 |
|
| 229 |
.SH AUTHOR |
| 230 |
|
| 231 |
.nf |
| 232 |
http://eddylab.org |
| 233 |
.fi |
| 234 |
|