minibwa 0.0.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +119 -0
- data/ext/minibwa/extconf.rb +105 -0
- data/ext/minibwa/mb_buffer.c +113 -0
- data/ext/minibwa/mb_hit.c +192 -0
- data/ext/minibwa/mb_index.c +462 -0
- data/ext/minibwa/mb_index_build.c +174 -0
- data/ext/minibwa/mb_options.c +301 -0
- data/ext/minibwa/minibwa/LICENSE.txt +37 -0
- data/ext/minibwa/minibwa/align.c +930 -0
- data/ext/minibwa/minibwa/bseq.h +45 -0
- data/ext/minibwa/minibwa/bwt.c +715 -0
- data/ext/minibwa/minibwa/bwt.h +86 -0
- data/ext/minibwa/minibwa/cs.c +161 -0
- data/ext/minibwa/minibwa/format.c +356 -0
- data/ext/minibwa/minibwa/index.c +342 -0
- data/ext/minibwa/minibwa/kalloc.c +224 -0
- data/ext/minibwa/minibwa/kalloc.h +54 -0
- data/ext/minibwa/minibwa/ketopt.h +123 -0
- data/ext/minibwa/minibwa/kommon.c +374 -0
- data/ext/minibwa/minibwa/kommon.h +85 -0
- data/ext/minibwa/minibwa/kseq.h +256 -0
- data/ext/minibwa/minibwa/ksort.h +163 -0
- data/ext/minibwa/minibwa/ksw2.h +220 -0
- data/ext/minibwa/minibwa/ksw2_extd2_sse.c +403 -0
- data/ext/minibwa/minibwa/ksw2_extz2_sse.c +296 -0
- data/ext/minibwa/minibwa/ksw2_ll_sse.c +341 -0
- data/ext/minibwa/minibwa/kthread.h +15 -0
- data/ext/minibwa/minibwa/l2bit.c +479 -0
- data/ext/minibwa/minibwa/l2bit.h +72 -0
- data/ext/minibwa/minibwa/lchain.c +231 -0
- data/ext/minibwa/minibwa/libsais.c +6985 -0
- data/ext/minibwa/minibwa/libsais.h +106 -0
- data/ext/minibwa/minibwa/libsais64.c +7064 -0
- data/ext/minibwa/minibwa/libsais64.h +81 -0
- data/ext/minibwa/minibwa/map-algo.c +769 -0
- data/ext/minibwa/minibwa/mbpriv.h +148 -0
- data/ext/minibwa/minibwa/minibwa.h +176 -0
- data/ext/minibwa/minibwa/options.c +116 -0
- data/ext/minibwa/minibwa/pe.c +559 -0
- data/ext/minibwa/minibwa/s2n-lite.h +59 -0
- data/ext/minibwa/minibwa/seed.c +354 -0
- data/ext/minibwa/minibwa.c +67 -0
- data/ext/minibwa/minibwa.h +51 -0
- data/lib/minibwa/hit.rb +110 -0
- data/lib/minibwa/index.rb +77 -0
- data/lib/minibwa/options.rb +235 -0
- data/lib/minibwa/sam.rb +85 -0
- data/lib/minibwa/version.rb +6 -0
- data/lib/minibwa.rb +11 -0
- metadata +88 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*--
|
|
2
|
+
|
|
3
|
+
This file is a part of libsais, a library for linear time suffix array,
|
|
4
|
+
longest common prefix array and burrows wheeler transform construction.
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2021-2025 Ilya Grebnov <ilya.grebnov@gmail.com>
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
19
|
+
|
|
20
|
+
Please see the file LICENSE for full copyright information.
|
|
21
|
+
|
|
22
|
+
--*/
|
|
23
|
+
|
|
24
|
+
#ifndef LIBSAIS64_H
|
|
25
|
+
#define LIBSAIS64_H 1
|
|
26
|
+
|
|
27
|
+
#define LIBSAIS64_VERSION_MAJOR 2
|
|
28
|
+
#define LIBSAIS64_VERSION_MINOR 10
|
|
29
|
+
#define LIBSAIS64_VERSION_PATCH 4
|
|
30
|
+
#define LIBSAIS64_VERSION_STRING "2.10.4"
|
|
31
|
+
|
|
32
|
+
#ifdef _WIN32
|
|
33
|
+
#ifdef LIBSAIS_SHARED
|
|
34
|
+
#ifdef LIBSAIS_EXPORTS
|
|
35
|
+
#define LIBSAIS64_API __declspec(dllexport)
|
|
36
|
+
#else
|
|
37
|
+
#define LIBSAIS64_API __declspec(dllimport)
|
|
38
|
+
#endif
|
|
39
|
+
#else
|
|
40
|
+
#define LIBSAIS64_API
|
|
41
|
+
#endif
|
|
42
|
+
#else
|
|
43
|
+
#define LIBSAIS64_API
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
#ifdef __cplusplus
|
|
47
|
+
extern "C" {
|
|
48
|
+
#endif
|
|
49
|
+
|
|
50
|
+
#include <stdint.h>
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Constructs the suffix array of a given string.
|
|
54
|
+
* @param T [0..n-1] The input string.
|
|
55
|
+
* @param SA [0..n-1+fs] The output array of suffixes.
|
|
56
|
+
* @param n The length of the given string.
|
|
57
|
+
* @param fs The extra space available at the end of SA array (0 should be enough for most cases).
|
|
58
|
+
* @param freq [0..255] The output symbol frequency table (can be NULL).
|
|
59
|
+
* @return 0 if no error occurred, -1 or -2 otherwise.
|
|
60
|
+
*/
|
|
61
|
+
LIBSAIS64_API int64_t libsais64(const uint8_t * T, int64_t * SA, int64_t n, int64_t fs, int64_t * freq);
|
|
62
|
+
|
|
63
|
+
#if defined(LIBSAIS_OPENMP)
|
|
64
|
+
/**
|
|
65
|
+
* Constructs the suffix array of a given string in parallel using OpenMP.
|
|
66
|
+
* @param T [0..n-1] The input string.
|
|
67
|
+
* @param SA [0..n-1+fs] The output array of suffixes.
|
|
68
|
+
* @param n The length of the given string.
|
|
69
|
+
* @param fs The extra space available at the end of SA array (0 should be enough for most cases).
|
|
70
|
+
* @param freq [0..255] The output symbol frequency table (can be NULL).
|
|
71
|
+
* @param threads The number of OpenMP threads to use (can be 0 for OpenMP default).
|
|
72
|
+
* @return 0 if no error occurred, -1 or -2 otherwise.
|
|
73
|
+
*/
|
|
74
|
+
LIBSAIS64_API int64_t libsais64_omp(const uint8_t * T, int64_t * SA, int64_t n, int64_t fs, int64_t * freq, int64_t threads);
|
|
75
|
+
#endif
|
|
76
|
+
|
|
77
|
+
#ifdef __cplusplus
|
|
78
|
+
}
|
|
79
|
+
#endif
|
|
80
|
+
|
|
81
|
+
#endif
|