Skip to content

Commit

Permalink
added test folder, improved compatility in makefile and fixed missing…
Browse files Browse the repository at this point in the history
… library
  • Loading branch information
estebanpw committed Sep 28, 2020
1 parent 4573098 commit 6a43366
Show file tree
Hide file tree
Showing 11 changed files with 36,946 additions and 5 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@ USAGE:
* -diffuse Integer: z>0 (default 4) Use 4 for everything - if using large plant genomes you can try using 1
* -dimension Size of the output matrix and plot. Integer: d>0 (default 1000) Use 1000 for everything that is not full genome size, where 2000 is recommended

## Test data

You can test CHROMEISTER with the two mycoplasma sequences provided in the 'test-data' folder. You can do so by running the following commands (from within the test-data folder):

```../bin/CHROMEISTER -query mycoplasma-232.fasta -db mycoplasma-7422.fasta -out mycoplasma-232-7422.mat -dimension 500```
```Rscript ../bin/compute_score.R mycoplasma-232-7422.mat 500```

Note: in this example we used size 500 since the two sequences are quite small.

## Help

Expand Down
Binary file modified bin/CHROMEISTER
Binary file not shown.
7 changes: 2 additions & 5 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
CC=gcc
CXX=g++
CFLAGS=-O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Wall #-DVERBOSE
CFLAGS+=-O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Wall #-DVERBOSE
BIN=../bin

all: CHROMEISTER



CHROMEISTER: CHROMEISTER.c
$(CC) $(CFLAGS) alignmentFunctions.c -lm commonFunctions.c -lm CHROMEISTER.c -lm -o $(BIN)/CHROMEISTER
gcc $(CFLAGS) alignmentFunctions.c -lm commonFunctions.c -lpthread -lm CHROMEISTER.c -lm -o $(BIN)/CHROMEISTER

clean:
rm -rf $(BIN)/CHROMEISTER
1 change: 1 addition & 0 deletions src/commonFunctions.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#ifndef COMMON_FUNCTIONS_H
#define COMMON_FUNCTIONS_H
#include <pthread.h>
#include "structs.h"
/**
* Print the error message 's' and exit(-1)
Expand Down
Loading

0 comments on commit 6a43366

Please sign in to comment.