-
Notifications
You must be signed in to change notification settings - Fork 6
108 lines (101 loc) · 3.66 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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
tags: keggcharter:latest
outputs: type=docker,dest=/tmp/keggcharter.tar
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: keggcharter
path: /tmp/keggcharter.tar
show-available-maps:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: keggcharter
path: /tmp
- name: Load Docker image
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Show available maps
run: docker run keggcharter /bin/bash -c "keggcharter --show-available-maps"
run-keggcharter:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: keggcharter
path: /tmp
- name: Load Docker image
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter
run: docker run keggcharter /bin/bash -c "keggcharter -f KEGGCharter/cicd/keggcharter_input.tsv -rd resources_directory -keggc 'KEGG' -koc 'KO' -ecc 'EC number' -cogc 'COG ID' -qcol MP1,MP2,MP3,MP4 -tc 'Taxonomic lineage (SPECIES)' -mm 00680"
input-quantification-and-taxonomy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: keggcharter
path: /tmp
- name: Load Docker image
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter with "input-quantification" and "input-taxonomy" parameters
run: docker run keggcharter /bin/bash -c "keggcharter -f KEGGCharter/cicd/keggcharter_input.tsv -rd resources_directory -keggc 'KEGG' -koc 'KO' -ecc 'EC number' -cogc 'COG ID' -iq -it 'My community' -mm 00680"
include-missing-genomes:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: keggcharter
path: /tmp
- name: Load Docker image
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter with "include-missing-genomes" parameter
run: docker run keggcharter /bin/bash -c "keggcharter -f KEGGCharter/cicd/keggcharter_input.tsv -rd resources_directory -keggc 'KEGG' -koc 'KO' -ecc 'EC number' -cogc 'COG ID' -qcol MP1,MP2,MP3,MP4 -tc 'Taxonomic lineage (SPECIES)' -mm 00680 --include-missing-genomes"
map-all:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: keggcharter
path: /tmp
- name: Load Docker image
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter with "map-all" parameter
run: docker run keggcharter /bin/bash -c "keggcharter -f KEGGCharter/cicd/keggcharter_input.tsv -rd resources_directory -keggc 'KEGG' -koc 'KO' -ecc 'EC number' -cogc 'COG ID' -qcol MP1,MP2,MP3,MP4 -tc 'Taxonomic lineage (SPECIES)' -mm 00680 --map-all"