full_lengther_next 0.9.9 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a6a23e7a0bc8c6ba6ad5e3f1579accb80a16bf1
4
- data.tar.gz: 3980b046483ecbfe54147cffb20cf8f6a61bea69
3
+ metadata.gz: 7800e4b0a50889d7b627ea4a01dc87629e30338e
4
+ data.tar.gz: 1dc9f576f8ebbc28e0e53ed822183ca40db94b6a
5
5
  SHA512:
6
- metadata.gz: c5ecb5ebcf8077a0000a5ce404dcc6a1468654fdeac3f2a48aa3dd8f2ef3eed6db51f6123abf3452ddc33ef56c3b896ad15125fc76621105d1db6e5a486954c6
7
- data.tar.gz: 795f3cea0505142218ad29411e1fdbc8e0ce2b4e72c42a18b54763f77f9e0d4c7e711836fe1f0561557224cb089bd511078e7a6a81fe87fb4e5d68fce3864910
6
+ metadata.gz: c0898c6a4e46d5ac7d35baf1484e6aa45420f5b77412b3070a46fceded8803a49fc39b92a2dec94135a0dfa7d2060d34b3ea44da768a41849c9bd8734b3f3f1a
7
+ data.tar.gz: 0b11a85a7e6fb17647cffadbfbc0b6e8d9ba4105adb4edb624663dda47a13d983efa2932aa73abc08e024511b643d44b1e7bf38913cedca2778825f76e69ae84
@@ -79,7 +79,7 @@ def compare_list(string, list)
79
79
  return res
80
80
  end
81
81
 
82
- def conecta_uniprot(my_array, formatted_db_path)
82
+ def conecta_uniprot(my_array, formatted_db_path, no_trembl)
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')
@@ -91,7 +91,7 @@ def conecta_uniprot(my_array, formatted_db_path)
91
91
  puts "connected to UniProt"
92
92
  my_array.each do |db_group|
93
93
  puts "Downloading #{db_group}"
94
- download_uniprot(db_group, formatted_db_path)
94
+ download_uniprot(db_group, formatted_db_path, no_trembl)
95
95
  end
96
96
 
97
97
  #archivo de variantes de splicing. POR QUE?
@@ -102,13 +102,13 @@ def conecta_uniprot(my_array, formatted_db_path)
102
102
  puts "isoform files downloaded"
103
103
  end
104
104
 
105
- def download_uniprot(uniprot_group, formatted_db_path)
105
+ def download_uniprot(uniprot_group, formatted_db_path, no_trembl)
106
106
 
107
107
  sp_out=File.join(formatted_db_path,"uniprot_sprot_#{uniprot_group}.dat.gz")
108
108
  tr_out=File.join(formatted_db_path,"uniprot_trembl_#{uniprot_group}.dat.gz")
109
109
  $ftp.chdir("/pub/databases/uniprot/current_release/knowledgebase/taxonomic_divisions")
110
110
  $ftp.getbinaryfile("uniprot_sprot_#{uniprot_group}.dat.gz", sp_out)
111
- $ftp.getbinaryfile("uniprot_trembl_#{uniprot_group}.dat.gz", tr_out)
111
+ $ftp.getbinaryfile("uniprot_trembl_#{uniprot_group}.dat.gz", tr_out) if !no_trembl
112
112
 
113
113
  puts "#{uniprot_group} files downloaded"
114
114
 
@@ -375,7 +375,7 @@ puts "\nTo set the path for storing databases, execute next line in your termina
375
375
  download_ncrna(formatted_db_path, options[:no_download]) if !options[:no_ncrna]
376
376
 
377
377
  if !options[:no_download]
378
- conecta_uniprot(options[:uniprot_div], formatted_db_path)
378
+ conecta_uniprot(options[:uniprot_div], formatted_db_path, options[:no_trembl])
379
379
  end
380
380
 
381
381
  if !options[:no_uniprot]
@@ -1,3 +1,3 @@
1
1
  module FullLengtherNext
2
- VERSION = '0.9.9'
2
+ VERSION = '1.0.0'
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: 0.9.9
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Seoane