| 1 |
# |
| 2 |
# Makefie for ParsInsert |
| 3 |
# |
| 4 |
# ParsInsert efficiently produces both a phylogenetic tree and taxonomic classification |
| 5 |
# for sequences for microbial community sequence analysis. |
| 6 |
# |
| 7 |
# This is a C++ implementation of the Parsimonious Insertion algorithm. |
| 8 |
# |
| 9 |
PROGRAM = ParsInsert |
| 10 |
OBJECTS = AttrList.o Knox_Stddef.o PNode.o SeqList.o Taxonomy.o ParsInsert.o |
| 11 |
|
| 12 |
CFLAGS = -g -O3 |
| 13 |
CC = g++ |
| 14 |
INCLUDES = |
| 15 |
LIBS = -lm -lc |
| 16 |
|
| 17 |
.SUFFIXES: .o .cpp |
| 18 |
|
| 19 |
.cpp.o: |
| 20 |
$(CC) $(CFLAGS) -c -o $@ $< |
| 21 |
|
| 22 |
all: $(PROGRAM) |
| 23 |
|
| 24 |
clean: |
| 25 |
rm -f $(PROGRAM) $(OBJECTS) *.fasta *.log *.results *.tree |
| 26 |
|
| 27 |
TEST_OBJECTS = PNode.o AttrList.o Knox_Stddef.o Test.o |
| 28 |
test: $(TEST_OBJECTS) |
| 29 |
$(CC) $(CFLAG) -o Test $(TEST_OBJECTS) $(LIBS) |
| 30 |
|
| 31 |
Knox_Stddef.o: Knox_Stddef.cpp Knox_Stddef.h |
| 32 |
|
| 33 |
$(PROGRAM): $(OBJECTS) |
| 34 |
$(CC) $(CFLAG) -o $(PROGRAM) $(OBJECTS) $(LIBS) |
| 35 |
|
| 36 |
TEST_DIR = ./TestData |
| 37 |
test_short = short1000_NAST |
| 38 |
test_set = set1000 |
| 39 |
|
| 40 |
TAXONOMY = $(TEST_DIR)/rdp.taxonomy |
| 41 |
TREE = $(TEST_DIR)/core_rdp.ntree |
| 42 |
TREE_SEQ = $(TEST_DIR)/core_rdp.fasta |
| 43 |
|
| 44 |
# create compressed version of the release |
| 45 |
RELEASE_VER = 1.04 |
| 46 |
RELEASE: |
| 47 |
tar -czf ../ParsInsert.$(RELEASE_VER).tgz * |
| 48 |
|
| 49 |
# use simple scoring function (-d0), threshold cutoff at 80% (-c80), only display best location (-n1) |
| 50 |
test_options = -d0 -c80 -n1 |
| 51 |
|
| 52 |
TEST: $(PROGRAM) |
| 53 |
rm -f $(test_set).fasta |
| 54 |
cp TestData/$(test_set).fasta . |
| 55 |
./$(PROGRAM) $(test_options) \ |
| 56 |
-m $(TEST_DIR)/lanemask.txt\ |
| 57 |
-x $(TAXONOMY) \ |
| 58 |
-l $(test_set).log \ |
| 59 |
-o $(test_set).results \ |
| 60 |
-t $(TREE) \ |
| 61 |
-s $(TREE_SEQ) \ |
| 62 |
$(test_set).fasta |
| 63 |
diff $(test_set).results TestData/$(test_set).results |
| 64 |
echo Differences: |
| 65 |
diff $(test_set).results TestData/$(test_set).results | wc -l |
| 66 |
|