--- /dev/null
+=Biopiece: write_fasta=
+
+==Synopsis==
+
+Write sequences from stream in FASTA format.
+
+==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==
+
+{{{
+[-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 | --compress] - Compress output using gzip.
+}}}
+
+==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 -o test.fna.gz
+}}}
+
+==See also==
+
+[read_fasta]
+[read_align]
+
+==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://code.google.com/p/biopieces/
+