webread error 122 - after it has already worked
3 ビュー (過去 30 日間)
古いコメントを表示
here is the relevent part of my code:
for i= (1:length(ralstonia_uncharacterized_idx));
if matrix_ralstonia(i)==1;
formatspec = 'https://www.UniProtKB.org/uniprot/%s.xml';
A1 = raw_ralstonia.ID{i};
url= sprintf(formatspec, A1);
o = weboptions('CertificateFilename','');
xml = webread(url,o);
%finding the general vicinity of name
expression = '<fullName evidence.*</fullName>';
gene_name_raw = regexp(xml, expression, 'match');
% focusing on the name
focused = '>.*<';
gene_name = regexp(gene_name_raw, focused, 'match');
raw_ralstonia.gene{i} = char(string(gene_name));
end
end
it has worked for many times, and now after a week I attended some other things I tried this again and it gives me the error massage:
Error using webread (line 122)
Could not access server. https://www.UniProtKB.org/uniprot/A0A0J9DKQ4.xml.
I didn't change a thing, and worked through the same terminal. I tried in other url's in another site, and the same error massage prompts.
WTH?
thanks in advance...
0 件のコメント
回答 (1 件)
Rashed Mohammed
2020 年 11 月 3 日
Hi Chaim
It seems like the domain name in the URL is not in use any longer. You can change the URL to https://uniprot.org/uniprot/A0A0J9DKQ4.xml and use the webread function.
Hope this helps !
参考
カテゴリ
Help Center および File Exchange で JSON Format についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!