seqtrimnext 2.0.55 → 2.0.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/bin/split_fasta.rb +11 -14
- data/lib/seqtrimnext.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbaa208c6ee641cd3e26f387601b1da4ccd1f77c
|
4
|
+
data.tar.gz: 25d86fde91a30d0f1b1bdfae3c5d7c7fa45ddfbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea8c8e9c946171e3471899eb18cb85804520d48f686440911c23e00a7042f1b3f352328176683b9292c5faf069ac07f97833b300b760b76f4389ba966a5a298f
|
7
|
+
data.tar.gz: 2c7f19fa978f00479e8a77565942aaa4ba3616fd5029c5a20a9d75337fa22dcd962d1b99180eb279bd7c4af0a6bc7e9296a58e004cced80a16ac7cd29ff2fba2
|
data/History.txt
CHANGED
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
|
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.
|
44
|
-
|
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
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.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-
|
12
|
+
date: 2013-07-25 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: narray
|