| 1 | PROG = stupidcount exhaustive |
| 2 | INCLUDE = -I.. -I../../libutil -I../../libbio -I../../libmeryl |
| 3 | LIBS = -L.. -L../../libutil -L../../libbio -L../../libmeryl -lmeryl -lbio -lutil -lm |
| 4 | |
| 5 | MERSIZE = 26 |
| 6 | |
| 7 | include ../../Make.compilers |
| 8 | |
| 9 | all: $(PROG) test-reduce |
| 10 | |
| 11 | stupidcount: stupidcount.C |
| 12 | $(CXX) $(CXXFLAGS_COMPILE) -c -o stupidcount.o stupidcount.C $(INCLUDE) |
| 13 | $(CXX) $(CXXLDFLAGS) -o stupidcount stupidcount.o $(LIBS) |
| 14 | |
| 15 | exhaustive: exhaustive.C kmerlite.H |
| 16 | $(CXX) $(CXXFLAGS_COMPILE) -c -o exhaustive.o exhaustive.C $(INCLUDE) |
| 17 | $(CXX) $(CXXLDFLAGS) -o exhaustive exhaustive.o $(LIBS) |
| 18 | |
| 19 | test-exhaustive: exhaustive ../meryl ../../leaff/leaff |
| 20 | ../../leaff/leaff -G 1000 10000 40000 > g.fasta |
| 21 | ../meryl -B -s g.fasta -o s -m $(MERSIZE) -threads 7 |
| 22 | ./exhaustive -m s -f g.fasta |
| 23 | |
| 24 | test-reduce: ../meryl |
| 25 | ../meryl -B -f -m 20 -s test-seq1.fasta -o 1 # Build the initial table |
| 26 | ../meryl -Dt -n 0 -s 1 > 2.reduce.fasta # Dump the initial table as fasta |
| 27 | ../meryl -B -f -m 20 -s 2.reduce.fasta -o 2 # Build a new table on the dumped fasta |
| 28 | ../meryl -M sub -s 1 -s 2 -o 3 # Remove one copy of each mer |
| 29 | ../meryl -Dt -n 1 -s 3 # Dump the resulting file |
| 30 | echo 1 10 9 1 is correct |
| 31 | touch test-reduce |
| 32 | |
| 33 | test: |
| 34 | ../meryl -B -s test-seq1.fasta -o t -m 20 |
| 35 | |
| 36 | clean: |
| 37 | rm -f $(PROG) *.o *.mc??? test-reduce *.seqStore* g.fasta 2.reduce.fasta *.fastaidx |