Skip to content

Commit 9cf5b1d

Browse files
committed
Merge branch 'rel-1.4.0' into release
# Conflicts: # .github/workflows/build-containers.yml # modules/local/browser_aux/main.nf # modules/local/cache_builder/main.nf # modules/local/cath_tools/assign_cath_superfamilies/main.nf # modules/local/darwin_extract/main.nf # modules/local/domains/main.nf # modules/local/edgehog/main.nf # modules/local/fastoma_extract/main.nf # modules/local/fingerprints/main.nf # modules/local/go_import/main.nf # modules/local/h5_combine/main.nf # modules/local/hdf5import/main.nf # modules/local/hogprofile/main.nf # modules/local/hogprop/main.nf # modules/local/keywords/main.nf # modules/local/xref_fetch/main.nf # nextflow.config
2 parents 7ffb5d6 + 5ad195a commit 9cf5b1d

File tree

37 files changed

+777
-712
lines changed

37 files changed

+777
-712
lines changed

.github/workflows/build-omadarwin-container.yml renamed to .github/workflows/build-containers.yml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
name: build omadarwin container and publish it to ghcr and dockerhub
1+
name: build containers and publish it to ghcr and dockerhub
22

33
on:
44
push:
55

66
jobs:
7-
docker:
7+
build:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
include:
12+
- name: omabuild
13+
context: containers/oma
14+
platforms: linux/amd64,linux/arm64
15+
- name: omadarwin
16+
context: containers/darwin
17+
platforms: linux/amd64,linux/arm64
18+
- name: omabuild-rdf-py
19+
context: containers/rdf/biosoda_py
20+
platforms: linux/amd64,linux/arm64
21+
- name: omabuild-rdf-java
22+
context: containers/rdf/biosoda_java
23+
platforms: linux/amd64,linux/arm64
924
steps:
1025
- name: checkout repo
1126
uses: actions/checkout@v4
@@ -15,8 +30,8 @@ jobs:
1530
uses: docker/metadata-action@v5
1631
with:
1732
images: |
18-
dessimozlab/omadarwin
19-
ghcr.io/dessimozlab/omadarwin
33+
dessimozlab/${{ matrix.name }}
34+
ghcr.io/dessimozlab/${{ matrix.name }}
2035
tags: |
2136
type=schedule
2237
type=ref,event=branch
@@ -25,7 +40,6 @@ jobs:
2540
type=semver,pattern={{major}}.{{minor}}
2641
type=edge
2742
28-
2943
- name: Set up QEMU
3044
uses: docker/setup-qemu-action@v3
3145

@@ -47,14 +61,31 @@ jobs:
4761
username: ${{ github.repository_owner }}
4862
password: ${{ secrets.GITHUB_TOKEN }}
4963

50-
- name: Build darwin-based build container
64+
- name: Build ${{ matrix.name }} container
5165
uses: docker/build-push-action@v6
5266
with:
53-
context: containers/darwin
54-
platforms: linux/amd64,linux/arm64
67+
context: ${{ matrix.context }}
68+
platforms: ${{ matrix.platforms }}
5569
push: ${{ github.event_name != 'pull_request' }}
5670
tags: ${{ steps.meta.outputs.tags }}
5771
labels: ${{ steps.meta.outputs.labels }}
5872
secrets: |
5973
"labgit=${{ secrets.LABGIT }}"
6074
75+
run-nextflow:
76+
name: run nextflow pipeline with testdata
77+
needs: build
78+
runs-on: ubuntu-latest
79+
80+
steps:
81+
- name: Checkout repo
82+
uses: actions/checkout@v4
83+
84+
- name: Install Nextflow
85+
run: |
86+
curl -s https://get.nextflow.io | bash
87+
chmod +x nextflow
88+
mv nextflow /usr/local/bin/
89+
90+
- name: Run Nextflow pipeline
91+
run: nextflow run main.nf -profile docker,test

.github/workflows/build-omabuild-container.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/run-pipeline-with-testdata.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

assets/NO_FILE2

Whitespace-only changes.

config/base.config

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,38 @@ process {
7070

7171
withName: '.*:BUILD_HOG_H5'{
7272
cpus = { 1 }
73-
memory = { 500.MB + 6.B * orthoxml.size() * task.attempt }
73+
memory = { 500.MB + 500.B * orthoxml.size() * (2*task.attempt-1) }
7474
time = { 1.min * (Math.ceil( meta.nr_of_genomes / 3 ) + 10) * task.attempt }
7575
}
76+
77+
withName: ".*:ADD_PAIRWISE_ORTHOLOGS" {
78+
cpus = { meta.nr_of_genomes < 10 ? 2 : (meta.nr_of_genomes < 30 ? 4 : (meta.nr_of_genomes < 300 ? 6 : 12)) }
79+
memory = { 3.GB + 10.B * (meta.max_nr_seqs_in_genome * meta.nr_of_genomes * 10 as Long) * task.attempt }
80+
time = { 1.min * (Math.ceil( meta.nr_of_genomes / 2 ) + 10) * task.attempt }
81+
}
82+
83+
withName: "CONVERT_PROTEINS" {
84+
cpus = { 1 }
85+
memory = { (400.MB + 12.B * dbpath.size()) * task.attempt }
86+
time = { (5.min + 1.sec * (genome.TotEntries as Long)/100) * task.attempt }
87+
}
88+
89+
withName: "INFER_FINGERPRINTS" {
90+
cpus = { 1 }
91+
memory = { (800.MB + meta.nr_of_amino_acids * 2.B) * task.attempt }
92+
time = { (10.min + Math.ceil(meta.nr_of_sequences / 100) * 1.sec) * (2 * task.attempt - 1)}
93+
}
94+
95+
withName: "INFER_KEYWORDS" {
96+
cpus = { 1 }
97+
memory = { (800.MB + meta.nr_of_sequences * 500.B) * task.attempt }
98+
time = { (10.min + Math.ceil(meta.nr_of_sequences / 500) * 1.sec) * (2 * task.attempt - 1)}
99+
}
100+
101+
withName: "HMMER_HMMSEARCH" {
102+
cpus = { 4 }
103+
memory = { 1.GB * (2*task.attempt-1) }
104+
time = { 2.h * (2*task.attempt-1) }
105+
}
106+
76107
}

config/test.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ params {
3030
hog_orthoxml = "${projectDir}/testdata/fastoma/FastOMA_HOGs.orthoxml"
3131
genomes_dir = "${projectDir}/testdata/fastoma/proteome"
3232
taxonomy_sqlite_path = "${projectDir}/testdata/taxonomy.sqlite"
33+
pfam_names_path = "${projectDir}/testdata/Pfam-A.clans.stub.tsv.gz"
3334
xref_refseq = "${projectDir}/assets/NO_FILE"
3435
go_gaf = "${projectDir}/testdata/fastoma/*.goa"
3536
}

containers/oma/Pipfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
omahdf5tordf = {git = "git+${LABGIT}/biosoda"}
8-
omamer = "*"
97
edgehog = "*"
108
hogprop = {git = "git+${LABGIT}/hogprop2"}
119
#branch = "nf-convert",

0 commit comments

Comments
 (0)