| Contents | Index |
FASTQStruct = fastqread(File)
[Header, Sequence]
= fastqread(File)
[Header, Sequence, Qual]
= fastqread(File)
fastqread(..., 'Blockread', BlockreadValue,
...)
fastqread(..., 'HeaderOnly', HeaderOnlyValue,
...)
fastqread(..., 'TrimHeaders', TrimHeadersValue,
...)
FASTQStruct = fastqread(File) reads a FASTQ-formatted file and returns the data in a MATLAB array of structures.
[Header, Sequence] = fastqread(File) returns only the header and sequence data in two separate variables.
[Header, Sequence, Qual] = fastqread(File) returns the data in three separate variables.
fastqread(..., 'PropertyName', PropertyValue, ...) calls fastqread with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Enclose each PropertyName in single quotation marks. Each PropertyName is case insensitive. These property name/property value pairs are as follows:
fastqread(..., 'Blockread', BlockreadValue,
...) reads a single sequence entry or block of sequence
entries from a FASTQ-formatted file containing multiple sequences.
fastqread(..., 'HeaderOnly', HeaderOnlyValue, ...) specifies whether to return only the header information.
fastqread(..., 'TrimHeaders', TrimHeadersValue, ...) specifies whether to trim the header to the first white space.
A FASTQ-formatted file contains nucleotide sequence and quality information on four lines:
Line 1 — Header information prefixed with an @ symbol
Line 2 — Nucleotide sequence
Line 3 — Header information prefixed with a + symbol
Line 4 — ASCII representation of per-base quality scores for the nucleotide sequence using Phred or Solexa encoding
Read a FASTQ file into an array of structures:
% Read the contents of a FASTQ-formatted file into
% an array of structures
reads = fastqread('SRR005164_1_50.fastq')
reads =
1x50 struct array with fields:
Header
Sequence
QualityRead a FASTQ file into three separate variables:
% Read the contents of a FASTQ-formatted file into
% three separate variables
[headers,seqs,quals] = fastqread('SRR005164_1_50.fastq');Read a block of entries from a FASTQ file:
% Read the contents of reads 5 through 10 into
% an array of structures
reads_5_10 = fastqread('SRR005164_1_50.fastq', 'blockread', [5 10])
1x6 struct array with fields:
Header
Sequence
Quality
bamindexread | baminfo | bamread | BioIndexedFile | BioRead | bowtieread | fastainfo | fastaread | fastawrite | fastqinfo | fastqwrite | saminfo | samread | sffinfo | sffread | soapread

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |