| 1 |
.TH "esl\-mask" 1 "@EASEL_DATE@" "Easel @EASELVERSION@" "Easel Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
esl\-mask \- mask sequence residues with X's (or other characters) |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.B esl\-mask |
| 8 |
[\fIoptions\fR] |
| 9 |
.I seqfile |
| 10 |
.I maskfile |
| 11 |
|
| 12 |
|
| 13 |
.SH DESCRIPTION |
| 14 |
|
| 15 |
.PP |
| 16 |
.B esl\-mask |
| 17 |
reads lines from |
| 18 |
.I maskfile |
| 19 |
that give start/end coordinates for |
| 20 |
regions in each sequence in |
| 21 |
.IR seqfile , |
| 22 |
masks these residues (changes |
| 23 |
them to X's), and outputs the masked sequence. |
| 24 |
|
| 25 |
.PP |
| 26 |
The |
| 27 |
.I maskfile |
| 28 |
is a space-delimited file. Blank lines and lines that start with '#' |
| 29 |
(comments) are ignored. Each data line contains at least three |
| 30 |
fields: |
| 31 |
.IR seqname , |
| 32 |
.IR start , |
| 33 |
and |
| 34 |
.IR end . |
| 35 |
The |
| 36 |
.I seqname |
| 37 |
is the name of a sequence in the |
| 38 |
.IR seqfile , |
| 39 |
and |
| 40 |
.I start |
| 41 |
and |
| 42 |
.I end |
| 43 |
are coordinates defining a region in that sequence. |
| 44 |
The coordinates are indexed <1..L> with respect to a |
| 45 |
sequence of length <L>. |
| 46 |
|
| 47 |
.PP |
| 48 |
By default, the sequence names must appear in exactly the same order |
| 49 |
and number as the sequences in the |
| 50 |
.IR seqfile. |
| 51 |
This is easy to enforce, because the format of |
| 52 |
.I maskfile |
| 53 |
is also legal as a list of names for |
| 54 |
.BR esl\-sfetch , |
| 55 |
so you can always fetch a temporary sequence file with |
| 56 |
.B esl\-sfetch |
| 57 |
and pipe that to |
| 58 |
.BR esl\-mask . |
| 59 |
(Alternatively, see the |
| 60 |
.B \-R |
| 61 |
option for fetching from an SSI-indexed |
| 62 |
.IR seqfile .) |
| 63 |
|
| 64 |
.PP |
| 65 |
The default is to mask the region indicated by |
| 66 |
\fI<start>\fR..\fI<end>\fR. |
| 67 |
Alternatively, everything but this region can be masked; |
| 68 |
see the |
| 69 |
.B \-r |
| 70 |
reverse masking option. |
| 71 |
|
| 72 |
.PP |
| 73 |
The default is to mask residues by converting them to X's. |
| 74 |
Any other masking character can be chosen (see |
| 75 |
.B \-m |
| 76 |
option), or alternatively, masked residues can be lowercased (see |
| 77 |
.B \-l |
| 78 |
option). |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
.SH OPTIONS |
| 83 |
|
| 84 |
.TP |
| 85 |
.B \-h |
| 86 |
Print brief help; includes version number and summary of |
| 87 |
all options, including expert options. |
| 88 |
|
| 89 |
.TP |
| 90 |
.B \-l |
| 91 |
Lowercase; mask by converting masked characters to lower case and |
| 92 |
unmasked characters to upper case. |
| 93 |
|
| 94 |
.TP |
| 95 |
.BI \-m " <c>" |
| 96 |
Mask by converting masked residues to |
| 97 |
.I <c> |
| 98 |
instead of the default X. |
| 99 |
|
| 100 |
.TP |
| 101 |
.BI \-o " <f>" |
| 102 |
Send output to file |
| 103 |
.I <f> |
| 104 |
instead of stdout. |
| 105 |
|
| 106 |
.TP |
| 107 |
.B \-r |
| 108 |
Reverse mask; mask everything outside the region |
| 109 |
.I start..end, |
| 110 |
as opposed to the default of masking that region. |
| 111 |
|
| 112 |
.TP |
| 113 |
.B \-R |
| 114 |
Random access; |
| 115 |
fetch sequences from |
| 116 |
.I seqfile |
| 117 |
rather than requiring that sequence names in |
| 118 |
.I maskfile |
| 119 |
and |
| 120 |
.I seqfile |
| 121 |
come in exactly the same order and number. The |
| 122 |
.I seqfile |
| 123 |
must be SSI indexed (see \fBesl\-sfetch \-\-index\fR.) |
| 124 |
|
| 125 |
.TP |
| 126 |
.BI \-x " <n>" |
| 127 |
Extend all masked regions by up to <n> residues on each side. |
| 128 |
For normal masking, this means masking |
| 129 |
\fI<start>\fR\-\fI<n>\fR..\fI<end>\fR+\fI<n>\fR. |
| 130 |
For reverse masking, this means masking |
| 131 |
1..\fI<start>\fR\-1+\fI<n>\fR |
| 132 |
and |
| 133 |
\fI<end>\fR+1\-\fI<n>\fR..L |
| 134 |
in a sequence of length L. |
| 135 |
|
| 136 |
|
| 137 |
.TP |
| 138 |
.BI \-\-informat " <s>" |
| 139 |
Assert that input |
| 140 |
.I seqfile |
| 141 |
is in format |
| 142 |
.IR <s> , |
| 143 |
bypassing format autodetection. |
| 144 |
Common choices for |
| 145 |
.I <s> |
| 146 |
include: |
| 147 |
.BR fasta , |
| 148 |
.BR embl , |
| 149 |
.BR genbank. |
| 150 |
Alignment formats also work; |
| 151 |
common choices include: |
| 152 |
.BR stockholm , |
| 153 |
.BR a2m , |
| 154 |
.BR afa , |
| 155 |
.BR psiblast , |
| 156 |
.BR clustal , |
| 157 |
.BR phylip . |
| 158 |
For more information, and for codes for some less common formats, |
| 159 |
see main documentation. |
| 160 |
The string |
| 161 |
.I <s> |
| 162 |
is case-insensitive (\fBfasta\fR or \fBFASTA\fR both work). |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
.SH SEE ALSO |
| 168 |
|
| 169 |
.nf |
| 170 |
@EASEL_URL@ |
| 171 |
.fi |
| 172 |
|
| 173 |
.SH COPYRIGHT |
| 174 |
|
| 175 |
.nf |
| 176 |
@EASEL_COPYRIGHT@ |
| 177 |
@EASEL_LICENSE@ |
| 178 |
.fi |
| 179 |
|
| 180 |
.SH AUTHOR |
| 181 |
|
| 182 |
.nf |
| 183 |
http://eddylab.org |
| 184 |
.fi |
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|