Skip to content

Commit 563f3b8

Browse files
committed
Merge branch 'master' into Haploflow-test1
2 parents c049704 + dd4ef97 commit 563f3b8

28 files changed

+2177
-664
lines changed

.github/workflows/build-and-test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Test MiCall
22
on: push
33
jobs:
44
main:
5-
runs-on: ubuntu-20.04
5+
runs-on: ubuntu-22.04
66
steps:
77
- uses: actions/checkout@v2
88
- name: Set up Python
@@ -67,7 +67,7 @@ jobs:
6767
codecov
6868
6969
docker-test:
70-
runs-on: ubuntu-20.04
70+
runs-on: ubuntu-22.04
7171
steps:
7272
- uses: actions/checkout@v2
7373
- name: Build docker image
@@ -76,11 +76,13 @@ jobs:
7676
run: docker run micall --help
7777
- name: Check docker image entrypoint
7878
run: docker run micall --help | grep -i -e 'docker'
79+
- name: Install python packages
80+
run: pip install multicsv
7981
- name: Check docker image microtest
8082
run: python micall/main.py release_test_microtest micall --docker
8183

8284
singularity-test:
83-
runs-on: ubuntu-20.04
85+
runs-on: ubuntu-22.04
8486
steps:
8587
- uses: actions/checkout@v2
8688

@@ -121,6 +123,9 @@ jobs:
121123
- name: Singularity build
122124
run: sudo singularity build micall.simg Singularity
123125

126+
- name: Install python packages
127+
run: pip install multicsv
128+
124129
- name: Singularity test
125130
run: python micall/main.py release_test_microtest micall.simg
126131

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RUN apt-get install -y build-essential sudo git ronn cmake && \
6767

6868
## Install dependencies for genetracks/drawsvg
6969
RUN apt-get install -q -y libcairo2-dev
70-
RUN pip install --upgrade pip
70+
RUN pip install --upgrade pip setuptools
7171

7272
## Install just the dependencies of MiCall (for faster build times in development).
7373
COPY pyproject.toml README.md /opt/micall/

Singularity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ From: python:3.11
7474
# Install dependencies for genetracks/drawsvg
7575
apt-get install -q -y libcairo2-dev
7676
# Install micall main executable.
77-
pip install --upgrade pip
77+
pip install --upgrade pip setuptools
7878
pip install /opt/micall[denovo]
7979
micall make_blast_db
8080
# Also trigger matplotlib to build its font cache.

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.jekyll*

docs/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
FROM debian:12
3+
4+
ARG DEBIAN_FRONTEND=noninteractive
5+
6+
RUN apt-get update -qq
7+
8+
RUN apt-get install -y ruby ruby-dev
9+
RUN apt-get install -y build-essential
10+
11+
RUN gem install bundler
12+
13+
WORKDIR /docs
14+
15+
COPY ./Gemfile* .
16+
17+
RUN bundle install
18+
19+
EXPOSE 80
20+
21+
COPY . .
22+
23+
ENTRYPOINT ["bundle", "exec", "jekyll", "serve", "--incremental", "--livereload", "--host", "0.0.0.0", "--port", "80"]

docs/Gemfile.lock

Lines changed: 48 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.1.3.2)
4+
activesupport (7.2.2.1)
55
base64
6+
benchmark (>= 0.3)
67
bigdecimal
7-
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
concurrent-ruby (~> 1.0, >= 1.3.1)
89
connection_pool (>= 2.2.5)
910
drb
1011
i18n (>= 1.6, < 2)
12+
logger (>= 1.4.2)
1113
minitest (>= 5.1)
12-
mutex_m
13-
tzinfo (~> 2.0)
14+
securerandom (>= 0.3)
15+
tzinfo (~> 2.0, >= 2.0.5)
1416
addressable (2.8.7)
1517
public_suffix (>= 2.0.2, < 7.0)
1618
base64 (0.2.0)
17-
bigdecimal (3.1.6)
19+
benchmark (0.4.0)
20+
bigdecimal (3.1.9)
1821
coffee-script (2.4.1)
1922
coffee-script-source
2023
execjs
2124
coffee-script-source (1.12.2)
2225
colorator (1.1.0)
23-
commonmarker (0.23.10)
24-
concurrent-ruby (1.3.4)
25-
connection_pool (2.4.1)
26-
csv (3.3.0)
27-
dnsruby (1.71.0)
26+
commonmarker (0.23.11)
27+
concurrent-ruby (1.3.5)
28+
connection_pool (2.5.0)
29+
csv (3.3.2)
30+
dnsruby (1.72.3)
31+
base64 (~> 0.2.0)
2832
simpleidn (~> 0.2.1)
2933
drb (2.2.1)
3034
em-websocket (0.5.3)
@@ -33,12 +37,16 @@ GEM
3337
ethon (0.16.0)
3438
ffi (>= 1.15.0)
3539
eventmachine (1.2.7)
36-
execjs (2.9.1)
37-
faraday (2.9.0)
38-
faraday-net_http (>= 2.0, < 3.2)
39-
faraday-net_http (3.1.0)
40-
net-http
41-
ffi (1.17.0)
40+
execjs (2.10.0)
41+
faraday (2.12.2)
42+
faraday-net_http (>= 2.0, < 3.5)
43+
json
44+
logger
45+
faraday-net_http (3.4.0)
46+
net-http (>= 0.5.0)
47+
ffi (1.17.1)
48+
ffi (1.17.1-arm64-darwin)
49+
ffi (1.17.1-x86_64-darwin)
4250
forwardable-extended (2.6.0)
4351
gemoji (4.1.0)
4452
github-pages (232)
@@ -97,7 +105,7 @@ GEM
97105
activesupport (>= 2)
98106
nokogiri (>= 1.4)
99107
http_parser.rb (0.8.0)
100-
i18n (1.14.6)
108+
i18n (1.14.7)
101109
concurrent-ruby (~> 1.0)
102110
jekyll (3.10.0)
103111
addressable (~> 2.4)
@@ -209,6 +217,7 @@ GEM
209217
gemoji (>= 3, < 5)
210218
html-pipeline (~> 2.2)
211219
jekyll (>= 3.0, < 5.0)
220+
json (2.9.1)
212221
kramdown (2.4.0)
213222
rexml
214223
kramdown-parser-gfm (1.1.0)
@@ -217,32 +226,38 @@ GEM
217226
listen (3.9.0)
218227
rb-fsevent (~> 0.10, >= 0.10.3)
219228
rb-inotify (~> 0.9, >= 0.9.10)
229+
logger (1.6.5)
220230
mercenary (0.3.6)
221-
mini_portile2 (2.8.6)
231+
mini_portile2 (2.8.8)
222232
minima (2.5.1)
223233
jekyll (>= 3.5, < 5.0)
224234
jekyll-feed (~> 0.9)
225235
jekyll-seo-tag (~> 2.1)
226-
minitest (5.22.2)
227-
mutex_m (0.2.0)
228-
net-http (0.4.1)
236+
minitest (5.25.4)
237+
net-http (0.6.0)
229238
uri
230-
nokogiri (1.16.5)
239+
nokogiri (1.18.8)
231240
mini_portile2 (~> 2.8.2)
232241
racc (~> 1.4)
242+
nokogiri (1.18.8-arm64-darwin)
243+
racc (~> 1.4)
244+
nokogiri (1.18.8-x86_64-darwin)
245+
racc (~> 1.4)
246+
nokogiri (1.18.8-x86_64-linux-gnu)
247+
racc (~> 1.4)
233248
octokit (4.25.1)
234249
faraday (>= 1, < 3)
235250
sawyer (~> 0.9)
236251
pathutil (0.16.2)
237252
forwardable-extended (~> 2.6)
238253
public_suffix (5.1.1)
239-
racc (1.7.3)
254+
racc (1.8.1)
240255
rb-fsevent (0.11.2)
241256
rb-inotify (0.11.1)
242257
ffi (~> 1.0)
243-
rexml (3.3.9)
258+
rexml (3.4.0)
244259
rouge (3.30.0)
245-
rubyzip (2.3.2)
260+
rubyzip (2.4.1)
246261
safe_yaml (1.0.5)
247262
sass (3.7.4)
248263
sass-listen (~> 4.0.0)
@@ -252,27 +267,27 @@ GEM
252267
sawyer (0.9.2)
253268
addressable (>= 2.3.5)
254269
faraday (>= 0.17.3, < 3)
255-
simpleidn (0.2.1)
256-
unf (~> 0.1.4)
270+
securerandom (0.4.1)
271+
simpleidn (0.2.3)
257272
terminal-table (1.8.0)
258273
unicode-display_width (~> 1.1, >= 1.1.1)
259274
typhoeus (1.4.1)
260275
ethon (>= 0.9.0)
261276
tzinfo (2.0.6)
262277
concurrent-ruby (~> 1.0)
263-
unf (0.1.4)
264-
unf_ext
265-
unf_ext (0.0.9.1)
266278
unicode-display_width (1.8.0)
267-
uri (0.13.0)
268-
webrick (1.8.2)
279+
uri (1.0.3)
280+
webrick (1.9.1)
269281

270282
PLATFORMS
283+
arm64-darwin
271284
ruby
285+
x86_64-darwin
286+
x86_64-linux
272287

273288
DEPENDENCIES
274289
github-pages
275290
jekyll
276291

277292
BUNDLED WITH
278-
2.1.4
293+
2.6.3

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
remote_theme: chrisrhymes/[email protected]
22
title: MiCall
3+
repository: cfe-lab/MiCall

docs/_data/navigation.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
- name: Getting Started
2-
link: /getting_started.html
31
- name: Admin
42
link: /admin.html
53
- name: Steps and Files
64
link: /steps.html
75
dropdown:
6+
- name: Overview
7+
link: /steps.html
88
- name: G2P
99
link: /design/fastq_g2p.html
1010
- name: Remap
@@ -17,7 +17,11 @@
1717
link: /design/resistance.html
1818
- name: Genome Coverage
1919
link: /genome_coverage.html
20+
- name: Local Analysis
21+
link: /local_analysis.html
2022
- name: MiCall at BC CfE
2123
link: /micall_at_bccfe.html
24+
- name: Contributing
25+
link: /contrib.html
2226
- name: GitHub
2327
link: https://github.com/cfe-lab/MiCall

CONTRIBUTING.md renamed to docs/contrib.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Contributing to the MiCall Project
1+
---
2+
title: Contributing to the MiCall Project
3+
---
24

35
If you like this project and want to make it better, help out. You could report
46
a bug, or pitch in with some development work.
@@ -116,31 +118,26 @@ If you want to understand the de novo assembly process, read through the
116118
[assembly page]: https://cfe-lab.github.io/MiCall/design/assembly.html
117119

118120
### GitHub Web Site
121+
119122
Most of the time, you can change the web site content just by editing the
120123
markdown files in the `docs` folder. However, you may occasionally need to dig
121124
into the page templates or do more serious work. If that happens, you can test
122125
out the web site locally before publishing it.
123126

124-
1. Install Ruby 2.6, preferably with [Ruby Version Manager].
125-
126-
```shell
127-
rvm install 2.6
128-
rvm use 2.6
129-
```
130-
131-
2. Install the gems for the web site.
132-
133-
```shell
134-
cd MiCall/docs
135-
gem install bundler
136-
bundle install
137-
```
138-
139-
3. Serve the web site.
140-
141-
```shell
142-
bundle exec jekyll serve
143-
```
127+
```shell
128+
# Enter MiCall's docs directory.
129+
cd docs/
130+
# Build and run the documentation website.
131+
docker build --tag micall-documentation .
132+
docker run \
133+
--volume .:/docs \
134+
--publish 4000:80 \
135+
--rm \
136+
--name micall-documentation \
137+
--interactive --tty \
138+
micall-documentation
139+
# Goto http://localhost:4000
140+
```
144141

145142
What changes might you want to make? The web site is based on the
146143
[Bulma Clean Theme], so read through the documentation there to see if it

0 commit comments

Comments
 (0)