bacterial-annotator 0.5.0 → 0.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b2b8f795b50e094ffd301c5394515668f6b9952
|
4
|
+
data.tar.gz: c156912ed593c75aebd43d0ff96e3830e642210b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bece4ed7722eafc0be05f4e57f449cfa68d44397c1621a84b1dfe0224599f6f575bd5e1d77c1fe486e582adcbac452270e6ef0720bb084720fa1e7a35f2f2c1
|
7
|
+
data.tar.gz: 04f636eca3997c507720a8deb65a7234fc82dc8a3fa990206a03a67c36bf843690087699d18aabc789cccf584fe3192a27182ee27528c3fc55b8091000bfb86d
|
@@ -277,8 +277,6 @@ class SequenceAnnotation
|
|
277
277
|
# nb_of_added_ft = 0
|
278
278
|
i = 0
|
279
279
|
|
280
|
-
fdebug = File.open("debug-add-annotation.txt","w")
|
281
|
-
|
282
280
|
contig = @gbk.definition
|
283
281
|
|
284
282
|
if mode == "inplace"
|
@@ -304,9 +302,6 @@ class SequenceAnnotation
|
|
304
302
|
|
305
303
|
if hit != nil
|
306
304
|
|
307
|
-
fdebug.write(hit)
|
308
|
-
fdebug.write("\n")
|
309
|
-
|
310
305
|
locus, gene, product, note = nil
|
311
306
|
locus = hit[:locustag]
|
312
307
|
gene = hit[:gene]
|
@@ -380,8 +375,6 @@ class SequenceAnnotation
|
|
380
375
|
|
381
376
|
end
|
382
377
|
|
383
|
-
fdebug.close
|
384
|
-
|
385
378
|
end
|
386
379
|
|
387
380
|
|
@@ -294,10 +294,6 @@ class SequenceSynteny
|
|
294
294
|
annotations[p][:length] = @aln_hits[p][:length][hit_index]
|
295
295
|
i+=1
|
296
296
|
|
297
|
-
File.open("debug-annotation-by-contig.txt","a") do |fout|
|
298
|
-
fout.write("#{p} #{@aln_hits[p][:pId]} #{@aln_hits[p][:cov_query]} #{@aln_hits[p][:cov_subject]} #{ref_cds[h][:product]}\n")
|
299
|
-
end
|
300
|
-
|
301
297
|
else
|
302
298
|
|
303
299
|
annotations[p] = nil
|
data/lib/bacterial-annotator.rb
CHANGED
@@ -95,18 +95,12 @@ class BacterialAnnotator
|
|
95
95
|
|
96
96
|
ref_synteny_prot.extract_hits :refgenome
|
97
97
|
|
98
|
-
fdebug = File.open("debug-synteny.tsv", "w")
|
99
|
-
|
100
98
|
ref_synteny_prot.query_sequences.each do |k,v|
|
101
99
|
if v.has_key? :homology
|
102
100
|
@contig_annotations_cds[v[:contig]] = [] if ! @contig_annotations_cds.has_key? v[:contig]
|
103
101
|
@contig_annotations_cds[v[:contig]] << k
|
104
|
-
fdebug.write("#{v[:contig]}\t#{k}\t#{v[:homology][:pId]}\t#{v[:homology][:cov_query]}\t#{v[:homology][:cov_subject]}\t#{v[:homology][:hits].join(',')}\t#{@ref_genome.coding_seq[v[:homology][:hits][0]][:locustag]}\t#{@ref_genome.coding_seq[v[:homology][:hits][0]][:product]}\t#{v[:homology][:assert_cutoff].join(',')}\n")
|
105
|
-
else
|
106
|
-
fdebug.write("#{v[:contig]} #{k} NONE...\n")
|
107
102
|
end
|
108
103
|
end
|
109
|
-
fdebug.close
|
110
104
|
|
111
105
|
ref_synteny_prot
|
112
106
|
|
@@ -249,7 +243,7 @@ class BacterialAnnotator
|
|
249
243
|
gbk_to_annotate.add_annotation_ref_synteny_prot(
|
250
244
|
(@prot_synteny_refgenome.query_sequences.merge(@externaldb_synteny.query_sequences)),
|
251
245
|
@contig_annotations_externaldb[contig].merge(@ref_genome.coding_seq),
|
252
|
-
@options[:refgenome].gsub(/.gb.*/,"")
|
246
|
+
(File.basename @options[:refgenome]).gsub(/.gb.*/,"")
|
253
247
|
)
|
254
248
|
else
|
255
249
|
gbk_to_annotate.add_annotation_ref_synteny_prot(
|
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.5.
|
4
|
+
version: 0.5.1
|
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-05-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bio
|
@@ -71,7 +71,7 @@ dependencies:
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 1.9.0
|
73
73
|
description: GEM to annotate bacterial genome sequence based on a reference genome
|
74
|
-
and complete the annotation with an external database
|
74
|
+
and complete the annotation with an external database.
|
75
75
|
email: maximilien1er@gmail.com
|
76
76
|
executables:
|
77
77
|
- bacterial-annotator
|