read.pdb download

Issue #22 resolved
Lars Skjærven created an issue

Fetching a pdb structure file with function 'read.pdb': should we add functionality to store the downloaded file in the current directory? (similar to what pymol does). And next time, it will simply fetch the stored file instead of downloading.

Comments (3)

  1. Barry Grant

    Never thought of this because the get.pdb() function, that does the fetching from within read.pdb(), can do this already. Obviously at the moment a user would need to call get.pdb() before read.pdb() and use "URLonly=FALSE" argument setting to the former. We could add a "..." option to read.pdb and pass the "..." to get.pdb(). This would allow you to set the "path", "URLonly" and "overwrite" options to get.pdb() from read.pdb().

    One downside is it would always save the file as the default option for get.pdb() is URLonly=FALSE. Another is that read.pdb is already quite bloated for input arguments and thus the potential for confusion.

  2. Lars Skjærven reporter

    Ok. See your point. using get.pdb() prior to read.pdb is easy enough as you say. just pure lazyness from my side.. Skipping this suggestion !

  3. Log in to comment