full_lengther_next 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7800e4b0a50889d7b627ea4a01dc87629e30338e
4
- data.tar.gz: 1dc9f576f8ebbc28e0e53ed822183ca40db94b6a
3
+ metadata.gz: b6c6ce15a48dc8c8cc6e90b45e20bb1089e9da41
4
+ data.tar.gz: 89cb0aa3462686a99567e974b20ae9725bea5c81
5
5
  SHA512:
6
- metadata.gz: c0898c6a4e46d5ac7d35baf1484e6aa45420f5b77412b3070a46fceded8803a49fc39b92a2dec94135a0dfa7d2060d34b3ea44da768a41849c9bd8734b3f3f1a
7
- data.tar.gz: 0b11a85a7e6fb17647cffadbfbc0b6e8d9ba4105adb4edb624663dda47a13d983efa2932aa73abc08e024511b643d44b1e7bf38913cedca2778825f76e69ae84
6
+ metadata.gz: e70ec49d6f970affab8e61a1e7caede3b218ab0c88765f867c2ca400ae5df614ecee0910f7c0faa668369c7b685c5dc3fcf99aaa682c3ef65e8f014d94f6b42e
7
+ data.tar.gz: cd1a6bc5892128100d1e015b1e9d2e2ae48fa0f5c466782a33553bc35e36c2c3ca44b1eed60ce842c11f29501523944d83856bef5b2a5590150f1b1c732c2952
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module FullLengtherNext
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: full_lengther_next
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Seoane