genbankread

Read data from a GenBank file

Syntax

GenBankData = genbankread('File')

Arguments

File

GenBank 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 GenBank formatted file.

GenBankData

MATLAB structure with fields corresponding to GenBank data.

Discussion

genbankread reads data from a GenBank formatted file into a MATLAB structure.

GenBankData = genbankread('File') reads in a GenBank formatted file (File) and creates a structure (Data) containing fields corresponding to the GenBank keywords. Each separate sequence listed in the output structure (GenBankData) is stored as a separate element of the structure.

GenBankData contains the following fields:

LocusName
LocusSequenceLength
LocusMoleculeType
LocusGenBankDivision
LocusModificationDate
Definition
Accession
Version
GI
Keywords
Segment
Source
SourceOrganism
Reference.Number
Reference.Authors
Reference.Title
Reference.Journal
Reference.MedLine
Reference.PubMed
Reference.Remark
Comment
Features
BaseCount
Sequence

Examples

Get sequence information for the gene HEXA, store in a file, and then read back into MATLAB.

getgenbank('nm_000520', 'ToFile', 'TaySachs_Gene.txt')
s = genbankread('TaySachs_Gene.txt')

See Also

Bioinformatics Toolbox functions emblread, getgenbank, fastaread, genpeptread, getgenbank, scfread


© 1994-2005 The MathWorks, Inc.