[R] how to download pdb structure files?

Ben Bolker bolker at ufl.edu
Sun Oct 28 20:34:12 CET 2007




Gabor Csardi wrote:
> 
> On Sun, Oct 28, 2007 at 11:25:06AM -0700, Ben Bolker wrote:
>> 
>> 
> If you don't know then you might try to read the documentation. Then it
> takes
> about five seconds to get the right syntax:
> 
> download.file("ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb/pdb100d.ent.gz",
> destfile="pdb100d.ent.gz")
> 
> Hint: you can use gzfile to decompress the file on th fly, while reading 
> it into R.
> 
> Gabor
> 
> 

  Oops, I wasn't reading the question carefully enough.  I was assuming that
the questioner wanted to download all of the files from that ftp directory
...

  cheers
    Ben Bolker
-- 
View this message in context: http://www.nabble.com/how-to-download-pdb-structure-files--tf4707557.html#a13456897
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list