webread error 122 - after it has already worked
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Rashed Mohammed
on 3 Nov 2020
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 !
2 Comments
See Also
Categories
Find more on JSON Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!