seqtrimnext 2.0.66 → 2.0.68
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dec16c30109eb1196eb4dcafe25b8b0f9f66bb5
|
4
|
+
data.tar.gz: d50c362cc94c53f04575d78d040ba86b286d488e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddfa27d6f631ef9197b67ae3fc936d7b42161de834023c9c5d71ec8e43f573213c27983916a717927ff4562d44a687178580c5b92659ffe5c8ce6cedea33ae2b
|
7
|
+
data.tar.gz: 3eb16600a5055cc3adbb4ec734ddf2011aee1a6524cc4ac9576b4577b87fbac06c3378e1c7d7bb965f8abc1aaacda18066afd62fa69888f00eb6824409d0978a
|
data/bin/resume_stn_stats.rb
CHANGED
@@ -24,11 +24,12 @@ ARGV.each do |file_path|
|
|
24
24
|
|
25
25
|
begin
|
26
26
|
res << sample_name
|
27
|
-
res << stats['sequences']['count']['input_count']
|
27
|
+
res << stats['sequences']['count']['input_count']
|
28
28
|
res << stats['sequences']['count']['output_seqs_paired']
|
29
29
|
res << stats['sequences']['count']['output_seqs']
|
30
30
|
res << stats['sequences']['count']['rejected']
|
31
|
-
res << sprintf('%.2f',(stats['sequences']['count']['rejected'].to_f/(stats['sequences']['count']['output_seqs_paired'].to_i+stats['sequences']['count']['output_seqs'].to_i).to_f)*100)
|
31
|
+
#res << sprintf('%.2f',(stats['sequences']['count']['rejected'].to_f/(stats['sequences']['count']['output_seqs_paired'].to_i+stats['sequences']['count']['output_seqs'].to_i).to_f)*100)
|
32
|
+
res << sprintf('%.2f',(stats['sequences']['count']['rejected'].to_f/stats['sequences']['count']['input_count'].to_f)*100)
|
32
33
|
|
33
34
|
rescue Excepcion => e
|
34
35
|
|
data/bin/seqtrimnext
CHANGED
@@ -109,8 +109,8 @@ end
|
|
109
109
|
|
110
110
|
ENV['BLASTDB']=$FORMATTED_DB_PATH
|
111
111
|
|
112
|
-
OUTPUT_PATH='
|
113
|
-
|
112
|
+
OUTPUT_PATH='output_files_tmp'
|
113
|
+
DEFAULT_FINAL_OUTPUT_PATH='output_files'
|
114
114
|
|
115
115
|
# TODO - COMENTAR todas las clases y metodos para que salga la descripcion cuando hagas rdoc en el terminal
|
116
116
|
|
@@ -327,6 +327,11 @@ optparse = OptionParser.new do |opts|
|
|
327
327
|
options[:write_in_gzip] = true
|
328
328
|
end
|
329
329
|
|
330
|
+
options[:final_output_path] = DEFAULT_FINAL_OUTPUT_PATH
|
331
|
+
opts.on( '-O', '--ouput output_files', 'Output folder. It should not exists. output_files by default') do |folder|
|
332
|
+
options[:final_output_path] = folder
|
333
|
+
end
|
334
|
+
|
330
335
|
# This displays the help screen, all programs are
|
331
336
|
# assumed to have this option.
|
332
337
|
opts.on_tail( '-h', '--help', 'Display this screen' ) do
|
@@ -399,12 +404,17 @@ if (ARGV.count != 0) || (!required_options) # con esto vemos si hay argumentos,
|
|
399
404
|
exit(-1)
|
400
405
|
end
|
401
406
|
|
407
|
+
if File.exists?(options[:final_output_path])
|
408
|
+
$LOG.error "Output folder #{options[:final_output_path]} already exists.\n Remove it if you want to launch STN again."
|
409
|
+
exit(-1)
|
410
|
+
end
|
411
|
+
|
402
412
|
# check for template
|
403
413
|
if (!File.exists?(options[:template]))
|
404
414
|
if File.exists?(File.join($SEQTRIM_PATH,'templates',options[:template]))
|
405
415
|
options[:template] = File.join($SEQTRIM_PATH,'templates',options[:template])
|
406
416
|
else
|
407
|
-
$LOG.
|
417
|
+
$LOG.error "Params file: #{options[:template]} doesn't exists. \n\nYou can use your own template or specify one from this list:\n============================="
|
408
418
|
puts Dir.glob(File.join($SEQTRIM_PATH,'templates','*.txt')).map{|t| File.basename(t)}
|
409
419
|
exit(-1)
|
410
420
|
end
|
@@ -441,7 +451,7 @@ s = Seqtrim.new(options)
|
|
441
451
|
#generate report
|
442
452
|
|
443
453
|
if !options[:skip_report] && system("which generate_report.rb > /dev/null ")
|
444
|
-
cmd="generate_report.rb
|
454
|
+
cmd="generate_report.rb #{OUTPUT_PATH} 2> report_generation_errors.log"
|
445
455
|
$LOG.info "Generating report #{cmd}"
|
446
456
|
`#{cmd}`
|
447
457
|
else
|
@@ -454,4 +464,8 @@ else
|
|
454
464
|
$LOG.info "If you want a detailed report in PDF format, be sure you have installed the optional seqtrimnext_report gem (gem install seqtrimnext_report)#{skip_text}"
|
455
465
|
end
|
456
466
|
|
467
|
+
if (Seqtrim.exit_status>=0)
|
468
|
+
FileUtils.mv OUTPUT_PATH, options[:final_output_path]
|
469
|
+
end
|
470
|
+
|
457
471
|
exit(Seqtrim.exit_status)
|
@@ -6,7 +6,7 @@ class InstallDatabase
|
|
6
6
|
def initialize(type,db_path)
|
7
7
|
|
8
8
|
|
9
|
-
types=['core','cont_bacteria','cont_fungi','cont_mitochondrias','cont_plastids','cont_ribosome','cont_viruses']
|
9
|
+
types=['core','cont_bacteria','cont_fungi','cont_mitochondrias','cont_plastids','cont_ribosome','cont_viruses','adapters_illumina']
|
10
10
|
|
11
11
|
if types.include?(type)
|
12
12
|
|
data/lib/seqtrimnext/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seqtrimnext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.68
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dario Guerrero
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|