| Bioinformatics Toolbox™ | ![]() |
Data = blastread(BLASTReport)
| BLASTReport | NCBI BLAST-formatted report specified by any of the following:
If you specify only a file name, that file must be on the MATLAB search path or in the current directory. |
| Data | MATLAB structure or array of structures (if multiple query sequences) containing fields corresponding to BLAST keywords and data from an NCBI BLAST report. |
The Basic Local Alignment Search Tool (BLAST) offers a fast and powerful comparative analysis of protein and nucleotide sequences against known sequences in online databases. BLAST reports can be lengthy, and parsing the data from the various formats can be cumbersome.
Data = blastread(BLASTReport) reads a BLAST report from BLASTReport, an NCBI-formatted report, and returns Data, a MATLAB structure or array of structures (if multiple query sequences) containing fields corresponding to the BLAST keywords. blastread parses the basic BLAST reports BLASTN, BLASTP, BLASTX, TBLASTN, and TBLASTX.
Data contains the following fields.
| Field | Description |
|---|---|
| RID | Request ID for retrieving results for a specific NCBI BLAST search. |
| Algorithm | NCBI algorithm used to do a BLAST search. |
| Query | Identifier of the query sequence submitted to a BLAST search. |
| Database | All databases searched. |
| Hits.Name | Name of a database sequence (subject sequence) that matched the query sequence. |
| Hits.Length | Length of a subject sequence. |
| Hits.HSPs.Score | Pairwise alignment score for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.Expect | Expectation value for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.Identities | Identities (match, possible, and percent) for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.Positives | Identical or similar residues (match, possible, and percent) for a high-scoring sequence pair between the query sequence and a subject amino acid sequence. |
| Hits.HSPs.Gaps | Nonaligned residues (match, possible, and percent) for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.Frame | Reading frame of the translated nucleotide sequence for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.Strand | Sense (Plus = 5' to 3' and Minus = 3' to 5') of the DNA strands for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.Alignment | Three-row matrix showing the alignment for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.QueryIndices | Indices of the query sequence residue positions for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Hits.HSPs.SubjectIndices | Indices of the subject sequence residue positions for a high-scoring sequence pair between the query sequence and a subject sequence. |
| Statistics | Summary of statistical details about the performed search, such as lambda values, gap penalties, number of sequences searched, and number of hits. |
Create an NCBI BLAST report request using a GenPept accession number.
RID = blastncbi('AAA59174', 'blastp', 'expect', 1e-10)
RID =
'1175088155-31624-126008617054.BLASTQ3'Pass the Request ID for the report to the getblast function, and save the report data to a text file.
getblast(RID, 'ToFile' ,'AAA59174_BLAST.rpt');
Using the saved file, read the results into a MATLAB structure.
resultsStruct = blastread('AAA59174_BLAST.rpt')
resultsStruct =
RID: '1175093446-29831-201366571074.BLASTQ2'
Algorithm: 'BLASTP 2.2.16 [Mar-11-2007]'
Query: [1x63 char]
Database: [1x96 char]
Hits: [1x50 struct]
Statistics: [1x1034 char][1] Altschul, S.F., Gish, W., Miller, W., Myers, E.W. and Lipman, D.J. (1990). Basic local alignment search tool. J. Mol. Biol. 215, 403–410.
[2] Altschul, S.F., Madden, T.L., Schäffer, A.A., Zhang, J., Zhang, Z., Miller, W. and Lipman, D.J. (1997). Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. Nucleic Acids Res. 25, 3389–3402.
For more information about reading and interpreting NCBI BLAST reports, see:
http://www.ncbi.nlm.nih.gov/Education/BLASTinfo/Blast_output.html
Bioinformatics Toolbox™ functions: blastformat, blastlocal, blastncbi, blastreadlocal, getblast
![]() | blastncbi | blastreadlocal | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |