bio-bigwig 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16a4f8614b5681336c4cb6f2e94318e70b1319b67ac30a01e4f60e36b66646cb
4
- data.tar.gz: 1bdc56ff64d8a4c96e2a6be92375b432562476f456b7c3541c1a3f932603f77d
3
+ metadata.gz: f41aa1f4b018bb4e095d971cff0aa56e82ff4e0e9b1be3f542c2479c10d5a8da
4
+ data.tar.gz: 84de77c8c84d1542e14b34066f26fd969bb009dd94c7f6e9ed52a9b37d01a849
5
5
  SHA512:
6
- metadata.gz: 3aafa8e3e0c69abdf2f07152997fc4b8162e05e9e0a10521a0780c3ce2cb237e4bc84367d771d7394f74568faa5f5ef542a19cb2cc2b0bc2a28a2d1125b8a1c7
7
- data.tar.gz: d639dab381fd5613c527dc6b7c0abd4d66c89f0df36fce15903b827e7e22ceba4d86c391f9197577082b9ab44534341569020149eaebfd9c345bb9ad5768cf63
6
+ metadata.gz: 940906811fbe9f4500e8ffaeaee6828482e90ecf2d4842bcc3b7521c5a3202b09c6e05e06448dbabc798ee45a148de0a6264a2a3b5deae4a00976684b6807b64
7
+ data.tar.gz: cf77bebe39c40252a9aa0c6f62b2457bb143c380128fc5dae75f6628a0109fb93336d005c3e4e1d30cec716f8ed152e25324eb5f849e5fdcc402390a5f9346c6
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # bio-bigwig
2
2
 
3
+ [![Gem Version](https://img.shields.io/gem/v/bio-bigwig?color=brightgreen)](https://rubygems.org/gems/bio-bigwig)
4
+ [![test](https://github.com/kojix2/bio-bigwig/actions/workflows/ci.yml/badge.svg)](https://github.com/kojix2/bio-bigwig/actions/workflows/ci.yml)
5
+ [![Docs Latest](https://img.shields.io/badge/docs-latest-blue.svg)](https://rubydoc.info/gems/bio-bigwig)
6
+
3
7
  Ruby wrapper to [libBigWig](https://github.com/dpryan79/libBigWig) compatible with [pyBigWig](https://github.com/deeptools/pyBigWig).
4
8
 
5
9
  * Currently, curl does not seem to work well ((Pull requests welcome)).
@@ -7,18 +11,6 @@ Ruby wrapper to [libBigWig](https://github.com/dpryan79/libBigWig) compatible wi
7
11
 
8
12
  ## Installation
9
13
 
10
- Installation from source.
11
-
12
- ```
13
- git clone --recursive https://github.com/kojix2/bio-bigwig
14
- cd bio-bigwig
15
- bundle install
16
- bundle exec rake compile
17
- bundle exec rake install
18
- ```
19
-
20
- Not yet uploaded to the Gem server.
21
-
22
14
  ```
23
15
  gem install bio-bigwig
24
16
  ```
@@ -119,12 +111,17 @@ bb.sql
119
111
  # )
120
112
  ```
121
113
 
114
+ ## Contributing
115
+
116
+ Bug reports and pull requests are welcome on GitHub at <https://github.com/kojix2/bio-bigwig>.
117
+
122
118
  ## Development
123
119
 
124
120
  Pull requests are welcome!
125
- ## Contributing
126
121
 
127
- Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/bio-bigwig.
122
+ Do you need commit rights to my repository?
123
+ Do you want to get admin rights and take over the project?
124
+ If so, please feel free to contact us @kojix2.
128
125
 
129
126
  ## License
130
127
 
@@ -32,7 +32,7 @@
32
32
  #define NUM2INT64 NUM2LONG
33
33
  #define UINT64_2NUM ULONG2NUM
34
34
  #define INT64_2NUM LONG2NUM
35
- #elif SIZEOF_LONGLONG == SIZEOF_INT64
35
+ #elif SIZEOF_LONG_LONG == SIZEOF_INT64
36
36
  #define NUM2UINT64 NUM2ULL
37
37
  #define NUM2INT64 NUM2LL
38
38
  #define UINT64_2NUM ULL2NUM
@@ -1,30 +1,12 @@
1
- # frozen_string_literal: true
2
-
3
1
  require "mkmf"
4
2
 
5
- # https://github.com/taf2/curb/blob/master/ext/extconf.rb
6
- dir_config("curl")
7
- if find_executable("curl-config")
8
- $CFLAGS << " #{`curl-config --cflags`.strip} -g"
9
- $LIBS << if ENV["STATIC_BUILD"]
10
- " #{`curl-config --static-libs`.strip}"
11
- else
12
- " #{`curl-config --libs`.strip}"
13
- end
14
- ca_bundle_path = `curl-config --ca`.strip
15
- if !ca_bundle_path.nil? && (ca_bundle_path != "")
16
- $defs.push(%(-D HAVE_CURL_CONFIG_CA))
17
- $defs.push(%(-D CURL_CONFIG_CA='#{ca_bundle_path.inspect}'))
18
- end
19
- end
3
+ # check curl
4
+ have_library("curl", "curl_easy_init")
5
+ have_header("libbigwig/bigWig.h")
20
6
 
21
- # dir_config("libbigwig")
22
- # unless find_header("bigWig.h") && have_library("bigwig")
23
- $INCFLAGS << " -I$(srcdir)/libBigWig"
24
- $VPATH << "$(srcdir)/libBigWig"
25
- $srcs = Dir.glob(["{.,libBigWig}/*.c"], base: __dir__)
26
- .map { |f| File.expand_path(f, __dir__) }
27
- $objs = $srcs.map { |f| f.sub(/\.c$/, ".o") }
28
- # end
7
+ $srcs = Dir.glob("libBigWig/*.c", base: __dir__)
8
+ .map { |src| File.expand_path(src, __dir__) }
9
+ .unshift(File.expand_path("bigwigext.c", __dir__))
10
+ $objs = $srcs.map { |src| src.gsub(/\.c\z/, ".o") }
29
11
 
30
12
  create_makefile("bio/bigwig/bigwigext")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bio
4
4
  class BigWig
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-bigwig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-30 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a Ruby binding for libBigWig (https://github.com/dpryan79/libBigWig),
14
14
  which provides high-speed access to bigWig or bigBed files.
@@ -24,26 +24,9 @@ files:
24
24
  - ext/bio/bigwig/bigwigext.c
25
25
  - ext/bio/bigwig/bigwigext.h
26
26
  - ext/bio/bigwig/extconf.rb
27
- - ext/bio/bigwig/libBigWig/LICENSE
28
- - ext/bio/bigwig/libBigWig/bigWig.h
29
- - ext/bio/bigwig/libBigWig/bigWigIO.h
30
- - ext/bio/bigwig/libBigWig/bwCommon.h
31
- - ext/bio/bigwig/libBigWig/bwRead.c
32
- - ext/bio/bigwig/libBigWig/bwStats.c
33
- - ext/bio/bigwig/libBigWig/bwValues.c
34
- - ext/bio/bigwig/libBigWig/bwValues.h
35
- - ext/bio/bigwig/libBigWig/bwWrite.c
36
- - ext/bio/bigwig/libBigWig/io.c
37
- - ext/bio/bigwig/libBigWig/test/exampleWrite.c
38
- - ext/bio/bigwig/libBigWig/test/testBigBed.c
39
- - ext/bio/bigwig/libBigWig/test/testIterator.c
40
- - ext/bio/bigwig/libBigWig/test/testLocal.c
41
- - ext/bio/bigwig/libBigWig/test/testRemote.c
42
- - ext/bio/bigwig/libBigWig/test/testRemoteManyContigs.c
43
- - ext/bio/bigwig/libBigWig/test/testWrite.c
44
27
  - lib/bio/bigwig.rb
45
28
  - lib/bio/bigwig/version.rb
46
- homepage: https://github.com/kojix2/bw-ruby
29
+ homepage: https://github.com/kojix2/bio-bigwig
47
30
  licenses:
48
31
  - MIT
49
32
  metadata: {}
@@ -62,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
45
  - !ruby/object:Gem::Version
63
46
  version: '0'
64
47
  requirements: []
65
- rubygems_version: 3.3.3
48
+ rubygems_version: 3.4.19
66
49
  signing_key:
67
50
  specification_version: 4
68
51
  summary: A ruby library for accessing bigWig / bigBed files
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Devon Ryan
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-