webread error 122 - after it has already worked
2 次查看(过去 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!