home | help
bl_fasta_write(3)	    Library Functions Manual	       bl_fasta_write(3)

NAME
     bl_fasta_write() - Write a FASTA object

LIBRARY
     #include <biolibc/fasta.h>
     -lbiolibc -lxtend

SYNOPSIS
     int     bl_fasta_write(bl_fasta_t *record, FILE *fasta_stream,
     size_t max_line_len)

ARGUMENTS
     fasta_stream    FILE stream to which data are written
     record	     Pointer to a bl_fasta_t structure to be written
     max_line_len    Maximum length of a sequence line in output

DESCRIPTION
     Write  a  FASTA  record  to  the  specified  FILE	stream,  writing at most
     max_line_len   sequence   characters   per   line.    The	 special   value
     BL_FASTA_LINE_UNLIMITED indicates no line length limit.

RETURN VALUES
     BL_WRITE_OK upon success, BL_WRITE_FAILURE if a write error occurs.

EXAMPLES
     bl_fasta_t  rec = BL_FASTA_INIT;

     while ( bl_fasta_read(stdin, &rec) != BL_READ_EOF )
	 bl_fasta_write(stdout, &rec, BL_FASTA_LINE_UNLIMITED);
     bl_fasta_free(&rec);

SEE ALSO
     bl_fasta_read(3), bl_fastq_read(3), bl_fastq_write(3),

							       bl_fasta_write(3)

home | help