seqtrimnext 2.0.41 → 2.0.42

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.0.42 2012-02-01
2
+
3
+ Added custom cd-hit cmd parameters
4
+
1
5
  === 2.0.41 2011-11-04
2
6
 
3
7
  Added extra adapters plugin for transcriptomics
@@ -27,12 +27,29 @@ class Seqtrim
27
27
  # reads the sequences from files 'fasta' , until now without qualities,
28
28
  # and executes the plugins over the sequences in the pool of threads
29
29
 
30
+
31
+ def get_custom_cdhit(cd_hit_input_file,params)
32
+ cmd=''
33
+ begin
34
+ cdhit_custom_parameters=params.get_param('cdhit_custom_parameters').strip
35
+
36
+ if !cdhit_custom_parameters.nil? and !cdhit_custom_parameters.empty?
37
+ cmd = "cd-hit-454 -i #{cd_hit_input_file} -o clusters.fasta #{cdhit_custom_parameters} > cd-hit-454.out"
38
+ end
39
+
40
+ rescue Exception => exception #not an integer, send via ssh to other machine
41
+ cmd=''
42
+ end
43
+
44
+ return cmd
45
+ end
30
46
 
31
47
  def get_cd_hit_cmd(cd_hit_input_file,workers,init_file_path)
32
48
 
33
49
  num_cpus_cdhit=1
34
50
  cmd=''
35
51
 
52
+
36
53
  # if workers is an integer, reduce it by one in the server
37
54
  begin
38
55
  Integer(workers)
@@ -72,6 +89,8 @@ class Seqtrim
72
89
  end
73
90
  end
74
91
 
92
+
93
+
75
94
  return cmd
76
95
  end
77
96
 
@@ -94,6 +113,10 @@ class Seqtrim
94
113
  default_value='true'
95
114
  params.check_param(errors,'remove_clonality','String',default_value,comment)
96
115
 
116
+ comment='Custom parameters used by CD-HIT-454 (leave empty to let seqtrimnext decide). Execute "cd-hit-454 help" in command line to see a list of parameters'
117
+ default_value=''
118
+ params.check_param(errors,'cdhit_custom_parameters','String',default_value,comment)
119
+
97
120
  comment='Generate initial stats'
98
121
  default_value='true'
99
122
  params.check_param(errors,'generate_initial_stats','String',default_value,comment)
@@ -241,8 +264,10 @@ class Seqtrim
241
264
 
242
265
  #execute cd-hit
243
266
  if params.get_param('remove_clonality')=='true'
244
-
245
- cmd=get_cd_hit_cmd(cd_hit_input_file,workers,$SEQTRIMNEXT_INIT)
267
+ cmd=get_custom_cdhit(cd_hit_input_file,params)
268
+ if cmd.empty?
269
+ cmd=get_cd_hit_cmd(cd_hit_input_file,workers,$SEQTRIMNEXT_INIT)
270
+ end
246
271
 
247
272
  $LOG.info "Executing cd-hit-454: #{cmd}"
248
273
 
@@ -3,6 +3,6 @@
3
3
  # ======================================
4
4
 
5
5
 
6
- plugin_list = PluginLowHighSize,PluginMids,PluginIndeterminations,PluginAbAdapters,PluginFindPolyAt,PluginContaminants,PluginVectors,PluginLowQuality,PluginLowComplexity
6
+ plugin_list = PluginLowHighSize,PluginMids,PluginIndeterminations,PluginAbAdapters,PluginAdapters,PluginFindPolyAt,PluginContaminants,PluginVectors,PluginLowQuality,PluginLowComplexity
7
7
 
8
8
  contaminants_db="contaminants.fasta cont_ribosome.fasta cont_mitochondrias.fasta cont_plastids.fasta"
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.41'
33
+ VERSION = '2.0.42'
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.41
5
+ version: 2.0.42
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-11-07 00:00:00 Z
13
+ date: 2012-02-01 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: narray