bacterial-annotator 0.3.5 → 0.3.6

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: 62858524bd177b9b7db9ba7f0172a8acf00e0bc8
4
- data.tar.gz: a0338a29fff5690cfcaea22f74449b05a59fcc19
3
+ metadata.gz: 57201d0ab8b7b095e6c33f8e446f907360bdb99f
4
+ data.tar.gz: cb08fd283c1d3c61b68d715c44217ad479dfba92
5
5
  SHA512:
6
- metadata.gz: 5fa60b6872156f35ad82812c706e80e0500c1391cdd972d7a84a946a8f10b293b7c660017391c1346cbb5fd80be975eabe76da5dd44cc2a910e34949a7b91469
7
- data.tar.gz: 84eeab61552c417fef7ff7e457fdf88064475ed1a0a36be26e21a69176fe47b3c749deefed57de82eb555feb1c111893c96bd189e9e2c67da8959afaf594359b
6
+ metadata.gz: 74860f69f0c777a40c9417f840ffc388d4ce81ccd0bf10d92eab63a38d6a5d0e231a80d4e2021d4a0a079742e54042996abf12e957987912d29b5d9bd20b22ab
7
+ data.tar.gz: 186cca9709f39f20e2cf5c6b4b57bea5df5cecfafd19bc9f3a635a3d22a709a09e4e3d75fa4bc42ade631d36d37e929418041bafe917abb88cf073475e9ab77a
@@ -18,7 +18,7 @@ class RemoteNCBI
18
18
  def initialize db, seq_file, outfile, pidentity
19
19
 
20
20
  if ! ["swissprot", "refseq_protein", "nr"].include? db
21
- @db = "bad database"
21
+ @db = "nr" # bad database
22
22
  else
23
23
  @db = db
24
24
  end
@@ -64,6 +64,7 @@ class BacterialComparator
64
64
  flatfile.each_entry do |entry|
65
65
  ref_prot << entry.definition.split(" ")[0]
66
66
  end
67
+ flatfile.close
67
68
  ref_prot
68
69
  end
69
70
 
@@ -93,9 +94,11 @@ class BacterialComparator
93
94
  pep_file = Dir["#{@genomes_list[0]}/*.pep"]
94
95
  flatfile = Bio::FlatFile.auto("#{pep_file[0]}")
95
96
  pep_out.write(get_sequence_from_flatfile flatfile, ref_prot)
97
+ flatfile.close
96
98
  @genomes_list.each_with_index do |g,i|
97
99
  flatfile = Bio::FlatFile.auto("#{g}/Proteins.fa")
98
100
  pep_out.write(get_sequence_from_flatfile flatfile, synteny[i][:query_prot])
101
+ flatfile.close
99
102
  end
100
103
  pep_out.close
101
104
  end
@@ -107,9 +110,11 @@ class BacterialComparator
107
110
  dna_file = Dir["#{@genomes_list[0]}/*.dna"]
108
111
  flatfile = Bio::FlatFile.auto("#{dna_file[0]}")
109
112
  dna_out.write(get_sequence_from_flatfile flatfile, ref_prot)
113
+ flatfile.close
110
114
  @genomes_list.each_with_index do |g,i|
111
115
  flatfile = Bio::FlatFile.auto("#{g}/Genes.fa")
112
116
  dna_out.write(get_sequence_from_flatfile flatfile, synteny[i][:query_prot])
117
+ flatfile.close
113
118
  end
114
119
  dna_out.close
115
120
  end
@@ -276,6 +281,7 @@ class BacterialComparator
276
281
  Dir["*.aln"].each do |f|
277
282
  flat = Bio::FlatFile.auto(f)
278
283
  ref_seq = flat.entries[0]
284
+ flat.close
279
285
  seq += ref_seq.seq
280
286
  end
281
287
 
@@ -299,6 +305,7 @@ class BacterialComparator
299
305
  break
300
306
  end
301
307
  end
308
+ flat.close
302
309
  end
303
310
  bioseq = Bio::Sequence.auto(seq)
304
311
  out = bioseq.output_fasta("#{@genomes_list[i-1]}",60)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bacterial-annotator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Deraspe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bio