Main Content

fastqinfo

Return information about FASTQ file

Syntax

InfoStruct = fastqinfo(File)

Description

InfoStruct = fastqinfo(File) returns a MATLAB® structure containing summary information about a FASTQ-formatted file.

Input Arguments

File

Character vector or string specifying a file name or path and file name of a FASTQ-formatted file. If you specify only a file name, that file must be on the MATLAB search path or in the current folder.

Output Arguments

InfoStruct

MATLAB structure containing summary information about a FASTQ-formatted file. The structure contains the following fields.

FieldDescription
FilenameName of the file.
FilePathPath to the file
FileModDateModification date of the file.
FileSizeSize of the file in bytes.
NumberOfEntries Number of sequence reads in the file.

Examples

Return a summary of the contents of a FASTQ file:

info = fastqinfo('SRR005164_1_50.fastq')

info = 

           Filename: 'SRR005164_1_50.fastq'
           FilePath: 'D:\2010_08_24_h11m43s32_job6027_pass\matlab\toolbox\bioinfo\biodemos'
        FileModDate: '03-Mar-2009 14:21:51'
           FileSize: 16702
    NumberOfEntries: 50

Version History

Introduced in R2009b