Debian Codegraph @

doc/programs/html/newseq.html

raw symbols SCIP
1 <HTML>
2
3 <HEAD>
4 <TITLE>
5 EMBOSS: newseq
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 newseq
17 </font></b>
18 </td></tr>
19 </table>
20 <br>&nbsp;
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 Create a sequence file from a typed-in sequence
40
41 <H2>
42 Description
43 </H2>
44
45 <p><b>newseq</b> creates a sequence file from a sequence that is manually typed in at the command-line. This is a quicker, easier and less error-prone method than editing such a file in a text editor.</p>
46
47
48 <H2>
49 Usage
50 </H2>
51
52
53 Here is a sample session with <b>newseq</b>
54 <p>
55 Type in a short sequence to the file 'mycc.pep' in SWISSPROT format:
56 <p>
57
58 <p>
59 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
60
61 % <b>newseq </b>
62 Create a sequence file from a typed-in sequence
63 Name of the sequence: <b>cytoc</b>
64 Description of the sequence: <b>fragment of cytochrome c</b>
65 Type of sequence
66 N : Nucleic
67 P : Protein
68 Type of sequence [N]: <b>p</b>
69 Enter the sequence: <b>KKKEERADLIAY</b>
70 output sequence [outfile.fasta]: <b>swiss::mycc.pep</b>
71
72 </pre></td></tr></table><p>
73 <p>
74 <a href="#output.1">Go to the output files for this example</a><p><p>
75
76
77 <H2>
78 Command line arguments
79 </H2>
80 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
81 <pre>
82 Create a sequence file from a typed-in sequence
83 Version: EMBOSS:6.6.0.0
84
85 Standard (Mandatory) qualifiers:
86 [-name] string The name of of the sequence should be a
87 single word that you will use to identify
88 the sequence. It should have no (or few)
89 punctuation characters in it. (Any string)
90 [-description] string Enter any description of the sequence that
91 you require. (Any string)
92 [-type] menu [N] Type of sequence (Values: N (Nucleic); P
93 (Protein))
94 [-sequence] string The sequence itself.
95 Because of the limitation of the operating
96 system, you will only be able to type in a
97 short sequence of (typically) 250
98 characters, or so.
99 The keyboard will beep at you when you have
100 reached this limit and you will not be able
101 to press the RETURN/ENTER key until you have
102 deleted a few characters. (Any string)
103 [-outseq] seqout [<sequence>.<format>] Sequence filename and
104 optional format (output USA)
105
106 Additional (Optional) qualifiers: (none)
107 Advanced (Unprompted) qualifiers: (none)
108 Associated qualifiers:
109
110 "-outseq" associated qualifiers
111 -osformat5 string Output seq format
112 -osextension5 string File name extension
113 -osname5 string Base file name
114 -osdirectory5 string Output directory
115 -osdbname5 string Database name to add
116 -ossingle5 boolean Separate file for each entry
117 -oufo5 string UFO features
118 -offormat5 string Features format
119 -ofname5 string Features file name
120 -ofdirectory5 string Output directory
121
122 General qualifiers:
123 -auto boolean Turn off prompts
124 -stdout boolean Write first file to standard output
125 -filter boolean Read first file from standard input, write
126 first file to standard output
127 -options boolean Prompt for standard and additional values
128 -debug boolean Write debug output to program.dbg
129 -verbose boolean Report some/full command line options
130 -help boolean Report command line options and exit. More
131 information on associated and general
132 qualifiers can be found with -help -verbose
133 -warning boolean Report warnings
134 -error boolean Report errors
135 -fatal boolean Report fatal errors
136 -die boolean Report dying program messages
137 -version boolean Report version number and exit
138
139 </pre>
140 </td></tr></table>
141 <P>
142
143 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
144 <tr bgcolor="#FFFFCC">
145 <th align="left">Qualifier</th>
146 <th align="left">Type</th>
147 <th align="left">Description</th>
148 <th align="left">Allowed values</th>
149 <th align="left">Default</th>
150 </tr>
151
152 <tr bgcolor="#FFFFCC">
153 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
154 </tr>
155
156 <tr bgcolor="#FFFFCC">
157 <td>[-name]<br>(Parameter 1)</td>
158 <td>string</td>
159 <td>The name of of the sequence should be a single word that you will use to identify the sequence. It should have no (or few) punctuation characters in it.</td>
160 <td>Any string</td>
161 <td>&nbsp;</td>
162 </tr>
163
164 <tr bgcolor="#FFFFCC">
165 <td>[-description]<br>(Parameter 2)</td>
166 <td>string</td>
167 <td>Enter any description of the sequence that you require.</td>
168 <td>Any string</td>
169 <td>&nbsp;</td>
170 </tr>
171
172 <tr bgcolor="#FFFFCC">
173 <td>[-type]<br>(Parameter 3)</td>
174 <td>list</td>
175 <td>Type of sequence</td>
176 <td><table><tr><td>N</td> <td><i>(Nucleic)</i></td></tr><tr><td>P</td> <td><i>(Protein)</i></td></tr></table></td>
177 <td>N</td>
178 </tr>
179
180 <tr bgcolor="#FFFFCC">
181 <td>[-sequence]<br>(Parameter 4)</td>
182 <td>string</td>
183 <td>The sequence itself.
184 Because of the limitation of the operating system, you will only be able to type in a short sequence of (typically) 250 characters, or so.
185 The keyboard will beep at you when you have reached this limit and you will not be able to press the RETURN/ENTER key until you have deleted a few characters.</td>
186 <td>Any string</td>
187 <td>&nbsp;</td>
188 </tr>
189
190 <tr bgcolor="#FFFFCC">
191 <td>[-outseq]<br>(Parameter 5)</td>
192 <td>seqout</td>
193 <td>Sequence filename and optional format (output USA)</td>
194 <td>Writeable sequence</td>
195 <td><i>&lt;*&gt;</i>.<i>format</i></td>
196 </tr>
197
198 <tr bgcolor="#FFFFCC">
199 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
200 </tr>
201
202 <tr>
203 <td colspan=5>(none)</td>
204 </tr>
205
206 <tr bgcolor="#FFFFCC">
207 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
208 </tr>
209
210 <tr>
211 <td colspan=5>(none)</td>
212 </tr>
213
214 <tr bgcolor="#FFFFCC">
215 <th align="left" colspan=5>Associated qualifiers</th>
216 </tr>
217
218 <tr bgcolor="#FFFFCC">
219 <td align="left" colspan=5>"-outseq" associated seqout qualifiers
220 </td>
221 </tr>
222
223 <tr bgcolor="#FFFFCC">
224 <td> -osformat5<br>-osformat_outseq</td>
225 <td>string</td>
226 <td>Output seq format</td>
227 <td>Any string</td>
228 <td>&nbsp;</td>
229 </tr>
230
231 <tr bgcolor="#FFFFCC">
232 <td> -osextension5<br>-osextension_outseq</td>
233 <td>string</td>
234 <td>File name extension</td>
235 <td>Any string</td>
236 <td>&nbsp;</td>
237 </tr>
238
239 <tr bgcolor="#FFFFCC">
240 <td> -osname5<br>-osname_outseq</td>
241 <td>string</td>
242 <td>Base file name</td>
243 <td>Any string</td>
244 <td>&nbsp;</td>
245 </tr>
246
247 <tr bgcolor="#FFFFCC">
248 <td> -osdirectory5<br>-osdirectory_outseq</td>
249 <td>string</td>
250 <td>Output directory</td>
251 <td>Any string</td>
252 <td>&nbsp;</td>
253 </tr>
254
255 <tr bgcolor="#FFFFCC">
256 <td> -osdbname5<br>-osdbname_outseq</td>
257 <td>string</td>
258 <td>Database name to add</td>
259 <td>Any string</td>
260 <td>&nbsp;</td>
261 </tr>
262
263 <tr bgcolor="#FFFFCC">
264 <td> -ossingle5<br>-ossingle_outseq</td>
265 <td>boolean</td>
266 <td>Separate file for each entry</td>
267 <td>Boolean value Yes/No</td>
268 <td>N</td>
269 </tr>
270
271 <tr bgcolor="#FFFFCC">
272 <td> -oufo5<br>-oufo_outseq</td>
273 <td>string</td>
274 <td>UFO features</td>
275 <td>Any string</td>
276 <td>&nbsp;</td>
277 </tr>
278
279 <tr bgcolor="#FFFFCC">
280 <td> -offormat5<br>-offormat_outseq</td>
281 <td>string</td>
282 <td>Features format</td>
283 <td>Any string</td>
284 <td>&nbsp;</td>
285 </tr>
286
287 <tr bgcolor="#FFFFCC">
288 <td> -ofname5<br>-ofname_outseq</td>
289 <td>string</td>
290 <td>Features file name</td>
291 <td>Any string</td>
292 <td>&nbsp;</td>
293 </tr>
294
295 <tr bgcolor="#FFFFCC">
296 <td> -ofdirectory5<br>-ofdirectory_outseq</td>
297 <td>string</td>
298 <td>Output directory</td>
299 <td>Any string</td>
300 <td>&nbsp;</td>
301 </tr>
302
303 <tr bgcolor="#FFFFCC">
304 <th align="left" colspan=5>General qualifiers</th>
305 </tr>
306
307 <tr bgcolor="#FFFFCC">
308 <td> -auto</td>
309 <td>boolean</td>
310 <td>Turn off prompts</td>
311 <td>Boolean value Yes/No</td>
312 <td>N</td>
313 </tr>
314
315 <tr bgcolor="#FFFFCC">
316 <td> -stdout</td>
317 <td>boolean</td>
318 <td>Write first file to standard output</td>
319 <td>Boolean value Yes/No</td>
320 <td>N</td>
321 </tr>
322
323 <tr bgcolor="#FFFFCC">
324 <td> -filter</td>
325 <td>boolean</td>
326 <td>Read first file from standard input, write first file to standard output</td>
327 <td>Boolean value Yes/No</td>
328 <td>N</td>
329 </tr>
330
331 <tr bgcolor="#FFFFCC">
332 <td> -options</td>
333 <td>boolean</td>
334 <td>Prompt for standard and additional values</td>
335 <td>Boolean value Yes/No</td>
336 <td>N</td>
337 </tr>
338
339 <tr bgcolor="#FFFFCC">
340 <td> -debug</td>
341 <td>boolean</td>
342 <td>Write debug output to program.dbg</td>
343 <td>Boolean value Yes/No</td>
344 <td>N</td>
345 </tr>
346
347 <tr bgcolor="#FFFFCC">
348 <td> -verbose</td>
349 <td>boolean</td>
350 <td>Report some/full command line options</td>
351 <td>Boolean value Yes/No</td>
352 <td>Y</td>
353 </tr>
354
355 <tr bgcolor="#FFFFCC">
356 <td> -help</td>
357 <td>boolean</td>
358 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
359 <td>Boolean value Yes/No</td>
360 <td>N</td>
361 </tr>
362
363 <tr bgcolor="#FFFFCC">
364 <td> -warning</td>
365 <td>boolean</td>
366 <td>Report warnings</td>
367 <td>Boolean value Yes/No</td>
368 <td>Y</td>
369 </tr>
370
371 <tr bgcolor="#FFFFCC">
372 <td> -error</td>
373 <td>boolean</td>
374 <td>Report errors</td>
375 <td>Boolean value Yes/No</td>
376 <td>Y</td>
377 </tr>
378
379 <tr bgcolor="#FFFFCC">
380 <td> -fatal</td>
381 <td>boolean</td>
382 <td>Report fatal errors</td>
383 <td>Boolean value Yes/No</td>
384 <td>Y</td>
385 </tr>
386
387 <tr bgcolor="#FFFFCC">
388 <td> -die</td>
389 <td>boolean</td>
390 <td>Report dying program messages</td>
391 <td>Boolean value Yes/No</td>
392 <td>Y</td>
393 </tr>
394
395 <tr bgcolor="#FFFFCC">
396 <td> -version</td>
397 <td>boolean</td>
398 <td>Report version number and exit</td>
399 <td>Boolean value Yes/No</td>
400 <td>N</td>
401 </tr>
402
403 </table>
404
405
406 <H2>
407 Input file format
408 </H2>
409
410
411
412 <H2>
413 Output file format
414 </H2>
415
416
417 <b>newseq</b> writes a normal sequence file.
418
419 <p>
420
421
422 <a name="output.1"></a>
423 <h3>Output files for usage example </h3>
424 <p><h3>File: mycc.pep</h3>
425 <table width="90%"><tr><td bgcolor="#CCFFCC">
426 <pre>
427 ID cytoc Unreviewed; 12 AA.
428 DE fragment of cytochrome c
429 SQ SEQUENCE 12 AA; 1464 MW; 6F142FA88DADC40B CRC64;
430 KKKEERADLI AY
431 //
432 </pre>
433 </td></tr></table><p>
434
435 <H2>
436 Data files
437 </H2>
438
439
440 None.
441
442 <H2>
443 Notes
444 </H2>
445
446
447 The length of the sequence you can type in is restricted to a
448 fairly short length (typically less than 255 characters).
449 If your computer beeps at you, you will typically have to delete
450 the last character you typed and press the RETURN key.
451
452 <H2>
453 References
454 </H2>
455
456
457 None.
458
459 <H2>
460 Warnings
461 </H2>
462
463
464 <p>There will be a maximum permissible length (typically 255 characters) of the sequence that may be entered. This is not a property of the EMBOSS package but of the computer system you are using. Whenever you type something in at the command-line, the text is stored in a buffer before being passed to the program. There is often a limit of less than 255 characters on the size of the buffer and so also the size of the sequence you can specify to <b>newseq</b>. The computer will normally issue a beep when the end of buffer is reached, and allow no more character input. </p>
465
466 <H2>
467 Diagnostic Error Messages
468 </H2>
469
470
471 None.
472
473 <H2>
474 Exit status
475 </H2>
476
477
478 It always exits with status 0.
479
480 <H2>
481 Known bugs
482 </H2>
483
484
485 None.
486
487 <h2><a name="See also">See also</a></h2>
488 <table border cellpadding=4 bgcolor="#FFFFF0">
489 <tr><th>Program name</th>
490 <th>Description</th></tr>
491 <tr>
492 <td><a href="aligncopy.html">aligncopy</a></td>
493 <td>Read and write alignments</td>
494 </tr>
495
496 <tr>
497 <td><a href="aligncopypair.html">aligncopypair</a></td>
498 <td>Read and write pairs from alignments</td>
499 </tr>
500
501 <tr>
502 <td><a href="biosed.html">biosed</a></td>
503 <td>Replace or delete sequence sections</td>
504 </tr>
505
506 <tr>
507 <td><a href="codcopy.html">codcopy</a></td>
508 <td>Copy and reformat a codon usage table</td>
509 </tr>
510
511 <tr>
512 <td><a href="cutseq.html">cutseq</a></td>
513 <td>Remove a section from a sequence</td>
514 </tr>
515
516 <tr>
517 <td><a href="degapseq.html">degapseq</a></td>
518 <td>Remove non-alphabetic (e.g. gap) characters from sequences</td>
519 </tr>
520
521 <tr>
522 <td><a href="descseq.html">descseq</a></td>
523 <td>Alter the name or description of a sequence</td>
524 </tr>
525
526 <tr>
527 <td><a href="entret.html">entret</a></td>
528 <td>Retrieve sequence entries from flatfile databases and files</td>
529 </tr>
530
531 <tr>
532 <td><a href="extractalign.html">extractalign</a></td>
533 <td>Extract regions from a sequence alignment</td>
534 </tr>
535
536 <tr>
537 <td><a href="extractfeat.html">extractfeat</a></td>
538 <td>Extract features from sequence(s)</td>
539 </tr>
540
541 <tr>
542 <td><a href="extractseq.html">extractseq</a></td>
543 <td>Extract regions from a sequence</td>
544 </tr>
545
546 <tr>
547 <td><a href="featcopy.html">featcopy</a></td>
548 <td>Read and write a feature table</td>
549 </tr>
550
551 <tr>
552 <td><a href="featmerge.html">featmerge</a></td>
553 <td>Merge two overlapping feature tables</td>
554 </tr>
555
556 <tr>
557 <td><a href="featreport.html">featreport</a></td>
558 <td>Read and write a feature table</td>
559 </tr>
560
561 <tr>
562 <td><a href="feattext.html">feattext</a></td>
563 <td>Return a feature table original text</td>
564 </tr>
565
566 <tr>
567 <td><a href="listor.html">listor</a></td>
568 <td>Write a list file of the logical OR of two sets of sequences</td>
569 </tr>
570
571 <tr>
572 <td><a href="makenucseq.html">makenucseq</a></td>
573 <td>Create random nucleotide sequences</td>
574 </tr>
575
576 <tr>
577 <td><a href="makeprotseq.html">makeprotseq</a></td>
578 <td>Create random protein sequences</td>
579 </tr>
580
581 <tr>
582 <td><a href="maskambignuc.html">maskambignuc</a></td>
583 <td>Mask all ambiguity characters in nucleotide sequences with N</td>
584 </tr>
585
586 <tr>
587 <td><a href="maskambigprot.html">maskambigprot</a></td>
588 <td>Mask all ambiguity characters in protein sequences with X</td>
589 </tr>
590
591 <tr>
592 <td><a href="maskfeat.html">maskfeat</a></td>
593 <td>Write a sequence with masked features</td>
594 </tr>
595
596 <tr>
597 <td><a href="maskseq.html">maskseq</a></td>
598 <td>Write a sequence with masked regions</td>
599 </tr>
600
601 <tr>
602 <td><a href="nohtml.html">nohtml</a></td>
603 <td>Remove mark-up (e.g. HTML tags) from an ASCII text file</td>
604 </tr>
605
606 <tr>
607 <td><a href="noreturn.html">noreturn</a></td>
608 <td>Remove carriage return from ASCII files</td>
609 </tr>
610
611 <tr>
612 <td><a href="nospace.html">nospace</a></td>
613 <td>Remove whitespace from an ASCII text file</td>
614 </tr>
615
616 <tr>
617 <td><a href="notab.html">notab</a></td>
618 <td>Replace tabs with spaces in an ASCII text file</td>
619 </tr>
620
621 <tr>
622 <td><a href="notseq.html">notseq</a></td>
623 <td>Write to file a subset of an input stream of sequences</td>
624 </tr>
625
626 <tr>
627 <td><a href="nthseq.html">nthseq</a></td>
628 <td>Write to file a single sequence from an input stream of sequences</td>
629 </tr>
630
631 <tr>
632 <td><a href="nthseqset.html">nthseqset</a></td>
633 <td>Read and write (return) one set of sequences from many</td>
634 </tr>
635
636 <tr>
637 <td><a href="pasteseq.html">pasteseq</a></td>
638 <td>Insert one sequence into another</td>
639 </tr>
640
641 <tr>
642 <td><a href="revseq.html">revseq</a></td>
643 <td>Reverse and complement a nucleotide sequence</td>
644 </tr>
645
646 <tr>
647 <td><a href="seqcount.html">seqcount</a></td>
648 <td>Read and count sequences</td>
649 </tr>
650
651 <tr>
652 <td><a href="seqret.html">seqret</a></td>
653 <td>Read and write (return) sequences</td>
654 </tr>
655
656 <tr>
657 <td><a href="seqretsetall.html">seqretsetall</a></td>
658 <td>Read and write (return) many sets of sequences</td>
659 </tr>
660
661 <tr>
662 <td><a href="seqretsplit.html">seqretsplit</a></td>
663 <td>Read sequences and write them to individual files</td>
664 </tr>
665
666 <tr>
667 <td><a href="sizeseq.html">sizeseq</a></td>
668 <td>Sort sequences by size</td>
669 </tr>
670
671 <tr>
672 <td><a href="skipredundant.html">skipredundant</a></td>
673 <td>Remove redundant sequences from an input set</td>
674 </tr>
675
676 <tr>
677 <td><a href="skipseq.html">skipseq</a></td>
678 <td>Read and write (return) sequences, skipping first few</td>
679 </tr>
680
681 <tr>
682 <td><a href="splitsource.html">splitsource</a></td>
683 <td>Split sequence(s) into original source sequences</td>
684 </tr>
685
686 <tr>
687 <td><a href="splitter.html">splitter</a></td>
688 <td>Split sequence(s) into smaller sequences</td>
689 </tr>
690
691 <tr>
692 <td><a href="trimest.html">trimest</a></td>
693 <td>Remove poly-A tails from nucleotide sequences</td>
694 </tr>
695
696 <tr>
697 <td><a href="trimseq.html">trimseq</a></td>
698 <td>Remove unwanted characters from start and end of sequence(s)</td>
699 </tr>
700
701 <tr>
702 <td><a href="trimspace.html">trimspace</a></td>
703 <td>Remove extra whitespace from an ASCII text file</td>
704 </tr>
705
706 <tr>
707 <td><a href="union.html">union</a></td>
708 <td>Concatenate multiple sequences into a single sequence</td>
709 </tr>
710
711 <tr>
712 <td><a href="vectorstrip.html">vectorstrip</a></td>
713 <td>Remove vectors from the ends of nucleotide sequence(s)</td>
714 </tr>
715
716 <tr>
717 <td><a href="yank.html">yank</a></td>
718 <td>Add a sequence reference (a full USA) to a list file</td>
719 </tr>
720
721 </table>
722
723
724 <H2>
725 Author(s)
726 </H2>
727
728
729 Gary Williams formerly at:
730 <br>
731 MRC Rosalind Franklin Centre for Genomics Research
732 Wellcome Trust Genome Campus, Hinxton, Cambridge, CB10 1SB, UK
733
734 <p>
735 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
736
737
738 <H2>
739 History
740 </H2>
741
742 Written (1999) - Gary Williams
743
744 <H2>
745 Target users
746 </H2>
747 This program is intended to be used by everyone and everything, from naive users to embedded scripts.
748
749
750 <H2>
751 Comments
752 </H2>
753 None
754
755 </BODY>
756 </HTML>
757