full_lengther_next 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/download_fln_dbs.rb +7 -2
- data/lib/full_lengther_next/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6c6ce15a48dc8c8cc6e90b45e20bb1089e9da41
|
4
|
+
data.tar.gz: 89cb0aa3462686a99567e974b20ae9725bea5c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e70ec49d6f970affab8e61a1e7caede3b218ab0c88765f867c2ca400ae5df614ecee0910f7c0faa668369c7b685c5dc3fcf99aaa682c3ef65e8f014d94f6b42e
|
7
|
+
data.tar.gz: cd1a6bc5892128100d1e015b1e9d2e2ae48fa0f5c466782a33553bc35e36c2c3ca44b1eed60ce842c11f29501523944d83856bef5b2a5590150f1b1c732c2952
|
data/bin/download_fln_dbs.rb
CHANGED
@@ -79,12 +79,13 @@ def compare_list(string, list)
|
|
79
79
|
return res
|
80
80
|
end
|
81
81
|
|
82
|
-
def conecta_uniprot(my_array, formatted_db_path, no_trembl)
|
82
|
+
def conecta_uniprot(my_array, formatted_db_path, no_trembl, passive_ftp)
|
83
83
|
|
84
84
|
Dir.mkdir(formatted_db_path) if !File.exists?(formatted_db_path)
|
85
85
|
varsplic_out=File.join(formatted_db_path,'uniprot_sprot_varsplic.fasta.gz')
|
86
86
|
|
87
87
|
$ftp = Net::FTP.new()
|
88
|
+
$ftp.passive = true if passive_ftp
|
88
89
|
$ftp.connect('ftp.ebi.ac.uk')
|
89
90
|
$ftp.login
|
90
91
|
|
@@ -339,6 +340,10 @@ optparse = OptionParser.new do |opts|
|
|
339
340
|
options[:no_uniprot] = TRUE
|
340
341
|
end
|
341
342
|
|
343
|
+
options[:passive_ftp] = FALSE
|
344
|
+
opts.on( '-P', '--passive_ftp', 'Use pasive ftp') do
|
345
|
+
options[:passive_ftp] = TRUE
|
346
|
+
end
|
342
347
|
|
343
348
|
# Set a banner, displayed at the top of the help screen.
|
344
349
|
opts.banner = "Usage: #{File.basename(__FILE__)} [options] \n\n"
|
@@ -375,7 +380,7 @@ puts "\nTo set the path for storing databases, execute next line in your termina
|
|
375
380
|
download_ncrna(formatted_db_path, options[:no_download]) if !options[:no_ncrna]
|
376
381
|
|
377
382
|
if !options[:no_download]
|
378
|
-
conecta_uniprot(options[:uniprot_div], formatted_db_path, options[:no_trembl])
|
383
|
+
conecta_uniprot(options[:uniprot_div], formatted_db_path, options[:no_trembl], options[:passive_ftp])
|
379
384
|
end
|
380
385
|
|
381
386
|
if !options[:no_uniprot]
|