-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
45 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
image: atlassian/default-image:latest | ||
image: gavinband/ubuntu-14.04-build | ||
pipelines: | ||
default: | ||
- step: | ||
script: | ||
- wget http://www.well.ox.ac.uk/~gav/resources/qctool_v2.0.1-Ubuntu14.04-x86_64.tgz | ||
- tar -xzf qctool_v2.0.1-Ubuntu14.04-x86_64.tgz | ||
- cp qctool_v2.0.1-Ubuntu14.04-x86_64/qctool /usr/bin/ | ||
- qctool | ||
- apt-get install --assume-yes zlib1g-dev | ||
- apt-get install --assume-yes python-pip | ||
- python -m pip install robotframework | ||
- qctool -g example/example.16bits.bgen -og /tmp/x.vcf | ||
- ./waf configure | ||
- ./waf | ||
- cd test/functional | ||
- mkdir -p test-reports/-o | ||
|
||
- mkdir -p test-reports/ | ||
- pybot -o output.xml -l log.html -r report.html -d test-reports -x xunit.xml ./tests.txt | ||
|
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,38 @@ | ||
#!/bin/bash | ||
R="$1" | ||
RBGEN="${2}" | ||
if [[ ${R} == '' ]]; then | ||
R='R' | ||
fi | ||
if [[ ${RBGEN} == '' ]]; then | ||
RBGEN=build/R/rbgen | ||
fi | ||
|
||
${R} CMD INSTALL ${RBGEN} | ||
${R} --vanilla << HERE_DOC | ||
library( rbgen ) | ||
## Test we can load data | ||
D = bgen.load( "example/example.16bits.bgen", ranges = data.frame( chromosome = '01', start = 0, end = 100000 )) | ||
str( D ) | ||
head( D\$variants ) | ||
D\$data[1,1:10,1:3] | ||
## Test we can load data on a subset of samples | ||
samples = c( "sample_001", "sample_102", "sample_050", "sample_499" ) | ||
E = bgen.load( "example/example.16bits.bgen", ranges = data.frame( chromosome = '01', start = 0, end = 100000 ), samples = samples ) | ||
stopifnot( length( which( E\$data != D\$data[,samples,] ) ) == 0 ) | ||
stopifnot( length( which( D\$variants != E\$variants )) == 0 ) | ||
## Test we can load data for some specific rsid | ||
rsids = c( "RSID_10", "RSID_20", "RSID_171", "RSID_9" ) | ||
F = bgen.load( "example/example.16bits.bgen", rsids = rsids ) | ||
str( F ) | ||
head( F\$variants ) | ||
F\$data | ||
## Check we can load complex data | ||
D = bgen.load( "example/complex.bgen", data.frame( chromosome = '01', start = 0, end = 1000000 ), max_entries_per_sample = 50 ) | ||
str(D) | ||
HERE_DOC |
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