parse_fasta 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -0
- data/lib/parse_fasta/fastq_file.rb +4 -2
- data/lib/parse_fasta/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDAyZjJjNDJlMGZkM2Y2YmZmOTNmZTIwOTE2ZmVlMTRlYjhiNThkNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmQxMDI5MDI4MjEyN2UyMjQ3ZGQwNDU2YzZhYmI0ZTNjMGQ2ZWFiOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDZjNTk2OTUzYmM1MzE3MmJmOWJlMGM0NjQxY2RlODRiY2RiOTNlNWRiNmM1
|
10
|
+
NTA3OWNmMzdiZTRlNmVlZWZiOTU1ZjhkZjE4YTA3ZjQ5OTFhOWQ3NjViOTM3
|
11
|
+
N2IwY2I5YjI1MDIwMDczY2M2MzNmZTE4OTdiMzI0NWQ4ODcwMGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmNkZTI0NzE3NjU5M2VmNzgzYTk0MDM1NGM2NTdmNDA2YWY0ZmY2OWRhNTE4
|
14
|
+
ODE1MzIxYTcyNzhhMTJmMTc5NmE5MjI3OWEyYjUwMzM5NzJhYzAxZjJkYTE1
|
15
|
+
YTNmMTcyNWE1ZDg1NTNhMTg0ZDU3N2I0Y2E0YzlmOWZhOWRmNmE=
|
data/README.md
CHANGED
@@ -66,6 +66,11 @@ Read fasta file into a hash.
|
|
66
66
|
|
67
67
|
## Versions ##
|
68
68
|
|
69
|
+
### 1.9.1 ###
|
70
|
+
|
71
|
+
Speed up fastQ `each_record` and `each_record_fast`. Courtesy of
|
72
|
+
[Matthew Ralston](https://github.com/MatthewRalston).
|
73
|
+
|
69
74
|
### 1.9.0 ###
|
70
75
|
|
71
76
|
Added "fast" versions of `each_record` methods
|
@@ -78,7 +78,7 @@ class FastqFile < File
|
|
78
78
|
f.each_line do |line|
|
79
79
|
line.chomp!
|
80
80
|
|
81
|
-
case count
|
81
|
+
case count
|
82
82
|
when 0
|
83
83
|
header = line[1..-1]
|
84
84
|
when 1
|
@@ -86,6 +86,7 @@ class FastqFile < File
|
|
86
86
|
when 2
|
87
87
|
description = line[1..-1]
|
88
88
|
when 3
|
89
|
+
count = -1
|
89
90
|
quality = Quality.new(line)
|
90
91
|
yield(header, sequence, description, quality)
|
91
92
|
end
|
@@ -137,7 +138,7 @@ class FastqFile < File
|
|
137
138
|
f.each_line do |line|
|
138
139
|
line.chomp!
|
139
140
|
|
140
|
-
case count
|
141
|
+
case count
|
141
142
|
when 0
|
142
143
|
header = line[1..-1]
|
143
144
|
when 1
|
@@ -145,6 +146,7 @@ class FastqFile < File
|
|
145
146
|
when 2
|
146
147
|
description = line[1..-1]
|
147
148
|
when 3
|
149
|
+
count = -1
|
148
150
|
quality = line
|
149
151
|
yield(header, sequence, description, quality)
|
150
152
|
end
|
data/lib/parse_fasta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parse_fasta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|