This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Return information about FASTQ file


InfoStruct = fastqinfo(File)


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

Input Arguments


Character vector 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


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

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.


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

Introduced in R2009b

Was this topic helpful?