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