seqtrimnext 2.0.55 → 2.0.56

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: 986a3873d8d82691a22f08f33859fc93859d0339
4
- data.tar.gz: 09efc77da8b82592df05056af9a1aeda4909d6a3
3
+ metadata.gz: cbaa208c6ee641cd3e26f387601b1da4ccd1f77c
4
+ data.tar.gz: 25d86fde91a30d0f1b1bdfae3c5d7c7fa45ddfbf
5
5
  SHA512:
6
- metadata.gz: bb5158b002d5847daf8c968c74da3fa120375ba7527abbb5c6397601b491db78a4416671fd5626fcf5821114613f175cd714866b154e2622067cd1f60c4abbc9
7
- data.tar.gz: 0a44e613a6195480e69ff5d9298ad5b786e732748a03b5a7c2732d046c3c022c27af6d0d110cbbff885f907fe8e983d5f1f4261558dae074f48183d5b70d2746
6
+ metadata.gz: ea8c8e9c946171e3471899eb18cb85804520d48f686440911c23e00a7042f1b3f352328176683b9292c5faf069ac07f97833b300b760b76f4389ba966a5a298f
7
+ data.tar.gz: 2c7f19fa978f00479e8a77565942aaa4ba3616fd5029c5a20a9d75337fa22dcd962d1b99180eb279bd7c4af0a6bc7e9296a58e004cced80a16ac7cd29ff2fba2
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.0.56 2013-07-25
2
+
3
+ added split_fasta.rb script
4
+
1
5
  === 2.0.55 2013-07-23
2
6
 
3
7
  Sanger adapters plugin. Option to disable reject by indeterminations in the middle of a sequence.
data/bin/split_fasta.rb CHANGED
@@ -9,7 +9,7 @@ if ARGV.count < 3
9
9
  end
10
10
 
11
11
 
12
-
12
+
13
13
  fastq = ARGV.shift
14
14
  output_name = ARGV.shift
15
15
  split_by = ARGV.shift.to_i
@@ -17,29 +17,26 @@ split_by = ARGV.shift.to_i
17
17
 
18
18
  file_index=1
19
19
  out=File.new("#{output_name}#{file_index}.fasta",'w')
20
-
21
20
  fqr=FastaQualFile.new(fastq)
22
21
 
23
22
  count = 0
24
23
 
25
24
  fqr.each do |seq_name,seq_fasta,comments|
26
-
27
-
28
- out.puts(">#{seq_name+i.to_s} #{comments}")
29
- out.puts(seq_fasta)
30
25
 
31
- count +=1
26
+ if (count >= split_by)
27
+ count=0
32
28
 
33
- if (count % split_by) == 0
34
-
35
29
  file_index +=1
36
30
  out.close
37
31
  out=File.new("#{output_name}#{file_index}.fasta",'w')
38
-
39
32
  end
40
- end
41
33
 
42
-
43
- out.close
44
- fqr.close
34
+ out.puts(">#{seq_name} #{comments}")
35
+ out.puts(seq_fasta)
36
+
37
+ count +=1
38
+
39
+ end
45
40
 
41
+ out.close if out
42
+ fqr.close
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.55'
33
+ VERSION = '2.0.56'
34
34
 
35
35
  SEQTRIM_VERSION = VERSION
36
36
 
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.55
4
+ version: 2.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dario Guerrero & Almudena Bocinos
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-07-24 00:00:00 Z
12
+ date: 2013-07-25 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: narray