[R] how to download pdb structure files?
Ben Bolker
bolker at ufl.edu
Sun Oct 28 19:25:06 CET 2007
Baoqiang Cao-2 wrote:
>
> Dear All,
>
> I'd like to know if there is anyway to download a certain structure file
> from http://www.pdb.org/. I tried the following but failed:
>
> tmp <-
> download.file(url="ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb",
> destfile="pdb100d.ent.gz")
>
> trying URL 'ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb'
> Error in download.file(url =
> "ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb", :
> cannot open URL
> 'ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb'
>
> Any tips to fix it please? Thanks in advance.
>
> Best,
> Baoqiang
>
I don't know that this is possible within R. I would try obtaining wget
and using
wget -r to fetch the files ...
--
View this message in context: http://www.nabble.com/how-to-download-pdb-structure-files--tf4707557.html#a13456168
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list