Skip to content

Commit cf565f7

Browse files
author
desiree.schnidrig1
committed
Merge branch 'main' of https://github.com/ICGC-ARGO-Structural-Variation-CN-WG/wfpm-demo into sequenza-wf@0.2.0
2 parents eba917d + 5ff1aa7 commit cf565f7

5 files changed

Lines changed: 10 additions & 16 deletions

File tree

seqz-main/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ RUN apt-get update \
77
&& git clone https://github.com/aroneklund/copynumber.git \
88
&& /opt/conda/bin/R CMD INSTALL copynumber
99

10-
COPY *.R /scripts/
10+
ENV PATH="/tools:${PATH}"
1111

12-
USER sequenza
13-
WORKDIR /home/sequenza
12+
COPY runSequenza.R /tools/
13+
14+
ENTRYPOINT ["/usr/bin/env"]
1415

1516
CMD ["/bin/bash"]

seqz-main/main.nf

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/* this block is auto-generated based on info from pkg.json where */
3030
/* changes can be made if needed, do NOT modify this block manually */
3131
nextflow.enable.dsl = 2
32-
version = '0.2.0' // package version
32+
version = '0.3.0'
3333

3434
container = [
3535
'ghcr.io': 'ghcr.io/icgc-argo-structural-variation-cn-wg/wfpm-demo.seqz-main'
@@ -51,7 +51,6 @@ params.publish_dir = "output_dir/" // set to empty string will disable publishD
5151
// tool specific parmas go here, add / change as needed
5252
params.seqz = ""
5353
params.genome = 'hg38'
54-
params.runscript = "${baseDir}/scripts/runSequenza.R"
5554
params.output_pattern = "*_*" // output file name pattern are *.pdf|*.txt|*.RData
5655

5756

@@ -64,7 +63,6 @@ process seqzMain {
6463

6564
input: // input, make update as needed
6665
path seqz
67-
path runscript
6866

6967
output: // output, make update as needed
7068
path "${params.output_pattern}", emit: results
@@ -74,7 +72,7 @@ process seqzMain {
7472
// add and initialize variables here as needed
7573

7674
"""
77-
Rscript !{runscript} --seqz !{seqz} --genome !{params.genome}
75+
Rscript /tools/runSequenza.R --seqz !{seqz} --genome !{params.genome}
7876
"""
7977
}
8078

@@ -83,7 +81,6 @@ process seqzMain {
8381
// using this command: nextflow run <git_acc>/<repo>/<pkg_name>/<main_script>.nf -r <pkg_name>.v<pkg_version> --params-file xxx
8482
workflow {
8583
seqzMain(
86-
file(params.seqz),
87-
file(params.runscript)
84+
file(params.seqz)
8885
)
8986
}

seqz-main/pkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "seqz-main",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "run sequenza (the input for this package - *.seqz.gz - can be generated with the seqz-preprocess package)",
55
"main": "main.nf",
66
"deprecated": false,

seqz-main/tests/checker.nf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/* this block is auto-generated based on info from pkg.json where */
3535
/* changes can be made if needed, do NOT modify this block manually */
3636
nextflow.enable.dsl = 2
37-
version = '0.2.0' // package version
37+
version = '0.3.0'
3838

3939
container = [
4040
'ghcr.io': 'ghcr.io/icgc-argo-structural-variation-cn-wg/wfpm-demo.seqz-main'
@@ -49,7 +49,6 @@ params.container = ""
4949

5050
// tool specific parmas go here, add / change as needed
5151
params.seqz = ""
52-
params.runscript = ""
5352
params.expected_output = ""
5453

5554
include { seqzMain } from '../main'
@@ -76,13 +75,11 @@ process file_smart_diff {
7675
workflow checker {
7776
take:
7877
seqz
79-
runscript
8078
expected_output
8179

8280
main:
8381
seqzMain(
84-
seqz,
85-
runscript
82+
seqz
8683
)
8784

8885
file_smart_diff(
@@ -95,7 +92,6 @@ workflow checker {
9592
workflow {
9693
checker(
9794
file(params.seqz),
98-
file(params.runscript),
9995
file(params.expected_output)
10096
)
10197
}

0 commit comments

Comments
 (0)