Made getters and setters for found nodes public (needed for Jalview)
[jalview.git] / wiki / RubyExamples.wiki
index 85d1c69..3d50199 100644 (file)
@@ -4,7 +4,7 @@
 
 Various simple Ruby examples.
 
-Author: [http://www.cmzmasek.net/ Christian M Zmasek], Sanford-Burnham Medical Research Institute
+Author: [https://sites.google.com/site/cmzmasek/ Christian Zmasek], Sanford-Burnham Medical Research Institute
 
  
 Copyright (C) 2011 Christian M Zmasek. All rights reserved.
@@ -12,6 +12,8 @@ Copyright (C) 2011 Christian M Zmasek. All rights reserved.
 
 = 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'
 
@@ -31,7 +33,8 @@ files.each do | file |
     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