Skip to content

Commit 9d4494c

Browse files
committed
Merge branch 'dev'
2 parents 5d9d0f4 + 1328bc7 commit 9d4494c

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN pip install --upgrade hatch pip
1919
COPY pyproject.toml .
2020
RUN python -m venv /app \
2121
&& hatch dep show requirements --all > requirements.txt \
22+
&& /app/bin/pip install wheel setuptools \
2223
&& /app/bin/pip install -r requirements.txt
2324

2425
COPY . .

FastOMA.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ process extract_pairwise_ortholog_relations {
446446
process fastoma_report {
447447
publishDir params.output_folder, mode: 'copy'
448448
input:
449+
path notebook
449450
path orthoxml
450451
path proteome_folder
451452
path species_tree_checked
@@ -461,7 +462,7 @@ process fastoma_report {
461462
>&2 echo "Ensure you have installed fastoma with the 'report' feature\n (e.g. pip install fastoma[report])"
462463
exit 1
463464
fi
464-
papermill ${workflow.projectDir}/FastOMA/fastoma_notebook_stat.ipynb \
465+
papermill $notebook \
465466
report.ipynb \
466467
-p output_folder "./" \
467468
-p proteome_folder "$proteome_folder"
@@ -479,6 +480,7 @@ workflow {
479480
hogmap_in = Channel.fromPath(params.hogmap_in, type:'dir')
480481

481482
omamerdb = Channel.fromPath(params.omamer_db)
483+
notebook = Channel.fromPath("$workflow.projectDir/FastOMA/fastoma_notebook_stat.ipynb", type: "file", checkIfExists: true).first()
482484
(species_tree_checked, ready_input_check) = check_input(proteome_folder, hogmap_in, species_tree, omamerdb, splice_folder)
483485
omamer_input_channel = proteomes.combine(omamerdb).combine(hogmap_in).combine(ready_input_check)
484486
hogmap = omamer_run(omamer_input_channel)
@@ -498,7 +500,7 @@ workflow {
498500
FALSE: n>25
499501
}
500502
extract_pairwise_ortholog_relations(orthoxml_file, c.TRUE)
501-
fastoma_report(orthoxml_file, proteome_folder, species_tree_checked)
503+
fastoma_report(notebook, orthoxml_file, proteome_folder, species_tree_checked)
502504
}
503505

504506
workflow.onComplete {

nextflow.config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ manifest {
66
homePage = "https://omabrowser.org"
77
mainScript = "FastOMA.nf"
88
nextflowVersion = ">=22.10.4"
9+
defaultBranch = "main"
10+
doi = "10.1101/2024.01.29.577392"
11+
version = "0.3.1dev"
912
}
1013

1114
params {
1215
container_name = "dessimozlab/fastoma"
13-
container_version = "main"
16+
container_version = "dev"
1417
omamer_db = "https://omabrowser.org/All/LUCA.h5"
1518
debug_enabled = false
1619
help = false

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies = [
2020
"lxml >=4.6,<6",
2121
"omamer ~=2.0",
2222
"pyham ~=1.1",
23+
"numpy <2", # temporary fix as pytables does not yet work with numpy 2.0
2324
"pyparsing",
2425
"networkx",
2526
]

0 commit comments

Comments
 (0)