Debian Codegraph @

doc/programs/html/needle.html

raw symbols SCIP
1 <HTML>
2
3 <HEAD>
4 <TITLE>
5 EMBOSS: needle
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 needle
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 Needleman-Wunsch global alignment of two sequences
39
40 <H2>
41 Description
42 </H2>
43
44
45 <p><b>needle</b> reads two input sequences and writes their optimal global sequence alignment to file. It uses the Needleman-Wunsch alignment algorithm to find the optimum alignment (including gaps) of two sequences along their entire length. The algorithm uses a dynamic programming method to ensure the alignment is optimum, by exploring all possible alignments and choosing the best. A scoring matrix is read that contains values for every possible residue or nucleotide match. Needle finds the alignment with the maximum possible score where the score of an alignment is equal to the sum of the matches taken from the scoring matrix, minus penalties arising from opening and extending gaps in the aligned sequences. The substitution matrix and gap opening and extension penalties are user-specified.</p>
46
47
48 <H3>
49 Algorithm
50 </H3>
51
52
53 <p>The Needleman-Wunsch algorithm is a member of the class of algorithms that can calculate the best score and alignment of two sequences in the order of <tt>mn</tt> steps, where <tt>n</tt> and <tt>m</tt> are the sequence lengths. These dynamic programming algorithms were first developed for protein sequence comparison by Needleman and Wunsch, though similar methods were independently devised during the late 1960's and early 1970's for use in the fields of speech processing and computer science.</p>
54
55 <p>An important problem is the treatment of gaps, i.e., spaces inserted to optimise the alignment score. A penalty is subtracted from the score for each gap opened (the 'gap open' penalty) and a penalty is subtracted from the score for the total number of gap spaces multiplied by a cost (the 'gap extension' penalty). Typically, the cost of extending a gap is set to be 5-10 times lower than the cost for opening a gap.</p>
56
57 <p>Penalty for a gap of <tt>n</tt> positions is calculated using the following formula:
58
59 <pre>gap opening penalty + (n - 1) * gap extension penalty
60 </pre>
61
62 </p>
63
64 <p>In a Needleman-Wunsch global alignment, the entire length of each sequence is aligned. The sequences might be partially overlapping or one sequence might be aligned entirely internally to the other. There is no penalty for the hanging ends of the overlap. In bioinformatics, it is usually reasonable to assume that the sequences are incomplete and there should be no penalty for failing to align the missing bases.</p>
65
66 <H2>
67 Usage
68 </H2>
69 Here is a sample session with <b>needle</b>
70 <p>
71
72 <p>
73 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
74
75 % <b>needle tsw:hba_human tsw:hbb_human </b>
76 Needleman-Wunsch global alignment of two sequences
77 Gap opening penalty [10.0]: <b></b>
78 Gap extension penalty [0.5]: <b></b>
79 Output alignment [hba_human.needle]: <b></b>
80
81 </pre></td></tr></table><p>
82 <p>
83 <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>
84
85 <H2>
86 Command line arguments
87 </H2>
88 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
89 <pre>
90 Needleman-Wunsch global alignment of two sequences
91 Version: EMBOSS:6.6.0.0
92
93 Standard (Mandatory) qualifiers:
94 [-asequence] sequence Sequence filename and optional format, or
95 reference (input USA)
96 [-bsequence] seqall Sequence(s) filename and optional format, or
97 reference (input USA)
98 -gapopen float [10.0 for any sequence] The gap open penalty
99 is the score taken away when a gap is
100 created. The best value depends on the
101 choice of comparison matrix. The default
102 value assumes you are using the EBLOSUM62
103 matrix for protein sequences, and the
104 EDNAFULL matrix for nucleotide sequences.
105 (Floating point number from 1.0 to 100.0)
106 -gapextend float [0.5 for any sequence] The gap extension,
107 penalty is added to the standard gap penalty
108 for each base or residue in the gap. This
109 is how long gaps are penalized. Usually you
110 will expect a few long gaps rather than many
111 short gaps, so the gap extension penalty
112 should be lower than the gap penalty. An
113 exception is where one or both sequences are
114 single reads with possible sequencing
115 errors in which case you would expect many
116 single base gaps. You can get this result by
117 setting the gap open penalty to zero (or
118 very low) and using the gap extension
119 penalty to control gap scoring. (Floating
120 point number from 0.0 to 10.0)
121 [-outfile] align [*.needle] Output alignment file name
122 (default -aformat srspair)
123
124 Additional (Optional) qualifiers:
125 -datafile matrixf [EBLOSUM62 for protein, EDNAFULL for DNA]
126 This is the scoring matrix file used when
127 comparing sequences. By default it is the
128 file 'EBLOSUM62' (for proteins) or the file
129 'EDNAFULL' (for nucleic sequences). These
130 files are found in the 'data' directory of
131 the EMBOSS installation.
132 -endweight boolean [N] Apply end gap penalties.
133 -endopen float [10.0 for any sequence] The end gap open
134 penalty is the score taken away when an end
135 gap is created. The best value depends on
136 the choice of comparison matrix. The default
137 value assumes you are using the EBLOSUM62
138 matrix for protein sequences, and the
139 EDNAFULL matrix for nucleotide sequences.
140 (Floating point number from 1.0 to 100.0)
141 -endextend float [0.5 for any sequence] The end gap
142 extension, penalty is added to the end gap
143 penalty for each base or residue in the end
144 gap. This is how long end gaps are
145 penalized. (Floating point number from 0.0
146 to 10.0)
147
148 Advanced (Unprompted) qualifiers:
149 -[no]brief boolean [Y] Brief identity and similarity
150
151 Associated qualifiers:
152
153 "-asequence" associated qualifiers
154 -sbegin1 integer Start of the sequence to be used
155 -send1 integer End of the sequence to be used
156 -sreverse1 boolean Reverse (if DNA)
157 -sask1 boolean Ask for begin/end/reverse
158 -snucleotide1 boolean Sequence is nucleotide
159 -sprotein1 boolean Sequence is protein
160 -slower1 boolean Make lower case
161 -supper1 boolean Make upper case
162 -scircular1 boolean Sequence is circular
163 -squick1 boolean Read id and sequence only
164 -sformat1 string Input sequence format
165 -iquery1 string Input query fields or ID list
166 -ioffset1 integer Input start position offset
167 -sdbname1 string Database name
168 -sid1 string Entryname
169 -ufo1 string UFO features
170 -fformat1 string Features format
171 -fopenfile1 string Features file name
172
173 "-bsequence" associated qualifiers
174 -sbegin2 integer Start of each sequence to be used
175 -send2 integer End of each sequence to be used
176 -sreverse2 boolean Reverse (if DNA)
177 -sask2 boolean Ask for begin/end/reverse
178 -snucleotide2 boolean Sequence is nucleotide
179 -sprotein2 boolean Sequence is protein
180 -slower2 boolean Make lower case
181 -supper2 boolean Make upper case
182 -scircular2 boolean Sequence is circular
183 -squick2 boolean Read id and sequence only
184 -sformat2 string Input sequence format
185 -iquery2 string Input query fields or ID list
186 -ioffset2 integer Input start position offset
187 -sdbname2 string Database name
188 -sid2 string Entryname
189 -ufo2 string UFO features
190 -fformat2 string Features format
191 -fopenfile2 string Features file name
192
193 "-outfile" associated qualifiers
194 -aformat3 string Alignment format
195 -aextension3 string File name extension
196 -adirectory3 string Output directory
197 -aname3 string Base file name
198 -awidth3 integer Alignment width
199 -aaccshow3 boolean Show accession number in the header
200 -adesshow3 boolean Show description in the header
201 -ausashow3 boolean Show the full USA in the alignment
202 -aglobal3 boolean Show the full sequence in alignment
203
204 General qualifiers:
205 -auto boolean Turn off prompts
206 -stdout boolean Write first file to standard output
207 -filter boolean Read first file from standard input, write
208 first file to standard output
209 -options boolean Prompt for standard and additional values
210 -debug boolean Write debug output to program.dbg
211 -verbose boolean Report some/full command line options
212 -help boolean Report command line options and exit. More
213 information on associated and general
214 qualifiers can be found with -help -verbose
215 -warning boolean Report warnings
216 -error boolean Report errors
217 -fatal boolean Report fatal errors
218 -die boolean Report dying program messages
219 -version boolean Report version number and exit
220
221 </pre>
222 </td></tr></table>
223 <P>
224
225 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
226 <tr bgcolor="#FFFFCC">
227 <th align="left">Qualifier</th>
228 <th align="left">Type</th>
229 <th align="left">Description</th>
230 <th align="left">Allowed values</th>
231 <th align="left">Default</th>
232 </tr>
233
234 <tr bgcolor="#FFFFCC">
235 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
236 </tr>
237
238 <tr bgcolor="#FFFFCC">
239 <td>[-asequence]<br>(Parameter 1)</td>
240 <td>sequence</td>
241 <td>Sequence filename and optional format, or reference (input USA)</td>
242 <td>Readable sequence</td>
243 <td><b>Required</b></td>
244 </tr>
245
246 <tr bgcolor="#FFFFCC">
247 <td>[-bsequence]<br>(Parameter 2)</td>
248 <td>seqall</td>
249 <td>Sequence(s) filename and optional format, or reference (input USA)</td>
250 <td>Readable sequence(s)</td>
251 <td><b>Required</b></td>
252 </tr>
253
254 <tr bgcolor="#FFFFCC">
255 <td>-gapopen</td>
256 <td>float</td>
257 <td>The gap open penalty is the score taken away when a gap is created. The best value depends on the choice of comparison matrix. The default value assumes you are using the EBLOSUM62 matrix for protein sequences, and the EDNAFULL matrix for nucleotide sequences.</td>
258 <td>Floating point number from 1.0 to 100.0</td>
259 <td>10.0 for any sequence</td>
260 </tr>
261
262 <tr bgcolor="#FFFFCC">
263 <td>-gapextend</td>
264 <td>float</td>
265 <td>The gap extension, penalty is added to the standard gap penalty for each base or residue in the gap. This is how long gaps are penalized. Usually you will expect a few long gaps rather than many short gaps, so the gap extension penalty should be lower than the gap penalty. An exception is where one or both sequences are single reads with possible sequencing errors in which case you would expect many single base gaps. You can get this result by setting the gap open penalty to zero (or very low) and using the gap extension penalty to control gap scoring.</td>
266 <td>Floating point number from 0.0 to 10.0</td>
267 <td>0.5 for any sequence</td>
268 </tr>
269
270 <tr bgcolor="#FFFFCC">
271 <td>[-outfile]<br>(Parameter 3)</td>
272 <td>align</td>
273 <td>Output alignment file name</td>
274 <td>(default -aformat srspair)</td>
275 <td><i>&lt;*&gt;</i>.needle</td>
276 </tr>
277
278 <tr bgcolor="#FFFFCC">
279 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
280 </tr>
281
282 <tr bgcolor="#FFFFCC">
283 <td>-datafile</td>
284 <td>matrixf</td>
285 <td>This is the scoring matrix file used when comparing sequences. By default it is the file 'EBLOSUM62' (for proteins) or the file 'EDNAFULL' (for nucleic sequences). These files are found in the 'data' directory of the EMBOSS installation.</td>
286 <td>Comparison matrix file in EMBOSS data path</td>
287 <td>EBLOSUM62 for protein<br>EDNAFULL for DNA</td>
288 </tr>
289
290 <tr bgcolor="#FFFFCC">
291 <td>-endweight</td>
292 <td>boolean</td>
293 <td>Apply end gap penalties.</td>
294 <td>Boolean value Yes/No</td>
295 <td>No</td>
296 </tr>
297
298 <tr bgcolor="#FFFFCC">
299 <td>-endopen</td>
300 <td>float</td>
301 <td>The end gap open penalty is the score taken away when an end gap is created. The best value depends on the choice of comparison matrix. The default value assumes you are using the EBLOSUM62 matrix for protein sequences, and the EDNAFULL matrix for nucleotide sequences.</td>
302 <td>Floating point number from 1.0 to 100.0</td>
303 <td>10.0 for any sequence</td>
304 </tr>
305
306 <tr bgcolor="#FFFFCC">
307 <td>-endextend</td>
308 <td>float</td>
309 <td>The end gap extension, penalty is added to the end gap penalty for each base or residue in the end gap. This is how long end gaps are penalized.</td>
310 <td>Floating point number from 0.0 to 10.0</td>
311 <td>0.5 for any sequence</td>
312 </tr>
313
314 <tr bgcolor="#FFFFCC">
315 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
316 </tr>
317
318 <tr bgcolor="#FFFFCC">
319 <td>-[no]brief</td>
320 <td>boolean</td>
321 <td>Brief identity and similarity</td>
322 <td>Boolean value Yes/No</td>
323 <td>Yes</td>
324 </tr>
325
326 <tr bgcolor="#FFFFCC">
327 <th align="left" colspan=5>Associated qualifiers</th>
328 </tr>
329
330 <tr bgcolor="#FFFFCC">
331 <td align="left" colspan=5>"-asequence" associated sequence qualifiers
332 </td>
333 </tr>
334
335 <tr bgcolor="#FFFFCC">
336 <td> -sbegin1<br>-sbegin_asequence</td>
337 <td>integer</td>
338 <td>Start of the sequence to be used</td>
339 <td>Any integer value</td>
340 <td>0</td>
341 </tr>
342
343 <tr bgcolor="#FFFFCC">
344 <td> -send1<br>-send_asequence</td>
345 <td>integer</td>
346 <td>End of the sequence to be used</td>
347 <td>Any integer value</td>
348 <td>0</td>
349 </tr>
350
351 <tr bgcolor="#FFFFCC">
352 <td> -sreverse1<br>-sreverse_asequence</td>
353 <td>boolean</td>
354 <td>Reverse (if DNA)</td>
355 <td>Boolean value Yes/No</td>
356 <td>N</td>
357 </tr>
358
359 <tr bgcolor="#FFFFCC">
360 <td> -sask1<br>-sask_asequence</td>
361 <td>boolean</td>
362 <td>Ask for begin/end/reverse</td>
363 <td>Boolean value Yes/No</td>
364 <td>N</td>
365 </tr>
366
367 <tr bgcolor="#FFFFCC">
368 <td> -snucleotide1<br>-snucleotide_asequence</td>
369 <td>boolean</td>
370 <td>Sequence is nucleotide</td>
371 <td>Boolean value Yes/No</td>
372 <td>N</td>
373 </tr>
374
375 <tr bgcolor="#FFFFCC">
376 <td> -sprotein1<br>-sprotein_asequence</td>
377 <td>boolean</td>
378 <td>Sequence is protein</td>
379 <td>Boolean value Yes/No</td>
380 <td>N</td>
381 </tr>
382
383 <tr bgcolor="#FFFFCC">
384 <td> -slower1<br>-slower_asequence</td>
385 <td>boolean</td>
386 <td>Make lower case</td>
387 <td>Boolean value Yes/No</td>
388 <td>N</td>
389 </tr>
390
391 <tr bgcolor="#FFFFCC">
392 <td> -supper1<br>-supper_asequence</td>
393 <td>boolean</td>
394 <td>Make upper case</td>
395 <td>Boolean value Yes/No</td>
396 <td>N</td>
397 </tr>
398
399 <tr bgcolor="#FFFFCC">
400 <td> -scircular1<br>-scircular_asequence</td>
401 <td>boolean</td>
402 <td>Sequence is circular</td>
403 <td>Boolean value Yes/No</td>
404 <td>N</td>
405 </tr>
406
407 <tr bgcolor="#FFFFCC">
408 <td> -squick1<br>-squick_asequence</td>
409 <td>boolean</td>
410 <td>Read id and sequence only</td>
411 <td>Boolean value Yes/No</td>
412 <td>N</td>
413 </tr>
414
415 <tr bgcolor="#FFFFCC">
416 <td> -sformat1<br>-sformat_asequence</td>
417 <td>string</td>
418 <td>Input sequence format</td>
419 <td>Any string</td>
420 <td>&nbsp;</td>
421 </tr>
422
423 <tr bgcolor="#FFFFCC">
424 <td> -iquery1<br>-iquery_asequence</td>
425 <td>string</td>
426 <td>Input query fields or ID list</td>
427 <td>Any string</td>
428 <td>&nbsp;</td>
429 </tr>
430
431 <tr bgcolor="#FFFFCC">
432 <td> -ioffset1<br>-ioffset_asequence</td>
433 <td>integer</td>
434 <td>Input start position offset</td>
435 <td>Any integer value</td>
436 <td>0</td>
437 </tr>
438
439 <tr bgcolor="#FFFFCC">
440 <td> -sdbname1<br>-sdbname_asequence</td>
441 <td>string</td>
442 <td>Database name</td>
443 <td>Any string</td>
444 <td>&nbsp;</td>
445 </tr>
446
447 <tr bgcolor="#FFFFCC">
448 <td> -sid1<br>-sid_asequence</td>
449 <td>string</td>
450 <td>Entryname</td>
451 <td>Any string</td>
452 <td>&nbsp;</td>
453 </tr>
454
455 <tr bgcolor="#FFFFCC">
456 <td> -ufo1<br>-ufo_asequence</td>
457 <td>string</td>
458 <td>UFO features</td>
459 <td>Any string</td>
460 <td>&nbsp;</td>
461 </tr>
462
463 <tr bgcolor="#FFFFCC">
464 <td> -fformat1<br>-fformat_asequence</td>
465 <td>string</td>
466 <td>Features format</td>
467 <td>Any string</td>
468 <td>&nbsp;</td>
469 </tr>
470
471 <tr bgcolor="#FFFFCC">
472 <td> -fopenfile1<br>-fopenfile_asequence</td>
473 <td>string</td>
474 <td>Features file name</td>
475 <td>Any string</td>
476 <td>&nbsp;</td>
477 </tr>
478
479 <tr bgcolor="#FFFFCC">
480 <td align="left" colspan=5>"-bsequence" associated seqall qualifiers
481 </td>
482 </tr>
483
484 <tr bgcolor="#FFFFCC">
485 <td> -sbegin2<br>-sbegin_bsequence</td>
486 <td>integer</td>
487 <td>Start of each sequence to be used</td>
488 <td>Any integer value</td>
489 <td>0</td>
490 </tr>
491
492 <tr bgcolor="#FFFFCC">
493 <td> -send2<br>-send_bsequence</td>
494 <td>integer</td>
495 <td>End of each sequence to be used</td>
496 <td>Any integer value</td>
497 <td>0</td>
498 </tr>
499
500 <tr bgcolor="#FFFFCC">
501 <td> -sreverse2<br>-sreverse_bsequence</td>
502 <td>boolean</td>
503 <td>Reverse (if DNA)</td>
504 <td>Boolean value Yes/No</td>
505 <td>N</td>
506 </tr>
507
508 <tr bgcolor="#FFFFCC">
509 <td> -sask2<br>-sask_bsequence</td>
510 <td>boolean</td>
511 <td>Ask for begin/end/reverse</td>
512 <td>Boolean value Yes/No</td>
513 <td>N</td>
514 </tr>
515
516 <tr bgcolor="#FFFFCC">
517 <td> -snucleotide2<br>-snucleotide_bsequence</td>
518 <td>boolean</td>
519 <td>Sequence is nucleotide</td>
520 <td>Boolean value Yes/No</td>
521 <td>N</td>
522 </tr>
523
524 <tr bgcolor="#FFFFCC">
525 <td> -sprotein2<br>-sprotein_bsequence</td>
526 <td>boolean</td>
527 <td>Sequence is protein</td>
528 <td>Boolean value Yes/No</td>
529 <td>N</td>
530 </tr>
531
532 <tr bgcolor="#FFFFCC">
533 <td> -slower2<br>-slower_bsequence</td>
534 <td>boolean</td>
535 <td>Make lower case</td>
536 <td>Boolean value Yes/No</td>
537 <td>N</td>
538 </tr>
539
540 <tr bgcolor="#FFFFCC">
541 <td> -supper2<br>-supper_bsequence</td>
542 <td>boolean</td>
543 <td>Make upper case</td>
544 <td>Boolean value Yes/No</td>
545 <td>N</td>
546 </tr>
547
548 <tr bgcolor="#FFFFCC">
549 <td> -scircular2<br>-scircular_bsequence</td>
550 <td>boolean</td>
551 <td>Sequence is circular</td>
552 <td>Boolean value Yes/No</td>
553 <td>N</td>
554 </tr>
555
556 <tr bgcolor="#FFFFCC">
557 <td> -squick2<br>-squick_bsequence</td>
558 <td>boolean</td>
559 <td>Read id and sequence only</td>
560 <td>Boolean value Yes/No</td>
561 <td>N</td>
562 </tr>
563
564 <tr bgcolor="#FFFFCC">
565 <td> -sformat2<br>-sformat_bsequence</td>
566 <td>string</td>
567 <td>Input sequence format</td>
568 <td>Any string</td>
569 <td>&nbsp;</td>
570 </tr>
571
572 <tr bgcolor="#FFFFCC">
573 <td> -iquery2<br>-iquery_bsequence</td>
574 <td>string</td>
575 <td>Input query fields or ID list</td>
576 <td>Any string</td>
577 <td>&nbsp;</td>
578 </tr>
579
580 <tr bgcolor="#FFFFCC">
581 <td> -ioffset2<br>-ioffset_bsequence</td>
582 <td>integer</td>
583 <td>Input start position offset</td>
584 <td>Any integer value</td>
585 <td>0</td>
586 </tr>
587
588 <tr bgcolor="#FFFFCC">
589 <td> -sdbname2<br>-sdbname_bsequence</td>
590 <td>string</td>
591 <td>Database name</td>
592 <td>Any string</td>
593 <td>&nbsp;</td>
594 </tr>
595
596 <tr bgcolor="#FFFFCC">
597 <td> -sid2<br>-sid_bsequence</td>
598 <td>string</td>
599 <td>Entryname</td>
600 <td>Any string</td>
601 <td>&nbsp;</td>
602 </tr>
603
604 <tr bgcolor="#FFFFCC">
605 <td> -ufo2<br>-ufo_bsequence</td>
606 <td>string</td>
607 <td>UFO features</td>
608 <td>Any string</td>
609 <td>&nbsp;</td>
610 </tr>
611
612 <tr bgcolor="#FFFFCC">
613 <td> -fformat2<br>-fformat_bsequence</td>
614 <td>string</td>
615 <td>Features format</td>
616 <td>Any string</td>
617 <td>&nbsp;</td>
618 </tr>
619
620 <tr bgcolor="#FFFFCC">
621 <td> -fopenfile2<br>-fopenfile_bsequence</td>
622 <td>string</td>
623 <td>Features file name</td>
624 <td>Any string</td>
625 <td>&nbsp;</td>
626 </tr>
627
628 <tr bgcolor="#FFFFCC">
629 <td align="left" colspan=5>"-outfile" associated align qualifiers
630 </td>
631 </tr>
632
633 <tr bgcolor="#FFFFCC">
634 <td> -aformat3<br>-aformat_outfile</td>
635 <td>string</td>
636 <td>Alignment format</td>
637 <td>Any string</td>
638 <td>srspair</td>
639 </tr>
640
641 <tr bgcolor="#FFFFCC">
642 <td> -aextension3<br>-aextension_outfile</td>
643 <td>string</td>
644 <td>File name extension</td>
645 <td>Any string</td>
646 <td>&nbsp;</td>
647 </tr>
648
649 <tr bgcolor="#FFFFCC">
650 <td> -adirectory3<br>-adirectory_outfile</td>
651 <td>string</td>
652 <td>Output directory</td>
653 <td>Any string</td>
654 <td>&nbsp;</td>
655 </tr>
656
657 <tr bgcolor="#FFFFCC">
658 <td> -aname3<br>-aname_outfile</td>
659 <td>string</td>
660 <td>Base file name</td>
661 <td>Any string</td>
662 <td>&nbsp;</td>
663 </tr>
664
665 <tr bgcolor="#FFFFCC">
666 <td> -awidth3<br>-awidth_outfile</td>
667 <td>integer</td>
668 <td>Alignment width</td>
669 <td>Any integer value</td>
670 <td>0</td>
671 </tr>
672
673 <tr bgcolor="#FFFFCC">
674 <td> -aaccshow3<br>-aaccshow_outfile</td>
675 <td>boolean</td>
676 <td>Show accession number in the header</td>
677 <td>Boolean value Yes/No</td>
678 <td>N</td>
679 </tr>
680
681 <tr bgcolor="#FFFFCC">
682 <td> -adesshow3<br>-adesshow_outfile</td>
683 <td>boolean</td>
684 <td>Show description in the header</td>
685 <td>Boolean value Yes/No</td>
686 <td>N</td>
687 </tr>
688
689 <tr bgcolor="#FFFFCC">
690 <td> -ausashow3<br>-ausashow_outfile</td>
691 <td>boolean</td>
692 <td>Show the full USA in the alignment</td>
693 <td>Boolean value Yes/No</td>
694 <td>N</td>
695 </tr>
696
697 <tr bgcolor="#FFFFCC">
698 <td> -aglobal3<br>-aglobal_outfile</td>
699 <td>boolean</td>
700 <td>Show the full sequence in alignment</td>
701 <td>Boolean value Yes/No</td>
702 <td>Y</td>
703 </tr>
704
705 <tr bgcolor="#FFFFCC">
706 <th align="left" colspan=5>General qualifiers</th>
707 </tr>
708
709 <tr bgcolor="#FFFFCC">
710 <td> -auto</td>
711 <td>boolean</td>
712 <td>Turn off prompts</td>
713 <td>Boolean value Yes/No</td>
714 <td>N</td>
715 </tr>
716
717 <tr bgcolor="#FFFFCC">
718 <td> -stdout</td>
719 <td>boolean</td>
720 <td>Write first file to standard output</td>
721 <td>Boolean value Yes/No</td>
722 <td>N</td>
723 </tr>
724
725 <tr bgcolor="#FFFFCC">
726 <td> -filter</td>
727 <td>boolean</td>
728 <td>Read first file from standard input, write first file to standard output</td>
729 <td>Boolean value Yes/No</td>
730 <td>N</td>
731 </tr>
732
733 <tr bgcolor="#FFFFCC">
734 <td> -options</td>
735 <td>boolean</td>
736 <td>Prompt for standard and additional values</td>
737 <td>Boolean value Yes/No</td>
738 <td>N</td>
739 </tr>
740
741 <tr bgcolor="#FFFFCC">
742 <td> -debug</td>
743 <td>boolean</td>
744 <td>Write debug output to program.dbg</td>
745 <td>Boolean value Yes/No</td>
746 <td>N</td>
747 </tr>
748
749 <tr bgcolor="#FFFFCC">
750 <td> -verbose</td>
751 <td>boolean</td>
752 <td>Report some/full command line options</td>
753 <td>Boolean value Yes/No</td>
754 <td>Y</td>
755 </tr>
756
757 <tr bgcolor="#FFFFCC">
758 <td> -help</td>
759 <td>boolean</td>
760 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
761 <td>Boolean value Yes/No</td>
762 <td>N</td>
763 </tr>
764
765 <tr bgcolor="#FFFFCC">
766 <td> -warning</td>
767 <td>boolean</td>
768 <td>Report warnings</td>
769 <td>Boolean value Yes/No</td>
770 <td>Y</td>
771 </tr>
772
773 <tr bgcolor="#FFFFCC">
774 <td> -error</td>
775 <td>boolean</td>
776 <td>Report errors</td>
777 <td>Boolean value Yes/No</td>
778 <td>Y</td>
779 </tr>
780
781 <tr bgcolor="#FFFFCC">
782 <td> -fatal</td>
783 <td>boolean</td>
784 <td>Report fatal errors</td>
785 <td>Boolean value Yes/No</td>
786 <td>Y</td>
787 </tr>
788
789 <tr bgcolor="#FFFFCC">
790 <td> -die</td>
791 <td>boolean</td>
792 <td>Report dying program messages</td>
793 <td>Boolean value Yes/No</td>
794 <td>Y</td>
795 </tr>
796
797 <tr bgcolor="#FFFFCC">
798 <td> -version</td>
799 <td>boolean</td>
800 <td>Report version number and exit</td>
801 <td>Boolean value Yes/No</td>
802 <td>N</td>
803 </tr>
804
805 </table>
806
807
808 <H2>
809 Input file format
810 </H2>
811
812 <b>needle</b> reads in two nucleotide or protein sequences. The second
813 input can be more than one sequence to align to the first input
814 sequence.
815 <p>
816 <p>
817
818 The input is a standard EMBOSS sequence query (also known as a 'USA').
819
820 <p>
821 Major sequence database sources defined as standard in EMBOSS
822 installations include srs:embl, srs:uniprot and ensembl
823
824 <p>
825
826 Data can also be read from sequence output in any supported format
827 written by an EMBOSS or third-party application.
828
829 <p>
830 The input format can be specified by using the
831 command-line qualifier <tt>-sformat xxx</tt>, where 'xxx' is replaced
832 by the name of the required format. The available format names are:
833 gff (gff3), gff2, embl (em), genbank (gb, refseq), ddbj, refseqp, pir
834 (nbrf), swissprot (swiss, sw), dasgff and debug.
835
836 <p>
837
838 See:
839 <A href="http://emboss.sf.net/docs/themes/SequenceFormats.html">
840 http://emboss.sf.net/docs/themes/SequenceFormats.html</A>
841 for further information on sequence formats.
842
843 <p>
844
845
846 <a name="input.1"></a>
847 <h3>Input files for usage example </h3>
848
849 'tsw:hba_human' is a sequence entry in the example protein database 'tsw'
850 <p>
851 <p><h3>Database entry: tsw:hba_human</h3>
852 <table width="90%"><tr><td bgcolor="#FFCCFF">
853 <pre>
854 ID HBA_HUMAN Reviewed; 142 AA.
855 AC P69905; P01922; Q1HDT5; Q3MIF5; Q53F97; Q96KF1; Q9NYR7; Q9UCM0;
856 DT 21-JUL-1986, integrated into UniProtKB/Swiss-Prot.
857 DT 23-JAN-2007, sequence version 2.
858 DT 13-JUN-2012, entry version 108.
859 DE RecName: Full=Hemoglobin subunit alpha;
860 DE AltName: Full=Alpha-globin;
861 DE AltName: Full=Hemoglobin alpha chain;
862 GN Name=HBA1;
863 GN and
864 GN Name=HBA2;
865 OS Homo sapiens (Human).
866 OC Eukaryota; Metazoa; Chordata; Craniata; Vertebrata; Euteleostomi;
867 OC Mammalia; Eutheria; Euarchontoglires; Primates; Haplorrhini;
868 OC Catarrhini; Hominidae; Homo.
869 OX NCBI_TaxID=9606;
870 RN [1]
871 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA] (HBA1).
872 RX MEDLINE=81088339; PubMed=7448866; DOI=10.1016/0092-8674(80)90347-5;
873 RA Michelson A.M., Orkin S.H.;
874 RT "The 3' untranslated regions of the duplicated human alpha-globin
875 RT genes are unexpectedly divergent.";
876 RL Cell 22:371-377(1980).
877 RN [2]
878 RP NUCLEOTIDE SEQUENCE [MRNA] (HBA2).
879 RX MEDLINE=80137531; PubMed=6244294;
880 RA Wilson J.T., Wilson L.B., Reddy V.B., Cavallesco C., Ghosh P.K.,
881 RA Deriel J.K., Forget B.G., Weissman S.M.;
882 RT "Nucleotide sequence of the coding portion of human alpha globin
883 RT messenger RNA.";
884 RL J. Biol. Chem. 255:2807-2815(1980).
885 RN [3]
886 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA] (HBA2).
887 RX MEDLINE=81175088; PubMed=6452630; DOI=10.1073/pnas.77.12.7054;
888 RA Liebhaber S.A., Goossens M.J., Kan Y.W.;
889 RT "Cloning and complete nucleotide sequence of human 5'-alpha-globin
890 RT gene.";
891 RL Proc. Natl. Acad. Sci. U.S.A. 77:7054-7058(1980).
892 RN [4]
893 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA].
894 RX PubMed=6946451; DOI=10.1073/pnas.78.8.5041;
895 RA Orkin S.H., Goff S.C., Hechtman R.L.;
896 RT "Mutation in an intervening sequence splice junction in man.";
897 RL Proc. Natl. Acad. Sci. U.S.A. 78:5041-5045(1981).
898 RN [5]
899 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA], AND VARIANT LYS-32.
900 RX MEDLINE=21303311; PubMed=11410421;
901 RA Zhao Y., Xu X.;
902 RT "Alpha2(CD31 AGG--&gt;AAG, Arg--&gt;Lys) causing non-deletional alpha-
903 RT thalassemia in a Chinese family with HbH disease.";
904
905
906 <font color=red> [Part of this file has been deleted for brevity]</font>
907
908 FT /FTId=VAR_002841.
909 FT VARIANT 132 132 S -&gt; P (in Questembert; highly unstable;
910 FT causes alpha-thalassemia).
911 FT /FTId=VAR_002843.
912 FT VARIANT 134 134 S -&gt; R (in Val de Marne; O(2) affinity
913 FT up).
914 FT /FTId=VAR_002844.
915 FT VARIANT 136 136 V -&gt; E (in Pavie).
916 FT /FTId=VAR_002845.
917 FT VARIANT 137 137 L -&gt; M (in Chicago).
918 FT /FTId=VAR_002846.
919 FT VARIANT 137 137 L -&gt; P (in Bibba; unstable; causes alpha-
920 FT thalassemia).
921 FT /FTId=VAR_002847.
922 FT VARIANT 137 137 L -&gt; R (in Toyama).
923 FT /FTId=VAR_035242.
924 FT VARIANT 139 139 S -&gt; P (in Attleboro; O(2) affinity up).
925 FT /FTId=VAR_002848.
926 FT VARIANT 140 140 K -&gt; E (in Hanamaki; O(2) affinity up).
927 FT /FTId=VAR_002849.
928 FT VARIANT 140 140 K -&gt; T (in Tokoname; O(2) affinity up).
929 FT /FTId=VAR_002850.
930 FT VARIANT 141 141 Y -&gt; H (in Rouen/Ethiopia; O(2) affinity
931 FT up).
932 FT /FTId=VAR_002851.
933 FT VARIANT 142 142 R -&gt; C (in Nunobiki; O(2) affinity up).
934 FT /FTId=VAR_002852.
935 FT VARIANT 142 142 R -&gt; H (in Suresnes; O(2) affinity up).
936 FT /FTId=VAR_002854.
937 FT VARIANT 142 142 R -&gt; L (in Legnano; O(2) affinity up).
938 FT /FTId=VAR_002853.
939 FT VARIANT 142 142 R -&gt; P (in Singapore).
940 FT /FTId=VAR_002855.
941 FT CONFLICT 10 10 N -&gt; H (in Ref. 13; BAD97112).
942 FT HELIX 5 16
943 FT HELIX 17 21
944 FT HELIX 22 36
945 FT HELIX 38 43
946 FT HELIX 54 72
947 FT HELIX 74 76
948 FT HELIX 77 80
949 FT HELIX 82 90
950 FT HELIX 97 113
951 FT TURN 115 117
952 FT HELIX 120 137
953 FT TURN 138 140
954 SQ SEQUENCE 142 AA; 15258 MW; 15E13666573BBBAE CRC64;
955 MVLSPADKTN VKAAWGKVGA HAGEYGAEAL ERMFLSFPTT KTYFPHFDLS HGSAQVKGHG
956 KKVADALTNA VAHVDDMPNA LSALSDLHAH KLRVDPVNFK LLSHCLLVTL AAHLPAEFTP
957 AVHASLDKFL ASVSTVLTSK YR
958 //
959 </pre>
960 </td></tr></table><p>
961 <p><h3>Database entry: tsw:hbb_human</h3>
962 <table width="90%"><tr><td bgcolor="#FFCCFF">
963 <pre>
964 ID HBB_HUMAN Reviewed; 147 AA.
965 AC P68871; A4GX73; B2ZUE0; P02023; Q13852; Q14481; Q14510; Q45KT0;
966 AC Q549N7; Q6FI08; Q6R7N2; Q8IZI1; Q9BX96; Q9UCD6; Q9UCP8; Q9UCP9;
967 DT 21-JUL-1986, integrated into UniProtKB/Swiss-Prot.
968 DT 23-JAN-2007, sequence version 2.
969 DT 13-JUN-2012, entry version 108.
970 DE RecName: Full=Hemoglobin subunit beta;
971 DE AltName: Full=Beta-globin;
972 DE AltName: Full=Hemoglobin beta chain;
973 DE Contains:
974 DE RecName: Full=LVV-hemorphin-7;
975 GN Name=HBB;
976 OS Homo sapiens (Human).
977 OC Eukaryota; Metazoa; Chordata; Craniata; Vertebrata; Euteleostomi;
978 OC Mammalia; Eutheria; Euarchontoglires; Primates; Haplorrhini;
979 OC Catarrhini; Hominidae; Homo.
980 OX NCBI_TaxID=9606;
981 RN [1]
982 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA].
983 RX MEDLINE=77126403; PubMed=1019344;
984 RA Marotta C., Forget B., Cohen-Solal M., Weissman S.M.;
985 RT "Nucleotide sequence analysis of coding and noncoding regions of human
986 RT beta-globin mRNA.";
987 RL Prog. Nucleic Acid Res. Mol. Biol. 19:165-175(1976).
988 RN [2]
989 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA].
990 RX MEDLINE=81064667; PubMed=6254664; DOI=10.1016/0092-8674(80)90428-6;
991 RA Lawn R.M., Efstratiadis A., O'Connell C., Maniatis T.;
992 RT "The nucleotide sequence of the human beta-globin gene.";
993 RL Cell 21:647-651(1980).
994 RN [3]
995 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA], AND VARIANT LYS-7.
996 RX PubMed=16175509; DOI=10.1086/491748;
997 RA Wood E.T., Stover D.A., Slatkin M., Nachman M.W., Hammer M.F.;
998 RT "The beta-globin recombinational hotspot reduces the effects of strong
999 RT selection around HbC, a recently arisen mutation providing resistance
1000 RT to malaria.";
1001 RL Am. J. Hum. Genet. 77:637-642(2005).
1002 RN [4]
1003 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA].
1004 RA Lu L., Hu Z.H., Du C.S., Fu Y.S.;
1005 RT "DNA sequence of the human beta-globin gene isolated from a healthy
1006 RT Chinese.";
1007 RL Submitted (JUN-1997) to the EMBL/GenBank/DDBJ databases.
1008 RN [5]
1009 RP NUCLEOTIDE SEQUENCE [GENOMIC DNA], AND VARIANT ARG-113.
1010 RA Cabeda J.M., Correia C., Estevinho A., Cardoso C., Amorim M.L.,
1011 RA Cleto E., Vale L., Coimbra E., Pinho L., Justica B.;
1012 RT "Unexpected patterns of globin mutations in thalassemia patients from
1013 RT north of Portugal.";
1014
1015
1016 <font color=red> [Part of this file has been deleted for brevity]</font>
1017
1018 FT VARIANT 141 141 A -&gt; V (in Puttelange; polycythemia; O(2)
1019 FT affinity up).
1020 FT /FTId=VAR_003082.
1021 FT VARIANT 142 142 L -&gt; R (in Olmsted; unstable).
1022 FT /FTId=VAR_003083.
1023 FT VARIANT 143 143 A -&gt; D (in Ohio; O(2) affinity up).
1024 FT /FTId=VAR_003084.
1025 FT VARIANT 144 144 H -&gt; D (in Rancho Mirage).
1026 FT /FTId=VAR_003085.
1027 FT VARIANT 144 144 H -&gt; P (in Syracuse; O(2) affinity up).
1028 FT /FTId=VAR_003087.
1029 FT VARIANT 144 144 H -&gt; Q (in Little Rock; O(2) affinity
1030 FT up).
1031 FT /FTId=VAR_003086.
1032 FT VARIANT 144 144 H -&gt; R (in Abruzzo; O(2) affinity up).
1033 FT /FTId=VAR_003088.
1034 FT VARIANT 145 145 K -&gt; E (in Mito; O(2) affinity up).
1035 FT /FTId=VAR_003089.
1036 FT VARIANT 146 146 Y -&gt; C (in Rainier; O(2) affinity up).
1037 FT /FTId=VAR_003090.
1038 FT VARIANT 146 146 Y -&gt; H (in Bethesda; O(2) affinity up).
1039 FT /FTId=VAR_003091.
1040 FT VARIANT 147 147 H -&gt; D (in Hiroshima; O(2) affinity up).
1041 FT /FTId=VAR_003092.
1042 FT VARIANT 147 147 H -&gt; L (in Cowtown; O(2) affinity up).
1043 FT /FTId=VAR_003093.
1044 FT VARIANT 147 147 H -&gt; P (in York; O(2) affinity up).
1045 FT /FTId=VAR_003094.
1046 FT VARIANT 147 147 H -&gt; Q (in Kodaira; O(2) affinity up).
1047 FT /FTId=VAR_003095.
1048 FT CONFLICT 26 26 Missing (in Ref. 15; ACD39349).
1049 FT CONFLICT 42 42 F -&gt; L (in Ref. 13; AAR96398).
1050 FT HELIX 6 16
1051 FT TURN 21 23
1052 FT HELIX 24 35
1053 FT HELIX 37 42
1054 FT HELIX 44 46
1055 FT HELIX 52 57
1056 FT HELIX 59 77
1057 FT TURN 78 80
1058 FT HELIX 82 94
1059 FT TURN 95 97
1060 FT HELIX 102 119
1061 FT HELIX 120 122
1062 FT HELIX 125 142
1063 FT HELIX 144 146
1064 SQ SEQUENCE 147 AA; 15998 MW; A31F6D621C6556A1 CRC64;
1065 MVHLTPEEKS AVTALWGKVN VDEVGGEALG RLLVVYPWTQ RFFESFGDLS TPDAVMGNPK
1066 VKAHGKKVLG AFSDGLAHLD NLKGTFATLS ELHCDKLHVD PENFRLLGNV LVCVLAHHFG
1067 KEFTPPVQAA YQKVVAGVAN ALAHKYH
1068 //
1069 </pre>
1070 </td></tr></table><p>
1071
1072 <H2>
1073 Output file format
1074 </H2>
1075
1076 <p>
1077
1078 The output is a standard EMBOSS alignment file.
1079
1080 <p>
1081
1082 The results can be output in one of several styles by using the
1083 command-line qualifier <tt>-aformat xxx</tt>, where 'xxx' is replaced by
1084 the name of the required format. Some of the alignment formats can cope
1085 with an unlimited number of sequences, while others are only for pairs
1086 of sequences.
1087
1088 <p>
1089
1090 The available multiple alignment format names are: multiple, simple,
1091 fasta, msf, clustal, mega, meganon, nexus,, nexusnon, phylip,
1092 phylipnon, selex, treecon, tcoffee, debug, srs.
1093
1094 <p>
1095
1096 The available pairwise alignment format names are: pair, markx0, markx1,
1097 markx2, markx3, markx10, match, sam, bam, score, srspair
1098
1099 <p>
1100
1101 See:
1102 <A href="http://emboss.sf.net/docs/themes/AlignFormats.html">
1103 http://emboss.sf.net/docs/themes/AlignFormats.html</A>
1104 for further information on alignment formats.
1105
1106 <p>
1107
1108 <p>
1109
1110
1111
1112 <a name="output.1"></a>
1113 <h3>Output files for usage example </h3>
1114 <p><h3>File: hba_human.needle</h3>
1115 <table width="90%"><tr><td bgcolor="#CCFFCC">
1116 <pre>
1117 ########################################
1118 # Program: needle
1119 # Rundate: Mon 15 Jul 2013 12:00:00
1120 # Commandline: needle
1121 # [-asequence] tsw:hba_human
1122 # [-bsequence] tsw:hbb_human
1123 # Align_format: srspair
1124 # Report_file: hba_human.needle
1125 ########################################
1126
1127 #=======================================
1128 #
1129 # Aligned_sequences: 2
1130 # 1: HBA_HUMAN
1131 # 2: HBB_HUMAN
1132 # Matrix: EBLOSUM62
1133 # Gap_penalty: 10.0
1134 # Extend_penalty: 0.5
1135 #
1136 # Length: 149
1137 # Identity: 65/149 (43.6%)
1138 # Similarity: 90/149 (60.4%)
1139 # Gaps: 9/149 ( 6.0%)
1140 # Score: 292.5
1141 #
1142 #
1143 #=======================================
1144
1145 HBA_HUMAN 1 MV-LSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTTKTYFPHF-D 48
1146 || |:|.:|:.|.|.|||| :..|.|.|||.|:.:.:|.|:.:|..| |
1147 HBB_HUMAN 1 MVHLTPEEKSAVTALWGKV--NVDEVGGEALGRLLVVYPWTQRFFESFGD 48
1148
1149 HBA_HUMAN 49 LS-----HGSAQVKGHGKKVADALTNAVAHVDDMPNALSALSDLHAHKLR 93
1150 || .|:.:||.|||||..|.::.:||:|::....:.||:||..||.
1151 HBB_HUMAN 49 LSTPDAVMGNPKVKAHGKKVLGAFSDGLAHLDNLKGTFATLSELHCDKLH 98
1152
1153 HBA_HUMAN 94 VDPVNFKLLSHCLLVTLAAHLPAEFTPAVHASLDKFLASVSTVLTSKYR 142
1154 |||.||:||.:.|:..||.|...||||.|.|:..|.:|.|:..|..||.
1155 HBB_HUMAN 99 VDPENFRLLGNVLVCVLAHHFGKEFTPPVQAAYQKVVAGVANALAHKYH 147
1156
1157
1158 #---------------------------------------
1159 #---------------------------------------
1160 </pre>
1161 </td></tr></table><p>
1162
1163 <p>
1164
1165 The <b>Identity:</b> is the percentage of identical matches between the two
1166 sequences over the reported aligned region (including any gaps in the length).
1167
1168 <p>
1169
1170 The <b>Similarity:</b> is the percentage of matches between the two
1171 sequences over the reported aligned region (including any gaps in the length).
1172
1173
1174
1175 <H2>
1176 Data files
1177 </H2>
1178
1179
1180 For protein sequences EBLOSUM62 is used for the substitution
1181 matrix. For nucleotide sequence, EDNAFULL is used. Others can be
1182 specified.
1183
1184 <p>
1185 <p>
1186 EMBOSS data files are distributed with the application and stored
1187 in the standard EMBOSS data directory, which is defined
1188 by the EMBOSS environment variable EMBOSS_DATA.
1189
1190 <p>
1191
1192 To see the available EMBOSS data files, run:
1193 <p>
1194 <pre>
1195 % embossdata -showall
1196 </pre>
1197 <p>
1198 To fetch one of the data files (for example 'Exxx.dat') into your
1199 current directory for you to inspect or modify, run:
1200
1201 <pre>
1202
1203 % embossdata -fetch -file Exxx.dat
1204
1205 </pre>
1206 <p>
1207
1208 Users can provide their own data files in their own directories.
1209 Project specific files can be put in the current directory, or for
1210 tidier directory listings in a subdirectory called
1211 ".embossdata". Files for all EMBOSS runs can be put in the user's home
1212 directory, or again in a subdirectory called ".embossdata".
1213
1214 <p>
1215 The directories are searched in the following order:
1216
1217 <ul>
1218 <li> . (your current directory)
1219 <li> .embossdata (under your current directory)
1220 <li> ~/ (your home directory)
1221 <li> ~/.embossdata
1222 </ul>
1223 <p>
1224
1225 <H2>
1226 Notes
1227 </H2>
1228
1229 <b>needle</b> is a true implementation of the Needleman-Wunsch
1230 algorithm and so produces a full path matrix. It therefore cannot be
1231 used with genome sized sequences unless you've a lot of memory and a
1232 lot of time.
1233
1234 <H2>
1235 References
1236 </H2>
1237
1238
1239 <ol>
1240
1241 <li>
1242 Needleman, S. B. and Wunsch, C. D. (1970) J. Mol. Biol. 48,
1243 443-453.
1244
1245 <li>
1246 Kruskal, J. B. (1983) An overview of squence comparison In D. Sankoff
1247 and J. B. Kruskal, (ed.), Time warps, string edits and macromolecules:
1248 the theory and practice of sequence comparison, pp. 1-44 Addison
1249 Wesley.
1250 </ol>
1251
1252 <H2>
1253 Warnings
1254 </H2>
1255
1256
1257 <b>needle</b> is for aligning two sequences over their entire length. This
1258 works best with closely related sequences. If you use needle to align
1259 very distantly-related sequences, it will produce a result but much of
1260 the alignment may have little or no biological significance.
1261
1262 <p>
1263
1264 A true Needleman Wunsch implementation like <b>needle</b> needs memory
1265 proportional to the product of the sequence lengths. For two sequences
1266 of length 10,000,000 and 1,000 it therefore needs memory proportional to
1267 10,000,000,000 characters. Two arrays of this size are produced, one of
1268 ints and one of floats so multiply that figure by 8 to get the memory
1269 usage in bytes. That doesn't include other overheads. Therefore only
1270 use water and needle for accurate alignment of reasonably short
1271 sequences.
1272
1273 <p>
1274
1275 If you run out of memory, try using
1276 <b>stretcher</b> instead.
1277
1278 <H2>
1279 Diagnostic Error Messages
1280 </H2>
1281
1282 <pre>
1283 Uncaught exception
1284 Assertion failed
1285 raised at ajmem.c:xxx
1286 </pre>
1287
1288 <p>
1289
1290 Probably means you have run out of memory. Try using
1291 <b>stretcher</b> if this happens.
1292
1293 <H2>
1294 Exit status
1295 </H2>
1296
1297 0 upon successful completion.
1298
1299 <H2>
1300 Known bugs
1301 </H2>
1302
1303 None.
1304
1305 <h2><a name="See also">See also</a></h2>
1306 <table border cellpadding=4 bgcolor="#FFFFF0">
1307 <tr><th>Program name</th>
1308 <th>Description</th></tr>
1309 <tr>
1310 <td><a href="est2genome.html">est2genome</a></td>
1311 <td>Align EST sequences to genomic DNA sequence</td>
1312 </tr>
1313
1314 <tr>
1315 <td><a href="needleall.html">needleall</a></td>
1316 <td>Many-to-many pairwise alignments of two sequence sets</td>
1317 </tr>
1318
1319 <tr>
1320 <td><a href="stretcher.html">stretcher</a></td>
1321 <td>Needleman-Wunsch rapid global alignment of two sequences</td>
1322 </tr>
1323
1324 </table>
1325
1326 <P>
1327 When you want an alignment that covers the whole length of both
1328 sequences, use <a href="needle.html">needle. </A>
1329
1330 <p>
1331 When you are trying to find the best region of similarity between two
1332 sequences, use <a href="water.html">water.</a>
1333 <p>
1334
1335 <a href="stretcher.html">stretcher</a> is a more suitable program to use to
1336 find global alignments of very long sequences.
1337
1338
1339 <H2>
1340 Author(s)
1341 </H2>
1342 Alan Bleasby
1343 <br>
1344 European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK
1345
1346 <p>
1347 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
1348
1349
1350 <H2>
1351 History
1352 </H2>
1353
1354 Completed 8th July 1999.
1355 <p>
1356 Modified 26th July 1999 - scoring tweaked.
1357 <p>
1358 Modified 22 Oct 2000 - %ID and %Similarity scores added.
1359
1360 <H2>
1361 Target users
1362 </H2>
1363 This program is intended to be used by everyone and everything, from naive users to embedded scripts.
1364
1365
1366 <H2>
1367 Comments
1368 </H2>
1369 None
1370
1371 </BODY>
1372 </HTML>
1373