Skip to content

Commit c54fa2c

Browse files
committed
build updates
1 parent 260bec9 commit c54fa2c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ install:
1616
- conda install conda-build anaconda-client constructor
1717
- conda/template.py conda/meta.tpl $VERSION > conda/meta.yaml
1818
- conda build -c terhorst -c conda-forge -c bioconda conda
19-
- conda install --use-local smcpp
19+
- conda install --use-local -c terhorst -c bioconda -c conda-forge smcpp
2020
- echo `which smc++`
2121
- test/integration/test.sh `which smc++`
2222
- conda/template.py conda/construct.tpl $VERSION > conda/construct.yaml

conda/run_test.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash -x
2+
SMC=smc++
3+
set -e
4+
$SMC vcf2smc example/example.vcf.gz /tmp/example.1.smc.gz 1 msp1:msp_0,msp_1
5+
$SMC vcf2smc example/example.vcf.gz /tmp/example.2.smc.gz 1 msp2:msp_2
6+
$SMC vcf2smc example/example.vcf.gz /tmp/example.12.smc.gz 1 msp1:msp_0,msp_1 msp2:msp_2
7+
$SMC estimate -o /tmp/out/1 --theta .00025 --em-iterations 1 /tmp/example.1.smc.gz
8+
$SMC estimate -o /tmp/out/2 --theta .00025 --em-iterations 1 /tmp/example.2.smc.gz
9+
$SMC estimate -o /tmp/out/12 --theta .00025 --em-iterations 1 /tmp/example.12.smc.gz
10+
$SMC split -o /tmp/out/split --em-iterations 1 \
11+
/tmp/out/1/model.final.json \
12+
/tmp/out/2/model.final.json \
13+
/tmp/example.*.smc.gz
14+
$SMC plot -c -g 29 --logy /tmp/1.png /tmp/out/1/model.final.json
15+
$SMC plot /tmp/2.pdf /tmp/out/2/model.final.json
16+
$SMC plot -c --logy /tmp/12.png /tmp/out/12/model.final.json
17+
$SMC plot -c --logy /tmp/all.pdf /tmp/out/*/model.final.json

0 commit comments

Comments
 (0)