Documentation

FastqWriter implements FastqWriterInterface

One record is four lines - "@identifier", the sequence, a bare "+", the quality - the sequence and the quality on a single line each : the wrapped layout some old tools wrote is ambiguous (a quality line may start with "@" or "+") and no current tool expects it. The "+" line does not repeat the identifier, which the format allows and nobody needs. The quality is Phred+33, as FastqRecord holds it. FastqReader reads back what this writes.

Class FastqWriter

Tags
author

Amélie DUVERNET aka Amelaye amelieonline@gmail.com

Table of Contents

Interfaces

FastqWriterInterface
Interface FastqWriterInterface - the counterpart of FastqReaderInterface : writes FastqRecord instances as FASTQ text.

Methods

writeMany()  : string
writeOne()  : string

Methods

writeOne()

public writeOne(FastqRecord $oRecord) : string
Parameters
$oRecord : FastqRecord
Tags
throws
InvalidArgumentException

When the identifier holds a newline, which would cut the header in two

Return values
string
On this page

Search results