-
Notifications
You must be signed in to change notification settings - Fork 9
/
duphold.nimble
45 lines (31 loc) · 1.25 KB
/
duphold.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import ospaths
template thisModuleFile: string = instantiationInfo(fullPaths = true).filename
when fileExists(thisModuleFile.parentDir / "src/duphold.nim"):
# In the git repository the Nimble sources are in a ``src`` directory.
import src/dupholdpkg/version as _
else:
# When the package is installed, the ``src`` directory disappears.
import dupholdpkg/version as _
# Package
version = dupholdVersion
author = "Brent Pedersen"
description = "find depth support for DUP/DEL/CNV calls that use PE/SR"
license = "MIT"
# Dependencies
requires "hts >= 0.3.8", "genoiser >= 0.2.7", "docopt >= 0.6.8"
srcDir = "src"
installExt = @["nim"]
bin = @["duphold"]
skipDirs = @["tests"]
import ospaths,strutils
task test, "run the tests":
exec "nim c --lineDir:on --debuginfo -r --threads:on tests/all"
#before test:
# exec "c2nim src/hts/private/hts_concat.h"
task docs, "Builds documentation":
mkDir("docs"/"duphold")
#exec "nim doc2 --verbosity:0 --hints:off -o:docs/index.html src/hts.nim"
for file in listfiles("src/duphold"):
if file.endswith("value.nim"): continue
if splitfile(file).ext == ".nim":
exec "nim doc2 --verbosity:0 --hints:off -o:" & "docs" /../ file.changefileext("html").split("/", 1)[1] & " " & file