bio-cgranges 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 -4
- data/Rakefile +0 -5
- data/ext/bio/cgranges/cgranges.c +7 -10
- data/lib/bio/cgranges/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85f780637e2d11f0b7fac69bcf7434584c1200f0b341413da6d499ad0bd88f1a
|
4
|
+
data.tar.gz: 98a8b1897c11d91f999f2cb2af1cf6d1a4e6f268e1ba7877d51ac6b2d771d5a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d94f5de2f40b2ca280fa508c6ba7b0784b8d11428edf9cabd084fb002c3989b7efcaf6646d0362d702d7c8ba6307c46a5565d1099907f182e0c106db4e94515
|
7
|
+
data.tar.gz: dd98e66a0962bec279c8c39a55c5c93fdfa5705a1560830f0efe415029bfa3d8bd1c1a57f57261cedf22c2defbe8d8a65aaef453cc35fdf23ad572f5b72d6ff2
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# bio-cgranges
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/bio-cgranges.svg)](https://badge.fury.io/rb/bio-cgranges)
|
4
|
-
[![test](https://github.com/
|
4
|
+
[![test](https://github.com/kojix2/bio-cgranges/actions/workflows/ci.yml/badge.svg)](https://github.com/kojix2/bio-cgranges/actions/workflows/ci.yml)
|
5
5
|
[![docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://rubydoc.info/gems/bio-cgranges)
|
6
|
-
[![docs](https://img.shields.io/badge/docs-latest-blue.svg)](https://
|
6
|
+
[![docs](https://img.shields.io/badge/docs-latest-blue.svg)](https://kojix2.github.io/bio-cgranges/)
|
7
7
|
|
8
8
|
Ruby bindings to [lh3/cgranges](https://github.com/lh3/cgranges).
|
9
9
|
|
@@ -60,11 +60,18 @@ granges.coverage("chr1", 12, 22, mode: :contain)
|
|
60
60
|
# [5, 1]
|
61
61
|
```
|
62
62
|
|
63
|
-
See [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](https://
|
63
|
+
See [![docs](https://img.shields.io/badge/docs-latest-blue.svg)](https://kojix2.github.io/bio-cgranges/) for details.
|
64
64
|
|
65
65
|
## Development
|
66
66
|
|
67
|
-
|
67
|
+
```sh
|
68
|
+
git clone https://github.com/kojix2/bio-cgranges
|
69
|
+
bundle install
|
70
|
+
bundle exec rake compile
|
71
|
+
bundle exec rake test
|
72
|
+
```
|
73
|
+
|
74
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/bio-cgranges.
|
68
75
|
|
69
76
|
Do you need commit rights to this repository?
|
70
77
|
Do you want to get admin rights and take over the project?
|
data/Rakefile
CHANGED
@@ -9,10 +9,6 @@ Rake::TestTask.new(:test) do |t|
|
|
9
9
|
t.test_files = FileList["test/**/*_test.rb"]
|
10
10
|
end
|
11
11
|
|
12
|
-
require "rubocop/rake_task"
|
13
|
-
|
14
|
-
RuboCop::RakeTask.new
|
15
|
-
|
16
12
|
require "rake/extensiontask"
|
17
13
|
|
18
14
|
task build: :compile
|
@@ -34,7 +30,6 @@ task default: %i[
|
|
34
30
|
compile
|
35
31
|
remove_object_file
|
36
32
|
test
|
37
|
-
rubocop
|
38
33
|
]
|
39
34
|
|
40
35
|
task cleanall: %i[
|
data/ext/bio/cgranges/cgranges.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
|
@@ -50,15 +50,12 @@ static void cgranges_free(void *ptr);
|
|
50
50
|
static size_t cgranges_memsize(const void *ptr);
|
51
51
|
|
52
52
|
static const rb_data_type_t cgranges_type = {
|
53
|
-
"cgranges",
|
54
|
-
{
|
55
|
-
|
56
|
-
|
57
|
-
cgranges_memsize,
|
53
|
+
.wrap_struct_name = "cgranges",
|
54
|
+
.function = {
|
55
|
+
.dfree = cgranges_free,
|
56
|
+
.dsize = cgranges_memsize,
|
58
57
|
},
|
59
|
-
|
60
|
-
0,
|
61
|
-
RUBY_TYPED_FREE_IMMEDIATELY,
|
58
|
+
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
|
62
59
|
};
|
63
60
|
|
64
61
|
static void
|
@@ -467,4 +464,4 @@ void Init_cgranges(void)
|
|
467
464
|
rb_define_method(rb_CGRanges, "count_contain", cgranges_count_contain, 3);
|
468
465
|
rb_define_method(rb_CGRanges, "coverage_overlap", cgranges_coverage_overlap, 3);
|
469
466
|
rb_define_method(rb_CGRanges, "coverage_contain", cgranges_coverage_contain, 3);
|
470
|
-
}
|
467
|
+
}
|
data/lib/bio/cgranges/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-cgranges
|
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: 2022-
|
11
|
+
date: 2022-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Genomic interval overlap queries
|
14
14
|
email:
|
@@ -31,7 +31,7 @@ files:
|
|
31
31
|
- ext/bio/cgranges/extconf.rb
|
32
32
|
- lib/bio/cgranges.rb
|
33
33
|
- lib/bio/cgranges/version.rb
|
34
|
-
homepage: https://github.com/
|
34
|
+
homepage: https://github.com/kojix2/bio-cgranges
|
35
35
|
licenses:
|
36
36
|
- MIT
|
37
37
|
metadata: {}
|