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 +4 -4
- data/lib/bacterial-annotator/remote-ncbi.rb +1 -1
- data/lib/bacterial-comparator.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57201d0ab8b7b095e6c33f8e446f907360bdb99f
|
4
|
+
data.tar.gz: cb08fd283c1d3c61b68d715c44217ad479dfba92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74860f69f0c777a40c9417f840ffc388d4ce81ccd0bf10d92eab63a38d6a5d0e231a80d4e2021d4a0a079742e54042996abf12e957987912d29b5d9bd20b22ab
|
7
|
+
data.tar.gz: 186cca9709f39f20e2cf5c6b4b57bea5df5cecfafd19bc9f3a635a3d22a709a09e4e3d75fa4bc42ade631d36d37e929418041bafe917abb88cf073475e9ab77a
|
data/lib/bacterial-comparator.rb
CHANGED
@@ -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.
|
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
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bio
|