I understand that you face the mentioned error of 'webread' while trying to obtain the data using 'getgenbank'. You can consider the following options to read the data correctlty:
- Set a higher timout using the 'weboptions' function.
- Obtain the data in a txt file using the 'websave' function with the weboptions defined.
- Now read the data from the txt file using 'getbankread' function.
Here is an example:
wo = weboptions("Timeout", 10);
websave("output.txt", "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=950361812&rettype=gb&retmode=text&seq_start=6022&seq_stop=17213", wo);
data = genbankread("output.txt");
In recent MATLAB versions this issue has been resolved and just accessing data using 'getgenbank('NC_004102')' does not give the error.
The following MathWorks documentations can be referred:
Thanks.
