Skip to content

Commit edfabcc

Browse files
authored
Merge pull request #6 from rki-mf1/CI-case-test
add CI case test using public SC2 data
2 parents d1bd25d + 15de6dc commit edfabcc

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ jobs:
4444
make -C lib/htslib
4545
make
4646
47+
- name: Run amplisim on public Sars-Cov-2 data
48+
run: |
49+
mkdir testdata && cd testdata
50+
wget https://raw.githubusercontent.com/artic-network/primer-schemes/master/nCoV-2019/V5.3.2/SARS-CoV-2.primer.bed
51+
wget https://www.ebi.ac.uk/ena/browser/api/fasta/MN908947.3
52+
sed 's/>ENA|MN908947|MN908947.3 Severe acute respiratory syndrome coronavirus 2 isolate Wuhan-Hu-1, complete genome./>MN908947.3/g' MN908947.3 > MN908947.3.fasta
53+
cd ..
54+
./amplisim -s 479 -o testdata/amplicons.fasta testdata/MN908947.3.fasta testdata/SARS-CoV-2.primer.bed
55+
56+
- name: Verify md5sum (macOS)
57+
if: runner.os == 'macOS'
58+
run: |
59+
brew install coreutils
60+
md5sum testdata/amplicons.fasta | md5sum -c test/sarscov2_s479.macos.md5

src/argparser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313

1414
const char *argp_program_version = VERSION; // defined in Makefile
15-
const char *argp_program_bug_address = "";
16-
static char doc[] = "amplisim -- a program to simulate amplicon sequencing data";
15+
const char *argp_program_bug_address = "https://github.com/rki-mf1/amplisim/issues";
16+
static char doc[] = "amplisim -- a program to simulate amplicon sequences from a reference genome";
1717
static char args_doc[] = "REFERENCE PRIMERS";
1818

1919
static struct argp_option options[] = {

test/sarscov2_s479.macos.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3ce2bb236e611f5d5e569d68b631bd81 testdata/amplicons.fasta

0 commit comments

Comments
 (0)