-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Create "make test" | ||
.PHONY: testshpec testshunit2 test clean build | ||
|
||
BIN=./bin | ||
SOURCE=./src | ||
NIM_PATHS= --colors:on --noNimblePath --path:/local/giovanni/bamtocov/nimbledeps/pkgs/hts-0.3.17 --path:/local/giovanni/bamtocov/nimbledeps/pkgs/docopt-0.6.8 --path:/local/giovanni/bamtocov/nimbledeps/pkgs/regex-0.19.0 --path:/local/giovanni/bamtocov/nimbledeps/pkgs/unicodedb-0.9.0 --path:/local/giovanni/bamtocov/nimbledeps/pkgs/lapper-0.1.7 | ||
VERSION := $(shell grep version bamtocov.nimble | grep -o "[0-9]\\+\.[0-9]\.[0-9]\\+") | ||
LIST=$(BIN)/bamtocov $(BIN)/bamtoreads $(BIN)/bamtocounts $(BIN)/covtotarget $(BIN)/bamcountrefs $(BIN)/gff2bed $(BIN)/bamtocounts_legacy $(BIN)/bamtarget | ||
|
||
$(BIN)/%: $(SOURCE)/%.nim $(SOURCE)/covutils.nim bamtocov.nimble | ||
nim c $(NIM_PATHS) -d:NimblePkgVersion=$(VERSION) -d:release --opt:speed --out:$@ $< | ||
|
||
all: $(LIST) | ||
|
||
|
||
test: testshpec | ||
|
||
testall: testbash testshpec testshunit2 | ||
testshpec: | ||
@echo " --- Test shpec --- " | ||
./tests/bin/shpec ./tests/shpec/bamtocov.sh | ||
|
||
testshunit2: | ||
@echo " --- Test shunit2 --- " | ||
./tests/unit/bamtocov-base.sh | ||
|
||
testbash: | ||
@echo " --- Test (legacy) --- " | ||
bash tests/all.sh | ||
|
||
|
||
build: | ||
nimble build | ||
|
||
|
||
clean: | ||
@echo "Cleaning..." | ||
@for i in $(LIST); \ | ||
do \ | ||
if [ -e "$$i" ]; then rm -f $$i; echo "Removing $$i"; else echo "$$i Not found"; fi \ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
# nim c -a -d:static -d:release | ||
|
||
-d:danger | ||
-d:release | ||
--opt:speed | ||
@if static: | ||
passC:"-static" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
fixedStep chrom=seq1 span=250 | ||
0 5 | ||
250 6 | ||
500 1 | ||
750 0 | ||
5 | ||
6 | ||
1 | ||
0 | ||
fixedStep chrom=seq2 span=250 | ||
0 0 | ||
250 10 | ||
500 10 | ||
750 0 | ||
0 | ||
10 | ||
10 | ||
0 | ||
fixedStep chrom=seq0 span=250 | ||
0 0 | ||
250 0 | ||
500 0 | ||
750 0 | ||
0 | ||
0 | ||
0 | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters