mizlab 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: 894a3675ba2feea2a673e352e900a2000805b0fc6d44b413e912fc17a65d4b09
4
- data.tar.gz: 26b8765e6ef006ff1bcf12dc9d93a8293a4c52b9b8cf6c84093a22ca94009dd1
3
+ metadata.gz: df8aef7891b1d4362295bf293deeab71c0df4b1acdb7e67d7fbc79fe01a7f047
4
+ data.tar.gz: 836d63375f5b57f0dee6c8b52602870e1bec91e49a0af6caa7133c588bf8298f
5
5
  SHA512:
6
- metadata.gz: 4d9284a55408dd8bfd122313c47c5a762a5c41ab419c12e619e5b68938d578846a4c265e3c9b0e619d5b4dec388453077aa982db92d00ce998f663b793544f10
7
- data.tar.gz: 81024dcb6542d7b269ee0ef0339fade2d3f4d8fa5467b0edf31f4c17c9ddd2dd9b3587a1b6b457700910624728197a5c14ca429dcc4fd7dec6f03d9d9fc555a1
6
+ metadata.gz: 5a27e47c4d641c989a5c3d0d744f77316cd898a4172bc96e3231cc1d7b1c8f9421cf521f1c61d4af81c42f8e4acb5498702ba61c19b51200f2bb9b0a9b3d4a94
7
+ data.tar.gz: a62744a6682e782a68e729fecc00e31d3685768acb52a4e86243037de2a07b96de1527d6b0c91378e1c0245061815c6663c311cefdf7fdd1ba17b27cdcbcd333
@@ -18,4 +18,4 @@ jobs:
18
18
  # Optional, will publish to RubyGems if specified
19
19
  api_key: ${{secrets.RUBYGEMS_API_KEY}}
20
20
  # Optional, will publish to GitHub Packages if specified
21
- github_token: ${{secrets.GITHUB_TOKEN}}
21
+ # github_token: ${{secrets.GITHUB_TOKEN}}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mizlab
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/mizlab.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require_relative "mizlab/version"
4
4
  require "set"
5
5
  require "bio"
6
+ require "stringio"
6
7
 
7
8
  module Mizlab
8
9
  class << self
@@ -106,7 +107,7 @@ module Mizlab
106
107
  end
107
108
 
108
109
  def fetch_nucleotide(accession)
109
- return Bio::NCBI::REST::EFetch.protein(accession)
110
+ return Bio::NCBI::REST::EFetch.nucleotide(accession)
110
111
  end
111
112
 
112
113
  # get patterns from filled pixs.
@@ -200,14 +201,9 @@ module Mizlab
200
201
  # @param [String] entries Entries as string
201
202
  # @yield [Object] Object that match entry format.
202
203
  def parse(entries)
203
- tmp_file_name = ".mizlab_fetch_tmpfile"
204
- File.open(tmp_file_name, "w") do |f|
205
- f.puts entries
206
- end
207
- Bio::FlatFile.auto(tmp_file_name).each_entry do |e|
204
+ Bio::FlatFile.auto(StringIO.new(entries)).each_entry do |e|
208
205
  yield e
209
206
  end
210
- File.delete(tmp_file_name)
211
207
  end
212
208
  end
213
209
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mizlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omochice