minimap2 0.2.22.0 → 0.2.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +60 -76
- data/ext/Rakefile +55 -0
- data/ext/cmappy/cmappy.c +129 -0
- data/ext/cmappy/cmappy.h +44 -0
- data/ext/minimap2/FAQ.md +46 -0
- data/ext/minimap2/LICENSE.txt +24 -0
- data/ext/minimap2/MANIFEST.in +10 -0
- data/ext/minimap2/Makefile +132 -0
- data/ext/minimap2/Makefile.simde +97 -0
- data/ext/minimap2/NEWS.md +821 -0
- data/ext/minimap2/README.md +403 -0
- data/ext/minimap2/align.c +1020 -0
- data/ext/minimap2/bseq.c +169 -0
- data/ext/minimap2/bseq.h +64 -0
- data/ext/minimap2/code_of_conduct.md +30 -0
- data/ext/minimap2/cookbook.md +243 -0
- data/ext/minimap2/esterr.c +64 -0
- data/ext/minimap2/example.c +63 -0
- data/ext/minimap2/format.c +559 -0
- data/ext/minimap2/hit.c +466 -0
- data/ext/minimap2/index.c +775 -0
- data/ext/minimap2/kalloc.c +205 -0
- data/ext/minimap2/kalloc.h +76 -0
- data/ext/minimap2/kdq.h +132 -0
- data/ext/minimap2/ketopt.h +120 -0
- data/ext/minimap2/khash.h +615 -0
- data/ext/minimap2/krmq.h +474 -0
- data/ext/minimap2/kseq.h +256 -0
- data/ext/minimap2/ksort.h +153 -0
- data/ext/minimap2/ksw2.h +184 -0
- data/ext/minimap2/ksw2_dispatch.c +96 -0
- data/ext/minimap2/ksw2_extd2_sse.c +402 -0
- data/ext/minimap2/ksw2_exts2_sse.c +416 -0
- data/ext/minimap2/ksw2_extz2_sse.c +313 -0
- data/ext/minimap2/ksw2_ll_sse.c +152 -0
- data/ext/minimap2/kthread.c +159 -0
- data/ext/minimap2/kthread.h +15 -0
- data/ext/minimap2/kvec.h +105 -0
- data/ext/minimap2/lchain.c +369 -0
- data/ext/minimap2/main.c +459 -0
- data/ext/minimap2/map.c +714 -0
- data/ext/minimap2/minimap.h +410 -0
- data/ext/minimap2/minimap2.1 +725 -0
- data/ext/minimap2/misc/README.md +179 -0
- data/ext/minimap2/misc/mmphase.js +335 -0
- data/ext/minimap2/misc/paftools.js +3149 -0
- data/ext/minimap2/misc.c +162 -0
- data/ext/minimap2/mmpriv.h +132 -0
- data/ext/minimap2/options.c +234 -0
- data/ext/minimap2/pe.c +177 -0
- data/ext/minimap2/python/README.rst +196 -0
- data/ext/minimap2/python/cmappy.h +152 -0
- data/ext/minimap2/python/cmappy.pxd +153 -0
- data/ext/minimap2/python/mappy.pyx +273 -0
- data/ext/minimap2/python/minimap2.py +39 -0
- data/ext/minimap2/sdust.c +213 -0
- data/ext/minimap2/sdust.h +25 -0
- data/ext/minimap2/seed.c +131 -0
- data/ext/minimap2/setup.py +55 -0
- data/ext/minimap2/sketch.c +143 -0
- data/ext/minimap2/splitidx.c +84 -0
- data/ext/minimap2/sse2neon/emmintrin.h +1689 -0
- data/ext/minimap2/test/MT-human.fa +278 -0
- data/ext/minimap2/test/MT-orang.fa +276 -0
- data/ext/minimap2/test/q-inv.fa +4 -0
- data/ext/minimap2/test/q2.fa +2 -0
- data/ext/minimap2/test/t-inv.fa +127 -0
- data/ext/minimap2/test/t2.fa +2 -0
- data/ext/minimap2/tex/Makefile +21 -0
- data/ext/minimap2/tex/bioinfo.cls +930 -0
- data/ext/minimap2/tex/blasr-mc.eval +17 -0
- data/ext/minimap2/tex/bowtie2-s3.sam.eval +28 -0
- data/ext/minimap2/tex/bwa-s3.sam.eval +52 -0
- data/ext/minimap2/tex/bwa.eval +55 -0
- data/ext/minimap2/tex/eval2roc.pl +33 -0
- data/ext/minimap2/tex/graphmap.eval +4 -0
- data/ext/minimap2/tex/hs38-simu.sh +10 -0
- data/ext/minimap2/tex/minialign.eval +49 -0
- data/ext/minimap2/tex/minimap2.bib +460 -0
- data/ext/minimap2/tex/minimap2.tex +724 -0
- data/ext/minimap2/tex/mm2-s3.sam.eval +62 -0
- data/ext/minimap2/tex/mm2-update.tex +240 -0
- data/ext/minimap2/tex/mm2.approx.eval +12 -0
- data/ext/minimap2/tex/mm2.eval +13 -0
- data/ext/minimap2/tex/natbib.bst +1288 -0
- data/ext/minimap2/tex/natbib.sty +803 -0
- data/ext/minimap2/tex/ngmlr.eval +38 -0
- data/ext/minimap2/tex/roc.gp +60 -0
- data/ext/minimap2/tex/snap-s3.sam.eval +62 -0
- data/ext/minimap2.patch +19 -0
- data/lib/minimap2/aligner.rb +4 -4
- data/lib/minimap2/alignment.rb +11 -11
- data/lib/minimap2/ffi/constants.rb +20 -16
- data/lib/minimap2/ffi/functions.rb +5 -0
- data/lib/minimap2/ffi.rb +4 -5
- data/lib/minimap2/version.rb +2 -2
- data/lib/minimap2.rb +51 -15
- metadata +97 -79
- data/lib/minimap2/ffi_helper.rb +0 -53
- data/vendor/libminimap2.so +0 -0
@@ -0,0 +1,97 @@
|
|
1
|
+
CFLAGS= -g -Wall -O2 -Wc++-compat #-Wextra
|
2
|
+
CPPFLAGS= -DHAVE_KALLOC -DUSE_SIMDE -DSIMDE_ENABLE_NATIVE_ALIASES
|
3
|
+
INCLUDES= -Ilib/simde
|
4
|
+
OBJS= kthread.o kalloc.o misc.o bseq.o sketch.o sdust.o options.o index.o lchain.o align.o hit.o map.o format.o pe.o seed.o esterr.o splitidx.o \
|
5
|
+
ksw2_extz2_simde.o ksw2_extd2_simde.o ksw2_exts2_simde.o ksw2_ll_simde.o
|
6
|
+
PROG= minimap2
|
7
|
+
PROG_EXTRA= sdust minimap2-lite
|
8
|
+
LIBS= -lm -lz -lpthread
|
9
|
+
|
10
|
+
|
11
|
+
ifneq ($(arm_neon),) # if arm_neon is defined
|
12
|
+
ifeq ($(aarch64),) #if aarch64 is not defined
|
13
|
+
CFLAGS+=-D_FILE_OFFSET_BITS=64 -mfpu=neon -fsigned-char
|
14
|
+
else #if aarch64 is defined
|
15
|
+
CFLAGS+=-D_FILE_OFFSET_BITS=64 -fsigned-char
|
16
|
+
endif
|
17
|
+
endif
|
18
|
+
|
19
|
+
ifneq ($(asan),)
|
20
|
+
CFLAGS+=-fsanitize=address
|
21
|
+
LIBS+=-fsanitize=address
|
22
|
+
endif
|
23
|
+
|
24
|
+
ifneq ($(tsan),)
|
25
|
+
CFLAGS+=-fsanitize=thread
|
26
|
+
LIBS+=-fsanitize=thread
|
27
|
+
endif
|
28
|
+
|
29
|
+
.PHONY:all extra clean depend
|
30
|
+
.SUFFIXES:.c .o
|
31
|
+
|
32
|
+
.c.o:
|
33
|
+
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $< -o $@
|
34
|
+
|
35
|
+
all:$(PROG)
|
36
|
+
|
37
|
+
extra:all $(PROG_EXTRA)
|
38
|
+
|
39
|
+
minimap2:main.o libminimap2.a
|
40
|
+
$(CC) $(CFLAGS) main.o -o $@ -L. -lminimap2 $(LIBS)
|
41
|
+
|
42
|
+
minimap2-lite:example.o libminimap2.a
|
43
|
+
$(CC) $(CFLAGS) $< -o $@ -L. -lminimap2 $(LIBS)
|
44
|
+
|
45
|
+
libminimap2.a:$(OBJS)
|
46
|
+
$(AR) -csru $@ $(OBJS)
|
47
|
+
|
48
|
+
sdust:sdust.c kalloc.o kalloc.h kdq.h kvec.h kseq.h ketopt.h sdust.h
|
49
|
+
$(CC) -D_SDUST_MAIN $(CFLAGS) $< kalloc.o -o $@ -lz
|
50
|
+
|
51
|
+
ksw2_ll_simde.o:ksw2_ll_sse.c ksw2.h kalloc.h
|
52
|
+
$(CC) -c $(CFLAGS) -msse2 $(CPPFLAGS) $(INCLUDES) $< -o $@
|
53
|
+
|
54
|
+
ksw2_extz2_simde.o:ksw2_extz2_sse.c ksw2.h kalloc.h
|
55
|
+
$(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
|
56
|
+
|
57
|
+
ksw2_extd2_simde.o:ksw2_extd2_sse.c ksw2.h kalloc.h
|
58
|
+
$(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
|
59
|
+
|
60
|
+
ksw2_exts2_simde.o:ksw2_exts2_sse.c ksw2.h kalloc.h
|
61
|
+
$(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
|
62
|
+
|
63
|
+
# other non-file targets
|
64
|
+
|
65
|
+
clean:
|
66
|
+
rm -fr gmon.out *.o a.out $(PROG) $(PROG_EXTRA) *~ *.a *.dSYM build dist mappy*.so mappy.c python/mappy.c mappy.egg*
|
67
|
+
|
68
|
+
depend:
|
69
|
+
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(CPPFLAGS) -- *.c)
|
70
|
+
|
71
|
+
# DO NOT DELETE
|
72
|
+
|
73
|
+
align.o: minimap.h mmpriv.h bseq.h kseq.h ksw2.h kalloc.h
|
74
|
+
bseq.o: bseq.h kvec.h kalloc.h kseq.h
|
75
|
+
chain.o: minimap.h mmpriv.h bseq.h kseq.h kalloc.h
|
76
|
+
esterr.o: mmpriv.h minimap.h bseq.h kseq.h
|
77
|
+
example.o: minimap.h kseq.h
|
78
|
+
format.o: kalloc.h mmpriv.h minimap.h bseq.h kseq.h
|
79
|
+
hit.o: mmpriv.h minimap.h bseq.h kseq.h kalloc.h khash.h
|
80
|
+
index.o: kthread.h bseq.h minimap.h mmpriv.h kseq.h kvec.h kalloc.h khash.h
|
81
|
+
index.o: ksort.h
|
82
|
+
kalloc.o: kalloc.h
|
83
|
+
ksw2_extd2_sse.o: ksw2.h kalloc.h
|
84
|
+
ksw2_exts2_sse.o: ksw2.h kalloc.h
|
85
|
+
ksw2_extz2_sse.o: ksw2.h kalloc.h
|
86
|
+
ksw2_ll_sse.o: ksw2.h kalloc.h
|
87
|
+
kthread.o: kthread.h
|
88
|
+
main.o: bseq.h minimap.h mmpriv.h kseq.h ketopt.h
|
89
|
+
map.o: kthread.h kvec.h kalloc.h sdust.h mmpriv.h minimap.h bseq.h kseq.h
|
90
|
+
map.o: khash.h ksort.h
|
91
|
+
misc.o: mmpriv.h minimap.h bseq.h kseq.h ksort.h
|
92
|
+
options.o: mmpriv.h minimap.h bseq.h kseq.h
|
93
|
+
pe.o: mmpriv.h minimap.h bseq.h kseq.h kvec.h kalloc.h ksort.h
|
94
|
+
sdust.o: kalloc.h kdq.h kvec.h sdust.h
|
95
|
+
self-chain.o: minimap.h kseq.h
|
96
|
+
sketch.o: kvec.h kalloc.h mmpriv.h minimap.h bseq.h kseq.h
|
97
|
+
splitidx.o: mmpriv.h minimap.h bseq.h kseq.h
|