| Bioinformatics Toolbox™ | ![]() |
Data = getgenpept(AccessionNumber)
getgenpept(AccessionNumber)
getgenpept(..., 'PartialSeq', PartialSeqValue,
...)
getgenpept(..., 'ToFile', ToFileValue,
...)
getgenpept(..., 'FileFormat', FileFormatValue,
...)
getgenpept(..., 'SequenceOnly', SequenceOnlyValue,
...)
| AccessionNumber | String specifying a unique alphanumeric identifier for a sequence record. |
| PartialSeqValue | Two-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. |
| ToFileValue | 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. |
| FileFormatValue | String 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). |
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).
Note NCBI has changed the name of their protein search engine from GenPept to Entrez Protein. However, the function names in the Bioinformatics Toolbox™ software (getgenpept and genpeptread) are unchanged representing the still-used GenPept report format. |
Data = getgenpept(AccessionNumber) searches for the accession number in the GenPept database and returns a MATLAB structure containing information for the sequence.
Tip If an error occurs while retrieving the GenPept-formatted information, try rerunning the query. Errors can occur due to Internet connectivity issues that are unrelated to the GenPept record. |
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.
Tip You can read a GenPept-formatted file back into MATLAB using the genpeptread function. |
Tip To append GenPept data to an existing file, specify that file name, and the data will be added to the end of the file. If you are using getgenpept in a script, you can disable the append warning message by entering the following command lines before the getgenpept command: warnState = warning %Save the current warning state
warning('off','Bioinfo:getncbidata:AppendToFile'); Then enter the following command line after the getgenpept command: warning(warnState) %Reset warning state to previous settings |
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).
Note When the 'SequenceOnly' and 'ToFile' properties are used together, the output is a FASTA-formatted file. |
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]);Bioinformatics Toolbox functions: genpeptread, getembl, getgenbank, getpdb
![]() | getgenbank | getgeodata | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |