Compare commits
4 Commits
sumatra_v1
...
sumalib_v1
Author | SHA1 | Date | |
---|---|---|---|
ed56cb1d6b | |||
6373bc1c20 | |||
f9d0ac00aa | |||
a258d334b1 |
0
Licence_CeCILL_V2-en.txt
Normal file → Executable file
0
Licence_CeCILL_V2-en.txt
Normal file → Executable file
0
Licence_CeCILL_V2-fr.txt
Normal file → Executable file
0
Licence_CeCILL_V2-fr.txt
Normal file → Executable file
46
Makefile
Executable file
46
Makefile
Executable file
@ -0,0 +1,46 @@
|
||||
|
||||
SOURCES = libfasta/fasta_header_parser.c \
|
||||
libfasta/fasta_seq_writer.c \
|
||||
libfasta/fasta_header_handler.c \
|
||||
libfasta/header_mem_handler.c \
|
||||
libfasta/sequence.c \
|
||||
libfile/fileHandling.c \
|
||||
liblcs/sse_banded_LCS_alignment.c \
|
||||
liblcs/upperband.c \
|
||||
libutils/utilities.c \
|
||||
libutils/debug.c
|
||||
|
||||
SRCS=$(SOURCES)
|
||||
|
||||
OBJECTS= $(patsubst %.c,%.o,$(SOURCES))
|
||||
|
||||
LIBFILE = libsuma.a
|
||||
|
||||
RANLIB = ranlib
|
||||
|
||||
CC=gcc
|
||||
|
||||
LDFLAGS=
|
||||
|
||||
CFLAGS = -O3 -w
|
||||
|
||||
default: all
|
||||
|
||||
all: $(LIBFILE)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $< $(LIB)
|
||||
|
||||
libfasta/fasta_header_parser.c: libfasta/fasta_header_parser.l
|
||||
flex -Pheader_yy -t $< > $@
|
||||
|
||||
libfasta/dic_parser.c: libfasta/dic_parser.l
|
||||
lex -Phashtable_yy -t $< > $@
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECTS) $(LIBFILE)
|
||||
|
||||
$(LIBFILE): $(OBJECTS)
|
||||
ar -cr $@ $?
|
||||
$(RANLIB) $@
|
||||
|
10
global.mk
10
global.mk
@ -1,10 +0,0 @@
|
||||
|
||||
CC=gcc
|
||||
LDFLAGS=
|
||||
|
||||
CFLAGS = -O3 -w
|
||||
|
||||
default: all
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $< $(LIB)
|
BIN
libfasta/.DS_Store
vendored
BIN
libfasta/.DS_Store
vendored
Binary file not shown.
@ -1,33 +0,0 @@
|
||||
|
||||
SOURCES = fasta_header_parser.c \
|
||||
fasta_seq_writer.c \
|
||||
fasta_header_handler.c \
|
||||
header_mem_handler.c \
|
||||
sequence.c
|
||||
|
||||
SRCS=$(SOURCES)
|
||||
|
||||
|
||||
OBJECTS= $(patsubst %.c,%.o,$(SOURCES))
|
||||
|
||||
LIBFILE = libfasta.a
|
||||
RANLIB = ranlib
|
||||
|
||||
|
||||
include ../global.mk
|
||||
|
||||
all: $(LIBFILE)
|
||||
|
||||
fasta_header_parser.c: fasta_header_parser.l
|
||||
flex -Pheader_yy -t $< > $@
|
||||
|
||||
dic_parser.c: dic_parser.l
|
||||
lex -Phashtable_yy -t $< > $@
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECTS) $(LIBFILE)
|
||||
rm -f *.a
|
||||
|
||||
$(LIBFILE): $(OBJECTS)
|
||||
ar -cr $@ $?
|
||||
$(RANLIB) $@
|
0
libfasta/fasta_header_handler.c
Normal file → Executable file
0
libfasta/fasta_header_handler.c
Normal file → Executable file
0
libfasta/fasta_header_handler.h
Normal file → Executable file
0
libfasta/fasta_header_handler.h
Normal file → Executable file
0
libfasta/fasta_header_parser.c
Normal file → Executable file
0
libfasta/fasta_header_parser.c
Normal file → Executable file
0
libfasta/fasta_header_parser.h
Normal file → Executable file
0
libfasta/fasta_header_parser.h
Normal file → Executable file
0
libfasta/fasta_header_parser.l
Normal file → Executable file
0
libfasta/fasta_header_parser.l
Normal file → Executable file
0
libfasta/fasta_seq_writer.c
Normal file → Executable file
0
libfasta/fasta_seq_writer.c
Normal file → Executable file
0
libfasta/fasta_seq_writer.h
Normal file → Executable file
0
libfasta/fasta_seq_writer.h
Normal file → Executable file
0
libfasta/header_mem_handler.c
Normal file → Executable file
0
libfasta/header_mem_handler.c
Normal file → Executable file
0
libfasta/header_mem_handler.h
Normal file → Executable file
0
libfasta/header_mem_handler.h
Normal file → Executable file
0
libfasta/sequence.c
Normal file → Executable file
0
libfasta/sequence.c
Normal file → Executable file
0
libfasta/sequence.h
Normal file → Executable file
0
libfasta/sequence.h
Normal file → Executable file
BIN
libfile/.DS_Store
vendored
BIN
libfile/.DS_Store
vendored
Binary file not shown.
@ -1,25 +0,0 @@
|
||||
|
||||
SOURCES = fileHandling.c
|
||||
|
||||
|
||||
SRCS=$(SOURCES)
|
||||
|
||||
|
||||
OBJECTS= $(patsubst %.c,%.o,$(SOURCES))
|
||||
|
||||
LIBFILE= libfile.a
|
||||
RANLIB=ranlib
|
||||
|
||||
|
||||
include ../global.mk
|
||||
|
||||
all: $(LIBFILE)
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECTS) $(LIBFILE)
|
||||
rm -f *.P
|
||||
rm -f *.a
|
||||
|
||||
$(LIBFILE): $(OBJECTS)
|
||||
ar -cr $@ $?
|
||||
$(RANLIB) $@
|
0
libfile/fileHandling.c
Normal file → Executable file
0
libfile/fileHandling.c
Normal file → Executable file
0
libfile/fileHandling.h
Normal file → Executable file
0
libfile/fileHandling.h
Normal file → Executable file
BIN
liblcs/.DS_Store
vendored
BIN
liblcs/.DS_Store
vendored
Binary file not shown.
@ -1,25 +0,0 @@
|
||||
|
||||
SOURCES = sse_banded_LCS_alignment.c \
|
||||
upperband.c
|
||||
|
||||
SRCS=$(SOURCES)
|
||||
|
||||
|
||||
OBJECTS= $(patsubst %.c,%.o,$(SOURCES))
|
||||
|
||||
LIBFILE= liblcs.a
|
||||
RANLIB=ranlib
|
||||
|
||||
|
||||
include ../global.mk
|
||||
|
||||
all: $(LIBFILE)
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECTS) $(LIBFILE)
|
||||
rm -f *.P
|
||||
rm -f *.a
|
||||
|
||||
$(LIBFILE): $(OBJECTS)
|
||||
ar -cr $@ $?
|
||||
$(RANLIB) $@
|
0
liblcs/_lcs.ext.1.c
Normal file → Executable file
0
liblcs/_lcs.ext.1.c
Normal file → Executable file
0
liblcs/_lcs.ext.2.c
Normal file → Executable file
0
liblcs/_lcs.ext.2.c
Normal file → Executable file
0
liblcs/_lcs.ext.3.c
Normal file → Executable file
0
liblcs/_lcs.ext.3.c
Normal file → Executable file
0
liblcs/_lcs.h
Normal file → Executable file
0
liblcs/_lcs.h
Normal file → Executable file
0
liblcs/_lcs_fast.h
Normal file → Executable file
0
liblcs/_lcs_fast.h
Normal file → Executable file
0
liblcs/banded_LCS_alignment.c
Normal file → Executable file
0
liblcs/banded_LCS_alignment.c
Normal file → Executable file
0
liblcs/banded_LCS_alignment.h
Normal file → Executable file
0
liblcs/banded_LCS_alignment.h
Normal file → Executable file
3
liblcs/sse_banded_LCS_alignment.c
Normal file → Executable file
3
liblcs/sse_banded_LCS_alignment.c
Normal file → Executable file
@ -458,6 +458,9 @@ int calculateSizeToAllocate(int maxLen, int minLen, int LCSmin)
|
||||
|
||||
calculateBandLengths(maxLen, minLen, ¬Used, &size, LCSmin); // max size = max left band length * 2
|
||||
|
||||
if (!size) // Happens if there is no threshold (threshold is 100% similarity) and generates bugs if left to 0
|
||||
size = 1;
|
||||
|
||||
//fprintf(stderr, "\nsize for address before %8 = %d", size);
|
||||
|
||||
size*= 2;
|
||||
|
0
liblcs/sse_banded_LCS_alignment.h
Normal file → Executable file
0
liblcs/sse_banded_LCS_alignment.h
Normal file → Executable file
0
liblcs/upperband.c
Normal file → Executable file
0
liblcs/upperband.c
Normal file → Executable file
0
liblcs/upperband.h
Normal file → Executable file
0
liblcs/upperband.h
Normal file → Executable file
BIN
libsse/.DS_Store
vendored
BIN
libsse/.DS_Store
vendored
Binary file not shown.
0
libsse/_sse.h
Normal file → Executable file
0
libsse/_sse.h
Normal file → Executable file
BIN
libutils/.DS_Store
vendored
BIN
libutils/.DS_Store
vendored
Binary file not shown.
@ -1,25 +0,0 @@
|
||||
|
||||
SOURCES = utilities.c \
|
||||
debug.c
|
||||
|
||||
SRCS=$(SOURCES)
|
||||
|
||||
|
||||
OBJECTS= $(patsubst %.c,%.o,$(SOURCES))
|
||||
|
||||
LIBFILE= libutils.a
|
||||
RANLIB=ranlib
|
||||
|
||||
|
||||
include ../global.mk
|
||||
|
||||
all: $(LIBFILE)
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECTS) $(LIBFILE)
|
||||
rm -f *.P
|
||||
rm -f *.a
|
||||
|
||||
$(LIBFILE): $(OBJECTS)
|
||||
ar -cr $@ $?
|
||||
$(RANLIB) $@
|
0
libutils/debug.c
Normal file → Executable file
0
libutils/debug.c
Normal file → Executable file
0
libutils/debug.h
Normal file → Executable file
0
libutils/debug.h
Normal file → Executable file
0
libutils/utilities.c
Normal file → Executable file
0
libutils/utilities.c
Normal file → Executable file
0
libutils/utilities.h
Normal file → Executable file
0
libutils/utilities.h
Normal file → Executable file
Reference in New Issue
Block a user