= Using net/ftp to download all Proteomes from the Ensembl Database =
+This, or something like it, can be used to download from Ensembl all "pep.all.fa.gz" files.
+
{{{
require 'net/ftp'
pepfiles = ftp.list()
pepfiles.each do | pepfile |
pepfile = pepfile.split().last
- if pepfile =~ /all.fa./
+ if pepfile =~ /all.fa.gz/ # Only want the "all.fa.gz" files (and not the
+ # "abinitio" files).
ftp.getbinaryfile(pepfile)
puts 'downloaded "' + pepfile + '"'
count += 1