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 +4 -4
- data/README.md +11 -14
- data/ext/bio/bigwig/bigwigext.c +1 -1
- data/ext/bio/bigwig/extconf.rb +7 -25
- data/lib/bio/bigwig/version.rb +1 -1
- metadata +4 -21
- data/ext/bio/bigwig/libBigWig/LICENSE +0 -22
- data/ext/bio/bigwig/libBigWig/bigWig.h +0 -606
- data/ext/bio/bigwig/libBigWig/bigWigIO.h +0 -110
- data/ext/bio/bigwig/libBigWig/bwCommon.h +0 -70
- data/ext/bio/bigwig/libBigWig/bwRead.c +0 -427
- data/ext/bio/bigwig/libBigWig/bwStats.c +0 -537
- data/ext/bio/bigwig/libBigWig/bwValues.c +0 -803
- data/ext/bio/bigwig/libBigWig/bwValues.h +0 -77
- data/ext/bio/bigwig/libBigWig/bwWrite.c +0 -1333
- data/ext/bio/bigwig/libBigWig/io.c +0 -296
- data/ext/bio/bigwig/libBigWig/test/exampleWrite.c +0 -76
- data/ext/bio/bigwig/libBigWig/test/testBigBed.c +0 -132
- data/ext/bio/bigwig/libBigWig/test/testIterator.c +0 -67
- data/ext/bio/bigwig/libBigWig/test/testLocal.c +0 -223
- data/ext/bio/bigwig/libBigWig/test/testRemote.c +0 -203
- data/ext/bio/bigwig/libBigWig/test/testRemoteManyContigs.c +0 -46
- data/ext/bio/bigwig/libBigWig/test/testWrite.c +0 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f41aa1f4b018bb4e095d971cff0aa56e82ff4e0e9b1be3f542c2479c10d5a8da
|
4
|
+
data.tar.gz: 84de77c8c84d1542e14b34066f26fd969bb009dd94c7f6e9ed52a9b37d01a849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/ext/bio/bigwig/bigwigext.c
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
#define NUM2INT64 NUM2LONG
|
33
33
|
#define UINT64_2NUM ULONG2NUM
|
34
34
|
#define INT64_2NUM LONG2NUM
|
35
|
-
#elif
|
35
|
+
#elif SIZEOF_LONG_LONG == SIZEOF_INT64
|
36
36
|
#define NUM2UINT64 NUM2ULL
|
37
37
|
#define NUM2INT64 NUM2LL
|
38
38
|
#define UINT64_2NUM ULL2NUM
|
data/ext/bio/bigwig/extconf.rb
CHANGED
@@ -1,30 +1,12 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require "mkmf"
|
4
2
|
|
5
|
-
#
|
6
|
-
|
7
|
-
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
$
|
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")
|
data/lib/bio/bigwig/version.rb
CHANGED
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.
|
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:
|
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/
|
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.
|
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
|
-
|