Skip to Main Content Skip to Search
Product Documentation

genpeptread - Read data from GenPept file

Syntax

GenPeptData = genpeptread(File)

Arguments

File

Either of the following:

  • String specifying a file name, a path and file name, or a URL pointing to a file. The referenced file is a GenPept-formatted file. If you specify only a file name, that file must be on the MATLAB search path or in the MATLAB Current Folder.

  • MATLAB character array that contains the text of a GenPept-formatted file.

    Tip   You can use the getgenpept function with the 'ToFile' property to retrieve sequence information from the GenPept database and create an GenPept-formatted file.

GenPeptDataMATLAB structure or array of structures containing fields corresponding to GenPept keywords.

Description

GenPeptData = genpeptread(File) reads a GenPept-formatted file, File, and creates GenPeptData, a structure or array of structures, containing fields corresponding to the GenPept keywords. When File contains multiple entries, each entry is stored as a separate element in GenPeptData. For a list of the GenPept keywords, see http://www.ncbi.nlm.nih.gov/Sitemap/samplerecord.html.

Examples

Retrieve sequence information for the protein coded by the HEXA gene, store the data in a file, and then read into the MATLAB software.

getgenpept('p06865', 'ToFile', 'TaySachs_Protein.txt')
genpeptread('TaySachs_Protein.txt')

See Also

fastaread | genbankread | getgenpept | pdbread | seqtool

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS