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

Biopiece: write_fastq

Description

write_fastq writes sequence from the data stream in FASTQ format if a Biopiece record contains a SEQ, SEQ_NAME, and SCORES keys.

It is possible to specify the quality score encoding base using the -e switch.

For more about the FASTQ format:

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2847217/

Usage

... | write_fastq [options]

Options

[-?          | --help]               #  Print full usage description.
[-x          | --no_stream]          #  Do not emit records.
[-o <file>   | --data_out=<file>]    #  Write result to file.
[-e <string> | --encoding=<string>   #  Encoding <base_33|base_64>   -  Default=base_33
[-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 to file 'test.fq'.

... | write_fastq -o test.fq -x

Writing entries using a specifed encoding with the -e switch:

... | write_fastq -e base_64 -o test.fq -x

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

... | write_fastq -Z gzip -o test.fq.gz -x

See also

read_fastq

Author

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

mail@maasha.dk

July 2009

License

GNU General Public License version 2

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

Help

write_fastq is part of the Biopieces framework.

http://www.biopieces.org

Clone this wiki locally