genpeptread

Read data from a GenPept file

Syntax

GenPeptData = genpeptread('File')

Arguments

File

GenPept formatted file (ASCII text file). Enter a filename, a path and filename, or a URL pointing to a file. File can also be a MATLAB character array that contains the text of a GenPept file.

Description

genpeptread reads data from a GenPept formatted file into a MATLAB structure.

GenPeptData = genpeptread('File') reads in the GenPept formatted sequence from File and creates a structure GenPeptData, containing fields corresponding to the GenPept keywords. Each separate sequence listed in File is stored as a separate element of the structure. GenPeptDATA contains these fields:

LocusName
LocusSequenceLength
LocusMoleculeType
LocusGenBankDivision
LocusModificationDate
Definition
Accession
PID
Version
GI
DBSource
Keywords
Source
SourceDatabase
SourceOrganism
Reference.Number
Reference.Authors
Reference.Title
Reference.Journal
Reference.MedLine
Reference.PubMed
Reference.Remark
Comment
Features
Weight
Length
Sequence

Examples

Get sequence information for the protein coded by the gene HEXA, save to a file, and then read back into MATLAB.

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

See Also

Bioinformatics Toolbox functions fastaread, genbankread, getgenpept, pdbread, pirread


© 1994-2005 The MathWorks, Inc.