matlab调取ncbi数据,Read data from NCBI BLAST report file

Get a sequence from the Protein Data Bank and create a MATLAB structure.

S = getpdb('1CIV');

Use the structure as input for the BLAST search with a significance threshold of 1e-10. The first output is the request ID, and the second output is the estimated time (in minutes) until the search is completed.

[RID1,ROTE] = blastncbi(S,'blastp','expect',1e-10);

Get the search results from the report. You can save the XML-formatted report to a file for an offline access. Use ROTE as the wait time to retrieve the results.

report1 = getblast(RID1,'WaitTime',ROTE,'ToFile','1CIV_report.xml')

Blast results are not available yet. Please wait ...

report1 =

struct with fields:

RID: 'R49TJMCF014'

Algorithm: 'BLASTP 2.6.1+'

Database: 'nr'

QueryID: 'Query_224139'

QueryDefinition: 'unnamed protein product'

Hits: [1×100 struct]

Parameters: [1×1 struct]

Statistics: [1×1 struct]

Use blastread to read BLAST data from the XML-formatted BLAST report file.

blastdata = blastread('1CIV_report.xml')

blastdata =

struct with fields:

RID: ''

Algorithm: 'BLASTP 2.6.1+'

Database: 'nr'

QueryID: 'Query_224139'

QueryDefinition: 'unnamed protein product'

Hits: [1×100 struct]

Parameters: [1×1 struct]

Statistics: [1×1 struct]

Alternatively, run the BLAST search with an NCBI accession number.

RID2 = blastncbi('AAA59174','blastp','expect',1e-10)

RID2 =

'R49WAPMH014'

Get the search results from the report.

report2 = getblast(RID2)

Blast results are not available yet. Please wait ...

report2 =

struct with fields:

RID: 'R49WAPMH014'

Algorithm: 'BLASTP 2.6.1+'

Database: 'nr'

QueryID: 'AAA59174.1'

QueryDefinition: 'insulin receptor precursor [Homo sapiens]'

Hits: [1×100 struct]

Parameters: [1×1 struct]

Statistics: [1×1 struct]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值