Skip to content
Martin Asser Hansen edited this page Oct 2, 2015 · 6 revisions

Biopiece: write_fasta

Description

write_fasta writes sequence from the data stream in FASTA format. However, a FASTA entry will only be written if a SEQ key and a SEQ_NAME key is present. If a SEQ key is present and not SEQ_NAME, then the Q_ID key will be used as SEQ_NAME - if such a key is found.

For more about the FASTA format:

http://en.wikipedia.org/wiki/Fasta_format

Usage

... | write_fasta [options]

Options

[-?          | --help]               #  Print full usage description.
[-x          | --no_stream]          #  Do not emit records.
[-o <file>   | --data_out=<file>]    #  Write result to file.
[-w <int>    | --wrap=<int>]         #  Wrap sequences to a given width.
[-I <file!>  | --stream_in=<file!>]  #  Read input from stream file  -  Default=STDIN
[-O <file>   | --stream_out=<file>]  #  Write output to stream file  -  Default=STDOUT
[-Z <string> | --compress=<string>]  #  Compress output using <gzip|bzip2>.
[-v          | --verbose]            #  Verbose output.

Examples

Writing entries wrapped to blocks of 80 to STDOUT.

... | write_fasta -x -w 80

Writing entries to file 'test.fna'.

... | write_fasta -x -o test.fna

Write zipped entries to file 'test.fna.gz'.

... | write_fasta -x -Z gzip -o test.fna.gz

See also

read_fasta

Author

Martin Asser Hansen - Copyright (C) - All rights reserved.

mail@maasha.dk

August 2007

License

GNU General Public License version 2

http://www.gnu.org/copyleft/gpl.html

Help

write_fasta is part of the Biopieces framework.

http://www.biopieces.org

Clone this wiki locally