bacterial-annotator 0.8.8 → 0.8.9
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/bin/bacterial-annotator +10 -0
- data/lib/bacterial-annotator.rb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc26e2ae283ea0c8163e7c487c95bf0f0b7cffa4095d841b38e709262698a52
|
4
|
+
data.tar.gz: be699876985f29d8269119852b6f027f562c541263abb6afe29b84783375ad3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7615dee5f7d89e8224477dc94798621d72ab8923d1b7027c9b912f46f9fca85beb71bf1b3cd7a058fa27503b07a244ecd97a71330c0816d4b3c41b4f8795e55
|
7
|
+
data.tar.gz: 813dc52e3732accd812e54a9ad998fee65e01cdec8bf79c136c59262512683ed32656e88e860476f405e08441723eef6681648d972f17237ec80d88a64a8a46d
|
data/bin/bacterial-annotator
CHANGED
@@ -194,6 +194,11 @@ def parseOptions_compare
|
|
194
194
|
options[:software] = "fasttree"
|
195
195
|
options[:bootstrap] = 100
|
196
196
|
|
197
|
+
if ARGV.length == 0
|
198
|
+
usage_compare
|
199
|
+
abort
|
200
|
+
end
|
201
|
+
|
197
202
|
while x = ARGV.shift
|
198
203
|
|
199
204
|
case x.downcase
|
@@ -254,6 +259,11 @@ def parseOptions_identify
|
|
254
259
|
options[:genome_list] = []
|
255
260
|
options[:output] = "tsv"
|
256
261
|
|
262
|
+
if ARGV.length == 0
|
263
|
+
usage_identify
|
264
|
+
abort
|
265
|
+
end
|
266
|
+
|
257
267
|
while x = ARGV.shift
|
258
268
|
|
259
269
|
case x.downcase
|
data/lib/bacterial-annotator.rb
CHANGED
@@ -369,6 +369,20 @@ class BacterialAnnotator
|
|
369
369
|
inference: inference
|
370
370
|
}
|
371
371
|
|
372
|
+
@annotation_stats[:flagged_cds].each do |flag|
|
373
|
+
if flag.include? "#{k}"
|
374
|
+
if v[:homology][:assert_cutoff].inject(:+) > 2
|
375
|
+
flag.replace("#{flag}\tAnnotated by externaldb (#{v[:homology][:hits][0]}|#{v[:homology][:pId]}|#{cov_query}|#{cov_subject}))")
|
376
|
+
elsif v[:homology][:assert_cutoff] == [1,1,0]
|
377
|
+
flag.replace("#{flag}\tPossible pseudogene (coverage subject = #{cov_subject} with #{v[:homology][:hits][0]}))")
|
378
|
+
elsif v[:homology][:assert_cutoff] == [1,0,1]
|
379
|
+
flag.replace("#{flag}\tPossible pseudogene (coverage query = #{cov_query} with #{v[:homology][:hits][0]}))")
|
380
|
+
elsif v[:homology][:assert_cutoff] == [0,1,1]
|
381
|
+
flag.replace("#{flag}\tLow similarity (percent identity = #{v[:homology][:pId]} with #{v[:homology][:hits][0]}))")
|
382
|
+
end
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
372
386
|
end
|
373
387
|
|
374
388
|
end
|
@@ -463,6 +477,7 @@ class BacterialAnnotator
|
|
463
477
|
flag += "\t#{(@prot_synteny_refgenome.query_sequences[prot][:homology][:cov_query]*100).round(2)}"
|
464
478
|
flag += "\t#{(@prot_synteny_refgenome.query_sequences[prot][:homology][:cov_subject]*100).round(2)}"
|
465
479
|
@annotation_stats[:flagged_cds] << flag
|
480
|
+
remaining_cds << prot
|
466
481
|
end
|
467
482
|
|
468
483
|
else
|
@@ -515,7 +530,7 @@ class BacterialAnnotator
|
|
515
530
|
|
516
531
|
file_flagged_cds = file_dir + "/Prot-flagged.tsv"
|
517
532
|
File.open(file_flagged_cds, "w") do |fopen|
|
518
|
-
fopen.write("CDS locus\tAssertion-CutOff\tAA Identity\tCovQuery(%)\tCovSubject(%)\n")
|
533
|
+
fopen.write("CDS locus\tAssertion-CutOff\tAA Identity\tCovQuery(%)\tCovSubject(%)\tNote\n")
|
519
534
|
@annotation_stats[:flagged_cds].each do |fcds|
|
520
535
|
fopen.write("#{fcds}\n")
|
521
536
|
end
|
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.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Deraspe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bio
|