orf_finder 0.1.6 → 0.1.7
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 +4 -4
- data/lib/orf.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b571260f3399603182bc3aaa82c992b873814a3
|
4
|
+
data.tar.gz: 1f78452c8f2b7790d0dcac50f082c538d4b9e7b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807e947a451efafb347f58aff5e69338d09f0ae1029e5995af93771f2f908970257bd7dbacb319c998fbfdf950a09395f6115d592cc4402713a4900dea1a5590
|
7
|
+
data.tar.gz: 434ea3e354678eb4f7bcd8ae2201b84a30cc39770d5b1350082ae23e39c3dbbcc3bc33cd027b693dba1892f66b960fb9daa6615d650f2e2077b9d8159d7df796
|
data/lib/orf.rb
CHANGED
@@ -134,7 +134,7 @@ class ORF
|
|
134
134
|
# run find method if search has not been done
|
135
135
|
find if @orf.nil?
|
136
136
|
#
|
137
|
-
res_nt = { frame1: '', frame2: '', frame3: '' }
|
137
|
+
res_nt = { frame1: [''], frame2: [''], frame3: [''] }
|
138
138
|
res_aa = res_nt.clone
|
139
139
|
# if @orf is empty then no point in continuing
|
140
140
|
return res_nt if @orf.nil? || @orf.size == 0
|
@@ -143,6 +143,7 @@ class ORF
|
|
143
143
|
res_nt[key] = val[:longest].collect do |el|
|
144
144
|
get_range(el)
|
145
145
|
end
|
146
|
+
res_nt[key] = [Bio::Sequence::NA.new('')] if res_nt[key].empty?
|
146
147
|
end
|
147
148
|
@res_nt = res_nt
|
148
149
|
# translate to aa sequence
|