Skip to content
Prev 14100 / 21318 Next

[Bioc-devel] GenomeInfoDB SeqInfo function error

Hi Dario,
On 09/13/2018 09:18 AM, Dario Righelli wrote:
I cannot reproduce this, not too surprisingly...

This kind of intermittent internet access problem is not uncommon
and typically hard to reproduce. GenomeInfoDb::Seqinfo() was trying
to download a file from ftp.ncbi.nlm.nih.gov and failed for some
reason. It could be because NCBI's FTP site was temporarily unavailable
or because of any other network problem between NCBI and the machine
where GenomeInfoDb::Seqinfo() was called. Unfortunately there is not
much we can do about these transient connectivity issues in general.

However we can mitigate them:

- One way to mitigate them though would be to use a caching mechanism
   e.g. to use BiocFileCache to store the data downloaded by
   GenomeInfoDb::Seqinfo(genoe="some_genome") locally the 1st time
   it's downloaded for a particular genome.

- Another way would be to have this data already included in
   GenomeInfoDb (or GenomeInfoDbData) for the most frequently used
   genomes. In addition, the caching mechanism could still be used
   for the other genomes.

- Another way to mitigate this maybe would be to have
   GenomeInfoDb::Seqinfo(genoe="some_genome") re-try the download
   a couple of times (after waiting 1 or 2 sec before re-trying)
   before giving up. This could be done in combination with the
   above features. The re-try feature could even be integrated to
   BiocFileCache.

Although for now my feeling is that this issue is maybe not so much
of an annoyance to justify putting these new developments high on
the TODO list.

Just throwing some random thoughts here. Don't know what others
think about this.
Would you mind sharing a link to this information? Thanks!

Cheers,
H.