From 81c1101010f39caf36f16e1d423b744f3b5184f2 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Mon, 30 Jun 2008 12:10:47 +0000 Subject: [PATCH] zzz git-svn-id: http://biopieces.googlecode.com/svn/trunk@78 74ccb610-7750-0410-82ae-013aeee3265d --- bp_usage/read_fasta.wiki | 2 +- bp_usage/write_fasta.wiki | 76 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 bp_usage/write_fasta.wiki diff --git a/bp_usage/read_fasta.wiki b/bp_usage/read_fasta.wiki index 45a065a..c76e810 100644 --- a/bp_usage/read_fasta.wiki +++ b/bp_usage/read_fasta.wiki @@ -35,7 +35,7 @@ read_fasta [options] -i [-O | --stream_out=] - Write output stream to file - Default=STDOUT }}} -==Examples= +==Examples== To read all FASTA entries from a file: diff --git a/bp_usage/write_fasta.wiki b/bp_usage/write_fasta.wiki new file mode 100644 index 0000000..11ec7c4 --- /dev/null +++ b/bp_usage/write_fasta.wiki @@ -0,0 +1,76 @@ +=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 | --data_out=] - Write result to file. +[-w | --wrap=] - Wrap sequences to a given width. +[-I | --stream_in=] - Read input from stream file - Default=STDIN +[-O | --stream_out=] - 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/ + -- 2.39.5