-
Notifications
You must be signed in to change notification settings - Fork 17
152 lines (125 loc) · 4.76 KB
/
main.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: GitHub Actions CI
on:
push:
branches: [ master, develop]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
########################################################################################
make:
name: Make
strategy:
fail-fast: false
matrix:
machine: [ubuntu-latest, macOS-12]
runs-on: ['${{ matrix.machine }}']
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: make
run: |
g++ --version
make -j CXX=g++-11
- name: tar artifacts
run: tar -cvf kmer-db.tar ./kmer-db ./test/virus
- uses: actions/upload-artifact@v2
with:
name: executable-artifact-${{ matrix.machine }}
path: ./kmer-db.tar
########################################################################################
virus:
needs: make
name: Virus data
strategy:
fail-fast: false
matrix:
machine: [ubuntu-latest, macOS-12]
runs-on: ['${{ matrix.machine }}']
env:
INPUT_DIR: ./test/virus
steps:
- uses: actions/download-artifact@v2
with:
name: executable-artifact-${{ matrix.machine }}
path: ./
- name: untar artifacts
run: |
tar -xf kmer-db.tar
- name: build
run: |
./kmer-db build ${INPUT_DIR}/seqs.part1.list k18.parts.db
- name: new2all
run: |
./kmer-db new2all k18.parts.db ${INPUT_DIR}/seqs.part2.list k18.n2a.csv
cmp k18.n2a.csv ${INPUT_DIR}/k18.n2a.csv
- name: new2all (sparse)
run: |
./kmer-db new2all -sparse k18.parts.db ${INPUT_DIR}/seqs.part2.list k18.n2a.sparse.csv
cmp k18.n2a.sparse.csv ${INPUT_DIR}/k18.n2a.sparse.csv
- name: extend
run: |
./kmer-db build -extend -k 25 ${INPUT_DIR}/seqs.part2.list k18.parts.db
- name: all2all
run: |
./kmer-db all2all k18.parts.db k18.csv
cmp k18.csv ${INPUT_DIR}/k18.csv
- name: all2all (sparse)
run: |
./kmer-db all2all -sparse k18.parts.db k18.sparse.csv
cmp k18.sparse.csv ${INPUT_DIR}/k18.sparse.csv
- name: distance
run: |
./kmer-db distance jaccard min max cosine mash k18.csv
cmp k18.csv.jaccard ${INPUT_DIR}/k18.csv.jaccard
cmp k18.csv.min ${INPUT_DIR}/k18.csv.min
cmp k18.csv.max ${INPUT_DIR}/k18.csv.max
cmp k18.csv.cosine ${INPUT_DIR}/k18.csv.cosine
cmp k18.csv.mash ${INPUT_DIR}/k18.csv.mash
- name: build (default k) + all2all
run: |
./kmer-db build ${INPUT_DIR}/seqs.list k18.db
./kmer-db all2all k18.db k18.csv
cmp k18.csv ${INPUT_DIR}/k18.csv
- name: build (default k, multifasta) + all2all
run: |
./kmer-db build -multisample-fasta ${INPUT_DIR}/multi.list k18.multi.db
./kmer-db all2all k18.multi.db k18.multi.csv
cmp k18.multi.csv ${INPUT_DIR}/k18.csv
- name: build (default k, 2 x multifasta) + all2all
run: |
./kmer-db build -multisample-fasta ${INPUT_DIR}/multi.split.list k18.multi.split.db
./kmer-db all2all k18.multi.split.db k18.multi.split.csv
cmp k18.multi.split.csv ${INPUT_DIR}/k18.csv
- name: build (default k) + extend + all2all
run: |
./kmer-db build ${INPUT_DIR}/seqs.part1.list k18.parts.db
./kmer-db build -extend -k 25 ${INPUT_DIR}/seqs.part2.list k18.parts.db
./kmer-db all2all k18.parts.db k18.parts.csv
cmp k18.parts.csv ${INPUT_DIR}/k18.csv
- name: build (default k, fraction 0.1) + all2all
run: |
./kmer-db build -f 0.1 ${INPUT_DIR}/seqs.list k18.frac.db
./kmer-db all2all k18.frac.db k18.frac.csv
cmp k18.frac.csv ${INPUT_DIR}/k18.frac.csv
- name: minhash (default k, fraction 0.1) + build + all2all
run: |
./kmer-db minhash -f 0.1 ${INPUT_DIR}/seqs.list
./kmer-db build -from-minhash -k 25 ${INPUT_DIR}/seqs.list k18.minhash.db
./kmer-db all2all k18.minhash.db k18.minhash.csv
cmp k18.minhash.csv ${INPUT_DIR}/k18.frac.csv
- name: build (k=24) + all2all
run: |
./kmer-db build -k 24 ${INPUT_DIR}/seqs.list k24.db
./kmer-db all2all k24.db k24.csv
cmp k24.csv ${INPUT_DIR}/k24.csv
- name: build (k=25, f=0.1) + one2all
run: |
./kmer-db build -k 25 -f 0.1 ${INPUT_DIR}/seqs.part1.list k25.db
./kmer-db one2all k25.db ${INPUT_DIR}/data/MT159713 MT159713.csv
cmp MT159713.csv ${INPUT_DIR}/MT159713.csv
- name: new2all (against itself)
run: |
./kmer-db new2all k18.db ${INPUT_DIR}/seqs.list k18.n2a.itself.csv
cmp k18.n2a.itself.csv ${INPUT_DIR}/k18.n2a.itself.csv