descseq

 

Function

Alter the name or description of a sequence

Description

Most sequence formats allow, at the very minimum, a name for the sequence and some comments to be stored in the sequence file.

Rather than using an editor to alter the name or the comments, descseq allows you to simply change them and write out a new file with the changes in and the sequence left unaltered.

The default action is to replace the existing name or description with your new one, but by using the qualifier '-append' what you enter is appended to the existing name or description.

Note that if you append to a description, no space is inserted by default bewteen the existing description and your appended text. You have to put in a space yourself if you require one.

Usage

Here is a sample session with descseq

Set the name of a sequence to "myclone23"


% descseq -seq ../../data/dna.text -out clone23.seq -name "myclone23" 
Alter the name or description of a sequence.

Go to the input files for this example
Go to the output files for this example

Example 2

Set the description of a sequence to "This is my clone number 244"


% descseq -seq ../../data/dna.text -out xy24.seq -desc "This is my clone number 244" 
Alter the name or description of a sequence.

Go to the output files for this example

Example 3

Append some text to the description of a sequence


% descseq -seq ../../data/dna.text -out est4.seq -desc " (submitted)" -append 
Alter the name or description of a sequence.

Go to the output files for this example

Command line arguments

   Mandatory qualifiers:
  [-sequence]          sequence   Sequence USA
  [-outseq]            seqout     Output sequence USA

   Optional qualifiers:
   -name               string     Name of the sequence
   -description        string     Description of the sequence

   Advanced qualifiers:
   -append             boolean    This allows you to append the name or
                                  description you have given on to the end of
                                  the existing name or description of the
                                  sequence.

   General qualifiers:
  -help                boolean    Report command line options. More
                                  information on associated and general
                                  qualifiers can be found with -help -verbose


Mandatory qualifiers Allowed values Default
[-sequence]
(Parameter 1)
Sequence USA Readable sequence Required
[-outseq]
(Parameter 2)
Output sequence USA Writeable sequence <sequence>.format
Optional qualifiers Allowed values Default
-name Name of the sequence Any string is accepted An empty string is accepted
-description Description of the sequence Any string is accepted An empty string is accepted
Advanced qualifiers Allowed values Default
-append This allows you to append the name or description you have given on to the end of the existing name or description of the sequence. Boolean value Yes/No No

Input file format

descseq reads a normal sequence USA.

Input files for usage example

File: ../../data/dna.text

ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTAC
GTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT

Output file format

descseq writes the sequence file with a changed name or description.

Output files for usage example

File: clone23.seq

>myclone23
ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT
ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT

Output files for usage example 2

File: xy24.seq

>EMBOSS_001 This is my clone number 244
ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT
ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT

Output files for usage example 3

File: est4.seq

>EMBOSS_001  (submitted)
ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT
ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT

Data files

None.

Notes

None.

References

None.

Warnings

None.

Diagnostic Error Messages

None.

Exit status

It always exits with status 0.

Known bugs

None noted.

See also

Program nameDescription
biosedReplace or delete sequence sections
cutseqRemoves a specified section from a sequence
degapseqRemoves gap characters from sequences
entretReads and writes (returns) flatfile entries
extractfeatExtract features from a sequence
extractseqExtract regions from a sequence
listorWrites a list file of the logical OR of two sets of sequences
maskfeatMask off features of a sequence
maskseqMask off regions of a sequence
newseqType in a short new sequence
noreturnRemoves carriage return from ASCII files
notseqExcludes a set of sequences and writes out the remaining ones
nthseqWrites one sequence from a multiple set of sequences
pasteseqInsert one sequence into another
revseqReverse and complement a sequence
seqretReads and writes (returns) sequences
seqretsplitReads and writes (returns) sequences in individual files
skipseqReads and writes (returns) sequences, skipping the first few
splitterSplit a sequence into (overlapping) smaller sequences
trimestTrim poly-A tails off EST sequences
trimseqTrim ambiguous bits off the ends of sequences
unionReads sequence fragments and builds one sequence
vectorstripStrips out DNA between a pair of vector sequences
yankReads a sequence range, appends the full USA to a list file

Author(s)

This application was written by Gary Williams (gwilliam@hgmp.mrc.ac.uk)

History

Finished.

Target users

This program is intended to be used by everyone and everything, from naive users to embedded scripts.

Comments