share/install/Organism/organism_helpers.rb in rbbt-sources-2.0.1 vs share/install/Organism/organism_helpers.rb in rbbt-sources-2.0.2
- old
+ new
@@ -446,9 +446,10 @@
archive = File.basename(FileUtils.pwd) =~ /^([a-z]{3}[0-9]{4})$/i ? $1 : nil
release = Ensembl.releases[archive]
ftp = Net::FTP.new("ftp.ensembl.org")
+ ftp.passive = true
ftp.login
ftp.chdir("pub/#{ release }/fasta/")
ftp.chdir($scientific_name.downcase.sub(" ",'_'))
ftp.chdir('dna')
file = ftp.nlst.select{|file| file =~ /chromosome\.#{ chr }\.fa/}.first