seqtrimnext 2.0.31 → 2.0.32

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.32 2011-06-15
2
+
3
+ Minor adjustements to work with INGEBIOL
4
+
1
5
  === 2.0.31 2011-06-14
2
6
 
3
7
  Added option to not fail without gnuplot
data/Manifest.txt CHANGED
@@ -12,7 +12,7 @@ bin/parse_amplicons.rb
12
12
  bin/parse_json_results.rb
13
13
  bin/parse_params.rb
14
14
  bin/resume_clusters.rb
15
- bin/resume_rejected.sh
15
+ bin/resume_rejected.rb
16
16
  bin/reverse_paired.rb
17
17
  bin/seqtrimnext
18
18
  bin/split_fastq.rb
data/bin/create_graphs.rb CHANGED
File without changes
data/bin/extract_seqs.rb CHANGED
File without changes
File without changes
data/bin/parse_params.rb CHANGED
@@ -24,6 +24,7 @@ end
24
24
  params={}
25
25
 
26
26
  params['vector_db_field']='vectors_db'
27
+ params['primers_db_field']='primers_db'
27
28
  params['contaminants_db_field']='contaminants_db'
28
29
  params['species_field']='genus'
29
30
  params['min_insert_size_field']='min_insert_size_trimmed'
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ if ARGV.count!=1
4
+ puts "You must specify a file with seqtrim's rejected sequences"
5
+ puts "Usage $0 rejected_seqtrim_file";
6
+ exit(-1);
7
+ end
8
+
9
+
10
+ rejected_file=ARGV.shift
11
+
12
+ if !File.exists?(rejected_file)
13
+ puts "File #{rejected_file} doesn't exists"
14
+ puts "Usage $0 rejected_seqtrim_file";
15
+ exit(-1);
16
+ end
17
+
18
+
19
+ res={}
20
+
21
+ File.open(rejected_file).each do |line|
22
+
23
+ cols=line.split(' ')
24
+ cols.shift
25
+
26
+ res[cols.join(' ')] = 0 if !res[cols.join(' ')]
27
+ res[cols.join(' ')] += 1
28
+ end
29
+
30
+ res.each do |k,v|
31
+ puts "#{v} #{k}"
32
+ end
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.31'
33
+ VERSION = '2.0.32'
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.31
5
+ version: 2.0.32
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-14 00:00:00 Z
13
+ date: 2011-06-15 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: narray
@@ -151,7 +151,7 @@ executables:
151
151
  - parse_json_results.rb
152
152
  - parse_params.rb
153
153
  - resume_clusters.rb
154
- - resume_rejected.sh
154
+ - resume_rejected.rb
155
155
  - reverse_paired.rb
156
156
  - seqtrimnext
157
157
  - split_fastq.rb
@@ -185,7 +185,7 @@ files:
185
185
  - bin/parse_json_results.rb
186
186
  - bin/parse_params.rb
187
187
  - bin/resume_clusters.rb
188
- - bin/resume_rejected.sh
188
+ - bin/resume_rejected.rb
189
189
  - bin/reverse_paired.rb
190
190
  - bin/seqtrimnext
191
191
  - bin/split_fastq.rb
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- if [ ! -f $1 ]; then
4
- echo "You must specify a file with seqtrim's rejected sequences"
5
- echo "Usage $0 rejected_seqtrim_file";
6
- exit;
7
- fi
8
-
9
- cat $1 | cut -d ' ' -f 2-20 | sort | uniq -c;