getgenpept - Retrieve sequence information from GenPept database

Syntax

Data = getgenpept(AccessionNumber)
getgenpept(AccessionNumber)

getgenpept(..., 'PartialSeq', PartialSeqValue, ...)
getgenpept(..., 'ToFile', ToFileValue, ...)
getgenpept(..., 'FileFormat', FileFormatValue, ...)
getgenpept(..., 'SequenceOnly', SequenceOnlyValue, ...)

Arguments

AccessionNumberString specifying a unique alphanumeric identifier for a sequence record.
PartialSeqValueTwo-element array of integers containing the start and end positions of the subsequence [StartAA, EndAA] that specifies a subsequence to retrieve. StartAA is an integer between 1 and EndAA; EndAA is an integer between StartAA and the length of the sequence.
ToFileValueString specifying either a file name or a path and file name for saving the GenPept data. If you specify only a file name, the file is saved to the MATLAB® Current Directory.
FileFormatValueString specifying the format for the file specified with the 'ToFile' property. Choices are 'Genpept' (default) or 'FASTA'.
SequenceOnlyValue

Controls the return of only the sequence as a character array. Choices are true or false (default).

Description

getgenpept retrieves a protein (amino acid) sequence information from the GenPept database, which is a translation of the nucleotide sequences in the GenBank® database and is maintained by the National Center for Biotechnology Information (NCBI).

Data = getgenpept(AccessionNumber) searches for the accession number in the GenPept database and returns a MATLAB structure containing information for the sequence.

getgenpept(AccessionNumber) displays the information in the MATLAB Command Window without returning data to a variable. The displayed information includes hyperlinks to the URLs used to search for and retrieve the data.

getgenpept(..., 'PropertyName', PropertyValue, ...) calls getgenpept with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Each PropertyName must be enclosed in single quotation marks and is case insensitive. These property name/property value pairs are as follows:


getgenpept(..., 'PartialSeq', PartialSeqValue, ...)
returns the specified subsequence in the Sequence field of the MATLAB structure. PartialSeqValue is a two-element array of integers containing the start and end positions of the subsequence [StartAA, EndAA]. StartAA is an integer between 1 and EndAA; EndAA is an integer between StartAA and the length of the sequence.

getgenpept(..., 'ToFile', ToFileValue, ...) saves the data returned from the GenPept database to a file. ToFileValue is a string specifying either a file name or a path and file name for saving the GenPept data. If you specify only a file name, the file is saved to the MATLAB Current Directory.

getgenpept(..., 'FileFormat', FileFormatValue, ...) returns the sequence in the specified format. Choices are 'GenPept' (default) or 'FASTA'.

getgenpept(..., 'SequenceOnly', SequenceOnlyValue, ...) controls the return of only the sequence as a character array. Choices are true or false (default).

Examples

Retrieving a Peptide Sequence

To retrieve the sequence for the human insulin receptor and store it in a structure, Seq, in the MATLAB Command Window, type:

Seq = getgenpept('AAA59174')

Seq = 

                LocusName: 'AAA59174'
      LocusSequenceLength: '1382'
     LocusNumberofStrands: ''
            LocusTopology: 'linear'
        LocusMoleculeType: ''
     LocusGenBankDivision: 'PRI'
    LocusModificationDate: '06-JAN-1995'
               Definition: 'insulin receptor precursor.'
                Accession: 'AAA59174'
                  Version: 'AAA59174.1'
                       GI: '307070'
                  Project: []
                 DBSource: 'locus HUMINSR accession M10051.1'
                 Keywords: ''
                   Source: 'Homo sapiens (human)'
           SourceOrganism: [4x65 char]
                Reference: {[1x1 struct]}
                  Comment: [14x67 char]
                 Features: [40x64 char]
                 Sequence: [1x1382 char]
                SearchURL: [1x104 char]
              RetrieveURL: [1x92 char]

Retrieving a Partial Peptide Sequence

By looking at the Features field of the structure returned in Retrieving a Peptide Sequence, you can determine that the furin-like repeats domain is positions 234 through 281. To retrieve only the furin-like repeats domain from the sequence for the human insulin receptor and store it in a structure, Fur, in the MATLAB Command Window, type:

Fur = getgenpept('AAA59174','PARTIALSEQ',[234,281]);

See Also

Bioinformatics Toolbox functions: genpeptread, getembl, getgenbank, getpdb

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS