Debian Codegraph @

doc/programs/html/maskseq.html

raw symbols SCIP
1 <HTML>
2
3 <HEAD>
4 <TITLE>
5 EMBOSS: maskseq
6 </TITLE>
7 </HEAD>
8 <BODY BGCOLOR="#FFFFFF" text="#000000">
9
10 <table align=center border=0 cellspacing=0 cellpadding=0>
11 <tr><td valign=top>
12 <A HREF="/" ONMOUSEOVER="self.status='Go to the EMBOSS home page';return true"><img border=0 src="/images/emboss_icon.jpg" alt="" width=150 height=48></a>
13 </td>
14 <td align=left valign=middle>
15 <b><font size="+6">
16 maskseq
17 </font></b>
18 </td></tr>
19 </table>
20 <br>&nbsp;
21 <p>
22
23 <H2>
24 Wiki
25 </H2>
26
27 The master copies of EMBOSS documentation are available
28 at <a href="http://emboss.open-bio.org/wiki/Appdocs">
29 http://emboss.open-bio.org/wiki/Appdocs</a>
30 on the EMBOSS Wiki.
31
32 <p>
33 Please help by correcting and extending the Wiki pages.
34
35 <H2>
36 Function
37 </H2>
38 Write a sequence with masked regions
39
40 <H2>
41 Description
42 </H2>
43
44
45 <p><b>maskseq</b> reads a sequence and writes a masked version of it to file. The sequence is masked in a specified set of regions such that characters in that region are (optionally) converted to lower case and / or (optionally) replaced with the specified mask character.</p>
46
47
48 <H2>
49 Usage
50 </H2>
51 Here is a sample session with <b>maskseq</b>
52 <p>
53 Mask off bases 10 to 12 from a sequence 'prot.fasta' and write to the new sequence file 'prot2.seq':
54 <p>
55
56 <p>
57 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
58
59 % <b>maskseq prot.fasta prot2.seq -reg=10-12 </b>
60 Write a sequence with masked regions
61
62 </pre></td></tr></table><p>
63 <p>
64 <a href="#input.1">Go to the input files for this example</a><br><a href="#output.1">Go to the output files for this example</a><p><p>
65 <p>
66 <b>Example 2</b>
67 <p>
68 Mask off bases 20 to 30 from a sequence 'prot.fasta' using the character 'x' and write to the new sequence file 'prot2.seq':
69 <p>
70
71 <p>
72 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
73
74 % <b>maskseq prot.fasta prot2.seq -reg=20-30 -mask=x </b>
75 Write a sequence with masked regions
76
77 </pre></td></tr></table><p>
78 <p>
79 <a href="#output.2">Go to the output files for this example</a><p><p>
80 <p>
81 <b>Example 3</b>
82 <p>
83 Mask off the regions 20 to 23, 34 to 45 and 88 to 90 in 'prot.fasta':
84 <p>
85
86 <p>
87 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
88
89 % <b>maskseq prot.fasta prot2.seq -reg=20-23,34-45,88-90 </b>
90 Write a sequence with masked regions
91
92 </pre></td></tr></table><p>
93 <p>
94 <a href="#output.3">Go to the output files for this example</a><p><p>
95 <p>
96 <b>Example 4</b>
97 <p>
98 Change to lower-case the regions 20 to 23, 34 to 45 and 88 to 90 in 'prot.fasta':
99 <p>
100
101 <p>
102 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
103
104 % <b>maskseq prot.fasta prot2.seq -reg=20-23,34-45,88-90 -tolower </b>
105 Write a sequence with masked regions
106
107 </pre></td></tr></table><p>
108 <p>
109 <a href="#output.4">Go to the output files for this example</a><p><p>
110
111
112 <H2>
113 Command line arguments
114 </H2>
115 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
116 <pre>
117 Write a sequence with masked regions
118 Version: EMBOSS:6.6.0.0
119
120 Standard (Mandatory) qualifiers:
121 [-sequence] sequence Sequence filename and optional format, or
122 reference (input USA)
123 -regions range [None] Regions to mask.
124 A set of regions is specified by a set of
125 pairs of positions.
126 The positions are integers.
127 They are separated by any non-digit,
128 non-alpha character.
129 Examples of region specifications are:
130 24-45, 56-78
131 1:45, 67=99;765..888
132 1,5,8,10,23,45,57,99
133 [-outseq] seqout [<sequence>.<format>] Sequence filename and
134 optional format (output USA)
135
136 Additional (Optional) qualifiers (* if not always prompted):
137 -tolower toggle [N] The region can be 'masked' by converting
138 the sequence characters to lower-case, some
139 non-EMBOSS programs e.g. fasta can
140 interpret this as a masked region. The
141 sequence is unchanged apart from the case
142 change. You might like to ensure that the
143 whole sequence is in upper-case before
144 masking the specified regions to lower-case
145 by using the '-supper' flag.
146 * -maskchar string ['X' for protein, 'N' for nucleic] Character
147 to use when masking.
148 Default is 'X' for protein sequences, 'N'
149 for nucleic sequences.
150 If the mask character is set to be the SPACE
151 character or a null character, then the
152 sequence is 'masked' by changing it to
153 lower-case, just as with the '-lowercase'
154 flag. (Any string from 1 to 1 characters)
155
156 Advanced (Unprompted) qualifiers: (none)
157 Associated qualifiers:
158
159 "-sequence" associated qualifiers
160 -sbegin1 integer Start of the sequence to be used
161 -send1 integer End of the sequence to be used
162 -sreverse1 boolean Reverse (if DNA)
163 -sask1 boolean Ask for begin/end/reverse
164 -snucleotide1 boolean Sequence is nucleotide
165 -sprotein1 boolean Sequence is protein
166 -slower1 boolean Make lower case
167 -supper1 boolean Make upper case
168 -scircular1 boolean Sequence is circular
169 -squick1 boolean Read id and sequence only
170 -sformat1 string Input sequence format
171 -iquery1 string Input query fields or ID list
172 -ioffset1 integer Input start position offset
173 -sdbname1 string Database name
174 -sid1 string Entryname
175 -ufo1 string UFO features
176 -fformat1 string Features format
177 -fopenfile1 string Features file name
178
179 "-outseq" associated qualifiers
180 -osformat2 string Output seq format
181 -osextension2 string File name extension
182 -osname2 string Base file name
183 -osdirectory2 string Output directory
184 -osdbname2 string Database name to add
185 -ossingle2 boolean Separate file for each entry
186 -oufo2 string UFO features
187 -offormat2 string Features format
188 -ofname2 string Features file name
189 -ofdirectory2 string Output directory
190
191 General qualifiers:
192 -auto boolean Turn off prompts
193 -stdout boolean Write first file to standard output
194 -filter boolean Read first file from standard input, write
195 first file to standard output
196 -options boolean Prompt for standard and additional values
197 -debug boolean Write debug output to program.dbg
198 -verbose boolean Report some/full command line options
199 -help boolean Report command line options and exit. More
200 information on associated and general
201 qualifiers can be found with -help -verbose
202 -warning boolean Report warnings
203 -error boolean Report errors
204 -fatal boolean Report fatal errors
205 -die boolean Report dying program messages
206 -version boolean Report version number and exit
207
208 </pre>
209 </td></tr></table>
210 <P>
211
212 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
213 <tr bgcolor="#FFFFCC">
214 <th align="left">Qualifier</th>
215 <th align="left">Type</th>
216 <th align="left">Description</th>
217 <th align="left">Allowed values</th>
218 <th align="left">Default</th>
219 </tr>
220
221 <tr bgcolor="#FFFFCC">
222 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
223 </tr>
224
225 <tr bgcolor="#FFFFCC">
226 <td>[-sequence]<br>(Parameter 1)</td>
227 <td>sequence</td>
228 <td>Sequence filename and optional format, or reference (input USA)</td>
229 <td>Readable sequence</td>
230 <td><b>Required</b></td>
231 </tr>
232
233 <tr bgcolor="#FFFFCC">
234 <td>-regions</td>
235 <td>range</td>
236 <td>Regions to mask.
237 A set of regions is specified by a set of pairs of positions.
238 The positions are integers.
239 They are separated by any non-digit, non-alpha character.
240 Examples of region specifications are:
241 24-45, 56-78
242 1:45, 67=99;765..888
243 1,5,8,10,23,45,57,99</td>
244 <td>Sequence range</td>
245 <td>None</td>
246 </tr>
247
248 <tr bgcolor="#FFFFCC">
249 <td>[-outseq]<br>(Parameter 2)</td>
250 <td>seqout</td>
251 <td>Sequence filename and optional format (output USA)</td>
252 <td>Writeable sequence</td>
253 <td><i>&lt;*&gt;</i>.<i>format</i></td>
254 </tr>
255
256 <tr bgcolor="#FFFFCC">
257 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
258 </tr>
259
260 <tr bgcolor="#FFFFCC">
261 <td>-tolower</td>
262 <td>toggle</td>
263 <td>The region can be 'masked' by converting the sequence characters to lower-case, some non-EMBOSS programs e.g. fasta can interpret this as a masked region. The sequence is unchanged apart from the case change. You might like to ensure that the whole sequence is in upper-case before masking the specified regions to lower-case by using the '-supper' flag.</td>
264 <td>Toggle value Yes/No</td>
265 <td>No</td>
266 </tr>
267
268 <tr bgcolor="#FFFFCC">
269 <td>-maskchar</td>
270 <td>string</td>
271 <td>Character to use when masking.
272 Default is 'X' for protein sequences, 'N' for nucleic sequences.
273 If the mask character is set to be the SPACE character or a null character, then the sequence is 'masked' by changing it to lower-case, just as with the '-lowercase' flag.</td>
274 <td>Any string from 1 to 1 characters</td>
275 <td>'X' for protein, 'N' for nucleic</td>
276 </tr>
277
278 <tr bgcolor="#FFFFCC">
279 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
280 </tr>
281
282 <tr>
283 <td colspan=5>(none)</td>
284 </tr>
285
286 <tr bgcolor="#FFFFCC">
287 <th align="left" colspan=5>Associated qualifiers</th>
288 </tr>
289
290 <tr bgcolor="#FFFFCC">
291 <td align="left" colspan=5>"-sequence" associated sequence qualifiers
292 </td>
293 </tr>
294
295 <tr bgcolor="#FFFFCC">
296 <td> -sbegin1<br>-sbegin_sequence</td>
297 <td>integer</td>
298 <td>Start of the sequence to be used</td>
299 <td>Any integer value</td>
300 <td>0</td>
301 </tr>
302
303 <tr bgcolor="#FFFFCC">
304 <td> -send1<br>-send_sequence</td>
305 <td>integer</td>
306 <td>End of the sequence to be used</td>
307 <td>Any integer value</td>
308 <td>0</td>
309 </tr>
310
311 <tr bgcolor="#FFFFCC">
312 <td> -sreverse1<br>-sreverse_sequence</td>
313 <td>boolean</td>
314 <td>Reverse (if DNA)</td>
315 <td>Boolean value Yes/No</td>
316 <td>N</td>
317 </tr>
318
319 <tr bgcolor="#FFFFCC">
320 <td> -sask1<br>-sask_sequence</td>
321 <td>boolean</td>
322 <td>Ask for begin/end/reverse</td>
323 <td>Boolean value Yes/No</td>
324 <td>N</td>
325 </tr>
326
327 <tr bgcolor="#FFFFCC">
328 <td> -snucleotide1<br>-snucleotide_sequence</td>
329 <td>boolean</td>
330 <td>Sequence is nucleotide</td>
331 <td>Boolean value Yes/No</td>
332 <td>N</td>
333 </tr>
334
335 <tr bgcolor="#FFFFCC">
336 <td> -sprotein1<br>-sprotein_sequence</td>
337 <td>boolean</td>
338 <td>Sequence is protein</td>
339 <td>Boolean value Yes/No</td>
340 <td>N</td>
341 </tr>
342
343 <tr bgcolor="#FFFFCC">
344 <td> -slower1<br>-slower_sequence</td>
345 <td>boolean</td>
346 <td>Make lower case</td>
347 <td>Boolean value Yes/No</td>
348 <td>N</td>
349 </tr>
350
351 <tr bgcolor="#FFFFCC">
352 <td> -supper1<br>-supper_sequence</td>
353 <td>boolean</td>
354 <td>Make upper case</td>
355 <td>Boolean value Yes/No</td>
356 <td>N</td>
357 </tr>
358
359 <tr bgcolor="#FFFFCC">
360 <td> -scircular1<br>-scircular_sequence</td>
361 <td>boolean</td>
362 <td>Sequence is circular</td>
363 <td>Boolean value Yes/No</td>
364 <td>N</td>
365 </tr>
366
367 <tr bgcolor="#FFFFCC">
368 <td> -squick1<br>-squick_sequence</td>
369 <td>boolean</td>
370 <td>Read id and sequence only</td>
371 <td>Boolean value Yes/No</td>
372 <td>N</td>
373 </tr>
374
375 <tr bgcolor="#FFFFCC">
376 <td> -sformat1<br>-sformat_sequence</td>
377 <td>string</td>
378 <td>Input sequence format</td>
379 <td>Any string</td>
380 <td>&nbsp;</td>
381 </tr>
382
383 <tr bgcolor="#FFFFCC">
384 <td> -iquery1<br>-iquery_sequence</td>
385 <td>string</td>
386 <td>Input query fields or ID list</td>
387 <td>Any string</td>
388 <td>&nbsp;</td>
389 </tr>
390
391 <tr bgcolor="#FFFFCC">
392 <td> -ioffset1<br>-ioffset_sequence</td>
393 <td>integer</td>
394 <td>Input start position offset</td>
395 <td>Any integer value</td>
396 <td>0</td>
397 </tr>
398
399 <tr bgcolor="#FFFFCC">
400 <td> -sdbname1<br>-sdbname_sequence</td>
401 <td>string</td>
402 <td>Database name</td>
403 <td>Any string</td>
404 <td>&nbsp;</td>
405 </tr>
406
407 <tr bgcolor="#FFFFCC">
408 <td> -sid1<br>-sid_sequence</td>
409 <td>string</td>
410 <td>Entryname</td>
411 <td>Any string</td>
412 <td>&nbsp;</td>
413 </tr>
414
415 <tr bgcolor="#FFFFCC">
416 <td> -ufo1<br>-ufo_sequence</td>
417 <td>string</td>
418 <td>UFO features</td>
419 <td>Any string</td>
420 <td>&nbsp;</td>
421 </tr>
422
423 <tr bgcolor="#FFFFCC">
424 <td> -fformat1<br>-fformat_sequence</td>
425 <td>string</td>
426 <td>Features format</td>
427 <td>Any string</td>
428 <td>&nbsp;</td>
429 </tr>
430
431 <tr bgcolor="#FFFFCC">
432 <td> -fopenfile1<br>-fopenfile_sequence</td>
433 <td>string</td>
434 <td>Features file name</td>
435 <td>Any string</td>
436 <td>&nbsp;</td>
437 </tr>
438
439 <tr bgcolor="#FFFFCC">
440 <td align="left" colspan=5>"-outseq" associated seqout qualifiers
441 </td>
442 </tr>
443
444 <tr bgcolor="#FFFFCC">
445 <td> -osformat2<br>-osformat_outseq</td>
446 <td>string</td>
447 <td>Output seq format</td>
448 <td>Any string</td>
449 <td>&nbsp;</td>
450 </tr>
451
452 <tr bgcolor="#FFFFCC">
453 <td> -osextension2<br>-osextension_outseq</td>
454 <td>string</td>
455 <td>File name extension</td>
456 <td>Any string</td>
457 <td>&nbsp;</td>
458 </tr>
459
460 <tr bgcolor="#FFFFCC">
461 <td> -osname2<br>-osname_outseq</td>
462 <td>string</td>
463 <td>Base file name</td>
464 <td>Any string</td>
465 <td>&nbsp;</td>
466 </tr>
467
468 <tr bgcolor="#FFFFCC">
469 <td> -osdirectory2<br>-osdirectory_outseq</td>
470 <td>string</td>
471 <td>Output directory</td>
472 <td>Any string</td>
473 <td>&nbsp;</td>
474 </tr>
475
476 <tr bgcolor="#FFFFCC">
477 <td> -osdbname2<br>-osdbname_outseq</td>
478 <td>string</td>
479 <td>Database name to add</td>
480 <td>Any string</td>
481 <td>&nbsp;</td>
482 </tr>
483
484 <tr bgcolor="#FFFFCC">
485 <td> -ossingle2<br>-ossingle_outseq</td>
486 <td>boolean</td>
487 <td>Separate file for each entry</td>
488 <td>Boolean value Yes/No</td>
489 <td>N</td>
490 </tr>
491
492 <tr bgcolor="#FFFFCC">
493 <td> -oufo2<br>-oufo_outseq</td>
494 <td>string</td>
495 <td>UFO features</td>
496 <td>Any string</td>
497 <td>&nbsp;</td>
498 </tr>
499
500 <tr bgcolor="#FFFFCC">
501 <td> -offormat2<br>-offormat_outseq</td>
502 <td>string</td>
503 <td>Features format</td>
504 <td>Any string</td>
505 <td>&nbsp;</td>
506 </tr>
507
508 <tr bgcolor="#FFFFCC">
509 <td> -ofname2<br>-ofname_outseq</td>
510 <td>string</td>
511 <td>Features file name</td>
512 <td>Any string</td>
513 <td>&nbsp;</td>
514 </tr>
515
516 <tr bgcolor="#FFFFCC">
517 <td> -ofdirectory2<br>-ofdirectory_outseq</td>
518 <td>string</td>
519 <td>Output directory</td>
520 <td>Any string</td>
521 <td>&nbsp;</td>
522 </tr>
523
524 <tr bgcolor="#FFFFCC">
525 <th align="left" colspan=5>General qualifiers</th>
526 </tr>
527
528 <tr bgcolor="#FFFFCC">
529 <td> -auto</td>
530 <td>boolean</td>
531 <td>Turn off prompts</td>
532 <td>Boolean value Yes/No</td>
533 <td>N</td>
534 </tr>
535
536 <tr bgcolor="#FFFFCC">
537 <td> -stdout</td>
538 <td>boolean</td>
539 <td>Write first file to standard output</td>
540 <td>Boolean value Yes/No</td>
541 <td>N</td>
542 </tr>
543
544 <tr bgcolor="#FFFFCC">
545 <td> -filter</td>
546 <td>boolean</td>
547 <td>Read first file from standard input, write first file to standard output</td>
548 <td>Boolean value Yes/No</td>
549 <td>N</td>
550 </tr>
551
552 <tr bgcolor="#FFFFCC">
553 <td> -options</td>
554 <td>boolean</td>
555 <td>Prompt for standard and additional values</td>
556 <td>Boolean value Yes/No</td>
557 <td>N</td>
558 </tr>
559
560 <tr bgcolor="#FFFFCC">
561 <td> -debug</td>
562 <td>boolean</td>
563 <td>Write debug output to program.dbg</td>
564 <td>Boolean value Yes/No</td>
565 <td>N</td>
566 </tr>
567
568 <tr bgcolor="#FFFFCC">
569 <td> -verbose</td>
570 <td>boolean</td>
571 <td>Report some/full command line options</td>
572 <td>Boolean value Yes/No</td>
573 <td>Y</td>
574 </tr>
575
576 <tr bgcolor="#FFFFCC">
577 <td> -help</td>
578 <td>boolean</td>
579 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
580 <td>Boolean value Yes/No</td>
581 <td>N</td>
582 </tr>
583
584 <tr bgcolor="#FFFFCC">
585 <td> -warning</td>
586 <td>boolean</td>
587 <td>Report warnings</td>
588 <td>Boolean value Yes/No</td>
589 <td>Y</td>
590 </tr>
591
592 <tr bgcolor="#FFFFCC">
593 <td> -error</td>
594 <td>boolean</td>
595 <td>Report errors</td>
596 <td>Boolean value Yes/No</td>
597 <td>Y</td>
598 </tr>
599
600 <tr bgcolor="#FFFFCC">
601 <td> -fatal</td>
602 <td>boolean</td>
603 <td>Report fatal errors</td>
604 <td>Boolean value Yes/No</td>
605 <td>Y</td>
606 </tr>
607
608 <tr bgcolor="#FFFFCC">
609 <td> -die</td>
610 <td>boolean</td>
611 <td>Report dying program messages</td>
612 <td>Boolean value Yes/No</td>
613 <td>Y</td>
614 </tr>
615
616 <tr bgcolor="#FFFFCC">
617 <td> -version</td>
618 <td>boolean</td>
619 <td>Report version number and exit</td>
620 <td>Boolean value Yes/No</td>
621 <td>N</td>
622 </tr>
623
624 </table>
625
626
627 <H2>
628 Input file format
629 </H2>
630
631
632 <b>maskseq</b> reads in a single nucleotide or protein sequence.
633
634 <p>
635
636
637 <a name="input.1"></a>
638 <h3>Input files for usage example </h3>
639 <p><h3>File: prot.fasta</h3>
640 <table width="90%"><tr><td bgcolor="#FFCCFF">
641 <pre>
642 &gt;FASTA F00001 FASTA FORMAT PROTEIN SEQUENCE
643 ACDEFGHIKLMNPQRSTVWY
644 ACDEFGHIKLMNPQRSTVWY
645 ACDEFGHIKLMNPQRSTVWY
646 ACDEFGHIKLMNPQRSTVWY
647 ACDEFGHIKLMNPQRSTVWY
648 </pre>
649 </td></tr></table><p>
650
651 <p>
652
653 You can specify a file of ranges to mask out by giving the '-regions'
654 qualifier the value '@' followed by the name of the file containing the
655 ranges. (eg: '-regions @myfile').
656
657 <p>
658
659 The format of the range file is:
660
661 <ul>
662 <li>Comment lines start with '#' in the first column.
663 <li>Comment lines and blank lines are ignored.
664 <li>The line may start with white-space.
665 <li>There are two positive (integer) numbers per line separated by one or
666 more space or TAB characters.
667 <li>The second number must be greater or equal to the first number.
668 <li>There can be optional text after the two numbers to annotate the line.
669 <li>White-space before or after the text is removed.
670 </ul>
671
672 <p>
673
674 An example range file is:
675
676 <p>
677
678 <hr>
679 <pre>
680 # this is my set of ranges
681 12 23
682 4 5 this is like 12-23, but smaller
683 67 10348 interesting region
684 </pre>
685 <hr>
686
687 <H2>
688 Output file format
689 </H2>
690
691
692 <p>
693
694 The output is a standard EMBOSS sequence file.
695
696 <p>
697
698 The results can be output in one of several styles by using the
699 command-line qualifier <tt>-osformat xxx</tt>, where 'xxx' is replaced by
700 the name of the required format. The available format names are: embl,
701 genbank, gff, pir, swiss, dasgff, debug, listfile, dbmotif, diffseq, excel,
702 feattable, motif, nametable, regions, seqtable, simple, srs, table, tagseq.
703
704 <p>
705
706 See:
707 <A href="http://emboss.sf.net/docs/themes/SequenceFormats.html">
708 http://emboss.sf.net/docs/themes/SequenceFormats.html</A>
709 for further information on sequence formats.
710
711 <p>
712 <p>
713 The sequence file has the selected range masked with the specified character.
714
715 <p>
716
717
718 <a name="output.1"></a>
719 <h3>Output files for usage example </h3>
720 <p><h3>File: prot2.seq</h3>
721 <table width="90%"><tr><td bgcolor="#CCFFCC">
722 <pre>
723 &gt;FASTA F00001 FASTA FORMAT PROTEIN SEQUENCE
724 ACDEFGHIKXXXPQRSTVWYACDEFGHIKLMNPQRSTVWYACDEFGHIKLMNPQRSTVWY
725 ACDEFGHIKLMNPQRSTVWYACDEFGHIKLMNPQRSTVWY
726 </pre>
727 </td></tr></table><p>
728
729 <a name="output.2"></a>
730 <h3>Output files for usage example 2</h3>
731 <p><h3>File: prot2.seq</h3>
732 <table width="90%"><tr><td bgcolor="#CCFFCC">
733 <pre>
734 &gt;FASTA F00001 FASTA FORMAT PROTEIN SEQUENCE
735 ACDEFGHIKLMNPQRSTVWxxxxxxxxxxxMNPQRSTVWYACDEFGHIKLMNPQRSTVWY
736 ACDEFGHIKLMNPQRSTVWYACDEFGHIKLMNPQRSTVWY
737 </pre>
738 </td></tr></table><p>
739
740 <a name="output.3"></a>
741 <h3>Output files for usage example 3</h3>
742 <p><h3>File: prot2.seq</h3>
743 <table width="90%"><tr><td bgcolor="#CCFFCC">
744 <pre>
745 &gt;FASTA F00001 FASTA FORMAT PROTEIN SEQUENCE
746 ACDEFGHIKLMNPQRSTVWXXXXEFGHIKLMNPXXXXXXXXXXXXGHIKLMNPQRSTVWY
747 ACDEFGHIKLMNPQRSTVWYACDEFGHXXXMNPQRSTVWY
748 </pre>
749 </td></tr></table><p>
750
751 <a name="output.4"></a>
752 <h3>Output files for usage example 4</h3>
753 <p><h3>File: prot2.seq</h3>
754 <table width="90%"><tr><td bgcolor="#CCFFCC">
755 <pre>
756 &gt;FASTA F00001 FASTA FORMAT PROTEIN SEQUENCE
757 ACDEFGHIKLMNPQRSTVWyacdEFGHIKLMNPqrstvwyacdefGHIKLMNPQRSTVWY
758 ACDEFGHIKLMNPQRSTVWYACDEFGHiklMNPQRSTVWY
759 </pre>
760 </td></tr></table><p>
761
762 <H2>
763 Data files
764 </H2>
765
766 None.
767
768 <H2>
769 Notes
770 </H2>
771
772 <p>It is common for database searches to mask out low-complexity or biased composition regions of a sequence so that spurious matches do not occur. It is possible that you have a program that has reported such biased regions but which has not masked the sequence itself. In that case, you can use this program to do the masking.</p>
773
774 <p>There are other uses for it. For example, some non-EMBOSS programs (for example FASTA) are capable of treating lower-case regions as if they are masked. <b>maskseq</b> can mask a region to lower-case instead of replacing the sequence with <tt>N</tt>'s or <tt>X</tt>'s if you use the qualifier <tt>-tolower</tt> or use a space character as the masking character.</p>
775
776
777 <H2>
778 References
779 </H2>
780
781 None.
782
783 <H2>
784 Warnings
785 </H2>
786
787
788 You can mask out a complete sequence.
789
790 <H2>
791 Diagnostic Error Messages
792 </H2>
793
794
795 Several warning messages about malformed region specifications:
796 <p>
797
798 <ul>
799 <li>Non-digit found in region ...
800 <li>Unpaired start of a region found in ...
801 <li>Non-digit found in region ...
802 <li>The start of a pair of region positions must be smaller than the
803 end in ...
804 </ul>
805
806 <H2>
807 Exit status
808 </H2>
809
810
811 It exits with status 0, unless a region is badly constructed.
812
813 <H2>
814 Known bugs
815 </H2>
816
817 None.
818
819 <h2><a name="See also">See also</a></h2>
820 <table border cellpadding=4 bgcolor="#FFFFF0">
821 <tr><th>Program name</th>
822 <th>Description</th></tr>
823 <tr>
824 <td><a href="aligncopy.html">aligncopy</a></td>
825 <td>Read and write alignments</td>
826 </tr>
827
828 <tr>
829 <td><a href="aligncopypair.html">aligncopypair</a></td>
830 <td>Read and write pairs from alignments</td>
831 </tr>
832
833 <tr>
834 <td><a href="biosed.html">biosed</a></td>
835 <td>Replace or delete sequence sections</td>
836 </tr>
837
838 <tr>
839 <td><a href="codcopy.html">codcopy</a></td>
840 <td>Copy and reformat a codon usage table</td>
841 </tr>
842
843 <tr>
844 <td><a href="cutseq.html">cutseq</a></td>
845 <td>Remove a section from a sequence</td>
846 </tr>
847
848 <tr>
849 <td><a href="degapseq.html">degapseq</a></td>
850 <td>Remove non-alphabetic (e.g. gap) characters from sequences</td>
851 </tr>
852
853 <tr>
854 <td><a href="descseq.html">descseq</a></td>
855 <td>Alter the name or description of a sequence</td>
856 </tr>
857
858 <tr>
859 <td><a href="entret.html">entret</a></td>
860 <td>Retrieve sequence entries from flatfile databases and files</td>
861 </tr>
862
863 <tr>
864 <td><a href="extractalign.html">extractalign</a></td>
865 <td>Extract regions from a sequence alignment</td>
866 </tr>
867
868 <tr>
869 <td><a href="extractfeat.html">extractfeat</a></td>
870 <td>Extract features from sequence(s)</td>
871 </tr>
872
873 <tr>
874 <td><a href="extractseq.html">extractseq</a></td>
875 <td>Extract regions from a sequence</td>
876 </tr>
877
878 <tr>
879 <td><a href="featcopy.html">featcopy</a></td>
880 <td>Read and write a feature table</td>
881 </tr>
882
883 <tr>
884 <td><a href="featmerge.html">featmerge</a></td>
885 <td>Merge two overlapping feature tables</td>
886 </tr>
887
888 <tr>
889 <td><a href="featreport.html">featreport</a></td>
890 <td>Read and write a feature table</td>
891 </tr>
892
893 <tr>
894 <td><a href="feattext.html">feattext</a></td>
895 <td>Return a feature table original text</td>
896 </tr>
897
898 <tr>
899 <td><a href="listor.html">listor</a></td>
900 <td>Write a list file of the logical OR of two sets of sequences</td>
901 </tr>
902
903 <tr>
904 <td><a href="makenucseq.html">makenucseq</a></td>
905 <td>Create random nucleotide sequences</td>
906 </tr>
907
908 <tr>
909 <td><a href="makeprotseq.html">makeprotseq</a></td>
910 <td>Create random protein sequences</td>
911 </tr>
912
913 <tr>
914 <td><a href="maskambignuc.html">maskambignuc</a></td>
915 <td>Mask all ambiguity characters in nucleotide sequences with N</td>
916 </tr>
917
918 <tr>
919 <td><a href="maskambigprot.html">maskambigprot</a></td>
920 <td>Mask all ambiguity characters in protein sequences with X</td>
921 </tr>
922
923 <tr>
924 <td><a href="maskfeat.html">maskfeat</a></td>
925 <td>Write a sequence with masked features</td>
926 </tr>
927
928 <tr>
929 <td><a href="newseq.html">newseq</a></td>
930 <td>Create a sequence file from a typed-in sequence</td>
931 </tr>
932
933 <tr>
934 <td><a href="nohtml.html">nohtml</a></td>
935 <td>Remove mark-up (e.g. HTML tags) from an ASCII text file</td>
936 </tr>
937
938 <tr>
939 <td><a href="noreturn.html">noreturn</a></td>
940 <td>Remove carriage return from ASCII files</td>
941 </tr>
942
943 <tr>
944 <td><a href="nospace.html">nospace</a></td>
945 <td>Remove whitespace from an ASCII text file</td>
946 </tr>
947
948 <tr>
949 <td><a href="notab.html">notab</a></td>
950 <td>Replace tabs with spaces in an ASCII text file</td>
951 </tr>
952
953 <tr>
954 <td><a href="notseq.html">notseq</a></td>
955 <td>Write to file a subset of an input stream of sequences</td>
956 </tr>
957
958 <tr>
959 <td><a href="nthseq.html">nthseq</a></td>
960 <td>Write to file a single sequence from an input stream of sequences</td>
961 </tr>
962
963 <tr>
964 <td><a href="nthseqset.html">nthseqset</a></td>
965 <td>Read and write (return) one set of sequences from many</td>
966 </tr>
967
968 <tr>
969 <td><a href="pasteseq.html">pasteseq</a></td>
970 <td>Insert one sequence into another</td>
971 </tr>
972
973 <tr>
974 <td><a href="revseq.html">revseq</a></td>
975 <td>Reverse and complement a nucleotide sequence</td>
976 </tr>
977
978 <tr>
979 <td><a href="seqcount.html">seqcount</a></td>
980 <td>Read and count sequences</td>
981 </tr>
982
983 <tr>
984 <td><a href="seqret.html">seqret</a></td>
985 <td>Read and write (return) sequences</td>
986 </tr>
987
988 <tr>
989 <td><a href="seqretsetall.html">seqretsetall</a></td>
990 <td>Read and write (return) many sets of sequences</td>
991 </tr>
992
993 <tr>
994 <td><a href="seqretsplit.html">seqretsplit</a></td>
995 <td>Read sequences and write them to individual files</td>
996 </tr>
997
998 <tr>
999 <td><a href="sizeseq.html">sizeseq</a></td>
1000 <td>Sort sequences by size</td>
1001 </tr>
1002
1003 <tr>
1004 <td><a href="skipredundant.html">skipredundant</a></td>
1005 <td>Remove redundant sequences from an input set</td>
1006 </tr>
1007
1008 <tr>
1009 <td><a href="skipseq.html">skipseq</a></td>
1010 <td>Read and write (return) sequences, skipping first few</td>
1011 </tr>
1012
1013 <tr>
1014 <td><a href="splitsource.html">splitsource</a></td>
1015 <td>Split sequence(s) into original source sequences</td>
1016 </tr>
1017
1018 <tr>
1019 <td><a href="splitter.html">splitter</a></td>
1020 <td>Split sequence(s) into smaller sequences</td>
1021 </tr>
1022
1023 <tr>
1024 <td><a href="trimest.html">trimest</a></td>
1025 <td>Remove poly-A tails from nucleotide sequences</td>
1026 </tr>
1027
1028 <tr>
1029 <td><a href="trimseq.html">trimseq</a></td>
1030 <td>Remove unwanted characters from start and end of sequence(s)</td>
1031 </tr>
1032
1033 <tr>
1034 <td><a href="trimspace.html">trimspace</a></td>
1035 <td>Remove extra whitespace from an ASCII text file</td>
1036 </tr>
1037
1038 <tr>
1039 <td><a href="union.html">union</a></td>
1040 <td>Concatenate multiple sequences into a single sequence</td>
1041 </tr>
1042
1043 <tr>
1044 <td><a href="vectorstrip.html">vectorstrip</a></td>
1045 <td>Remove vectors from the ends of nucleotide sequence(s)</td>
1046 </tr>
1047
1048 <tr>
1049 <td><a href="yank.html">yank</a></td>
1050 <td>Add a sequence reference (a full USA) to a list file</td>
1051 </tr>
1052
1053 </table>
1054
1055 <H2>
1056 Author(s)
1057 </H2>
1058
1059
1060 Gary Williams formerly at:
1061 <br>
1062 MRC Rosalind Franklin Centre for Genomics Research
1063 Wellcome Trust Genome Campus, Hinxton, Cambridge, CB10 1SB, UK
1064
1065 <p>
1066 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
1067
1068
1069 <H2>
1070 History
1071 </H2>
1072
1073 Completed 3 March 1999
1074
1075 <H2>
1076 Target users
1077 </H2>
1078
1079 This program is intended to be used by everyone and everything, from naive users to embedded scripts.
1080
1081
1082 <H2>
1083 Comments
1084 </H2>
1085 None
1086
1087
1088 </BODY>
1089 </HTML>
1090