seqtrimnext 2.0.32 → 2.0.33

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.0.33 2011-06-17
2
+
3
+ Added SEQTRIMNEXT_INIT environment variable
4
+
1
5
  === 2.0.32 2011-06-15
2
6
 
3
7
  Minor adjustements to work with INGEBIOL
data/bin/seqtrimnext CHANGED
@@ -63,6 +63,12 @@ require 'seqtrimnext'
63
63
  ############ PATHS #######################
64
64
  $SEQTRIM_PATH = ROOT_PATH
65
65
 
66
+ if ENV['SEQTRIMNEXT_INIT'] && File.exists?(ENV['SEQTRIMNEXT_INIT'])
67
+ $SEQTRIMNEXT_INIT=File.expand_path(ENV['SEQTRIMNEXT_INIT'])
68
+ else
69
+ $SEQTRIMNEXT_INIT=File.join($SEQTRIM_PATH,'init_env')
70
+ end
71
+
66
72
  # if there is a BLASTDB environment var, then use it
67
73
  if ENV['BLASTDB']# && Dir.exists?(ENV['BLASTDB'])
68
74
  $FORMATTED_DB_PATH = ENV['BLASTDB']
@@ -332,6 +338,7 @@ if (!File.exists?(options[:template]))
332
338
  exit
333
339
  end
334
340
  end
341
+ $LOG.info "Using init file: #{$SEQTRIMNEXT_INIT}"
335
342
  $LOG.info "Using params file: #{options[:template]}"
336
343
 
337
344
  # fastq file
@@ -232,7 +232,7 @@ class Seqtrim
232
232
  #execute cd-hit
233
233
  if params.get_param('remove_clonality')=='true'
234
234
 
235
- cmd=get_cd_hit_cmd(cd_hit_input_file,workers,File.join($SEQTRIM_PATH,'init_env'))
235
+ cmd=get_cd_hit_cmd(cd_hit_input_file,workers,$SEQTRIMNEXT_INIT)
236
236
 
237
237
  $LOG.info "Executing cd-hit-454: #{cmd}"
238
238
 
@@ -301,7 +301,8 @@ class Seqtrim
301
301
 
302
302
  # launch processor server passing the ip, port and all required params
303
303
  # server = Server.new(ip,port, workers, SeqtrimWorkManager,custom_worker_file, STDOUT,File.join($SEQTRIM_PATH,'init_env'))
304
- server = ScbiMapreduce::Manager.new(ip,port, workers, SeqtrimWorkManager,custom_worker_file, STDOUT,'~/.seqtrimnext')
304
+ # server = ScbiMapreduce::Manager.new(ip,port, workers, SeqtrimWorkManager,custom_worker_file, STDOUT,'~/.seqtrimnext')
305
+ server = ScbiMapreduce::Manager.new(ip,port, workers, SeqtrimWorkManager,custom_worker_file, STDOUT,$SEQTRIMNEXT_INIT)
305
306
  server.chunk_size=chunk_size
306
307
  server.start_server
307
308
 
data/lib/seqtrimnext.rb CHANGED
@@ -30,7 +30,7 @@ module Seqtrimnext
30
30
  # SEQTRIM_VERSION_STAGE = 'b'
31
31
  # SEQTRIM_VERSION = "2.0.0#{SEQTRIM_VERSION_STAGE}#{SEQTRIM_VERSION_REVISION}"
32
32
 
33
- VERSION = '2.0.32'
33
+ VERSION = '2.0.33'
34
34
 
35
35
  SEQTRIM_VERSION = VERSION
36
36
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: seqtrimnext
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.32
5
+ version: 2.0.33
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dario Guerrero & Almudena Bocinos
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-15 00:00:00 Z
13
+ date: 2011-06-17 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: narray