File tree Expand file tree Collapse file tree 4 files changed +140
-5
lines changed
subworkflows/local/numorph_preprocessing Expand file tree Collapse file tree 4 files changed +140
-5
lines changed Original file line number Diff line number Diff line change 11
2-
3-
4- include { NUMORPHINTENSITY } from ' ../../modules/local/numorphintensity/'
5- include { NUMORPHALIGN } from ' ../../modules/local/numorphalign/'
6- include { NUMORPHSTITCH } from ' ../../modules/local/numorphstitch/'
2+ include { NUMORPHINTENSITY } from ' ../../../modules/local/numorphintensity/'
3+ include { NUMORPHALIGN } from ' ../../../modules/local/numorphalign/'
4+ include { NUMORPHSTITCH } from ' ../../../modules/local/numorphstitch/'
75
86workflow NUMORPH_PREPROCESSING {
97
Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/subworkflows/yaml-schema.json
2+ name : " numorph_preprocessing"
3+ # # TODO nf-core: Add a description of the subworkflow and list keywords
4+ description : Sort SAM/BAM/CRAM file
5+ keywords :
6+ - sort
7+ - bam
8+ - sam
9+ - cram
10+ # # TODO nf-core: Add a list of the modules and/or subworkflows used in the subworkflow
11+ components :
12+ - samtools/sort
13+ - samtools/index
14+ # # TODO nf-core: List all of the channels used as input with a description and their structure
15+ input :
16+ - ch_bam :
17+ type : file
18+ description : |
19+ The input channel containing the BAM/CRAM/SAM files
20+ Structure: [ val(meta), path(bam) ]
21+ pattern : " *.{bam/cram/sam}"
22+ # # TODO nf-core: List all of the channels used as output with a descriptions and their structure
23+ output :
24+ - bam :
25+ type : file
26+ description : |
27+ Channel containing BAM files
28+ Structure: [ val(meta), path(bam) ]
29+ pattern : " *.bam"
30+ - bai :
31+ type : file
32+ description : |
33+ Channel containing indexed BAM (BAI) files
34+ Structure: [ val(meta), path(bai) ]
35+ pattern : " *.bai"
36+ - csi :
37+ type : file
38+ description : |
39+ Channel containing CSI files
40+ Structure: [ val(meta), path(csi) ]
41+ pattern : " *.csi"
42+ - versions :
43+ type : file
44+ description : |
45+ File containing software versions
46+ Structure: [ path(versions.yml) ]
47+ pattern : " versions.yml"
48+ authors :
49+ - " @CaroAMN"
50+ maintainers :
51+ - " @CaroAMN"
Original file line number Diff line number Diff line change 1+ nextflow_workflow {
2+
3+ name "Test Subworkflow NUMORPH_PREPROCESSING"
4+ script "../main.nf"
5+ workflow "NUMORPH_PREPROCESSING"
6+
7+ tag "subworkflows"
8+ tag "subworkflows_"
9+ tag "subworkflows/numorph_preprocessing"
10+ tag "numorph"
11+ tag "numorph preprocessing"
12+ tag "numorph intensity"
13+ tag "numorph align"
14+ tag "numorph stitch"
15+
16+
17+ test("Numorph Preprocessing") {
18+ options "-stub"
19+
20+ when {
21+ workflow {
22+ """
23+ input[0] = Channel.fromList([
24+ tuple([ id:'TEST1'],
25+ file('/home/schwitalla/Documents/test-datasets/test_data/images'),
26+ file('test-datasets/test_data/parameterfiles/params_TEST1_lsmquant.csv'))
27+ ])
28+ """
29+ }
30+ }
31+
32+ then {
33+ assertAll(
34+ { assert workflow.success},
35+ { assert snapshot(workflow.out).match()}
36+ )
37+ }
38+ }
39+ }
Original file line number Diff line number Diff line change 1+ {
2+ " Numorph Preprocessing" : {
3+ " content" : [
4+ {
5+ " 0" : [
6+ [
7+ {
8+ " id" : " TEST1"
9+ },
10+ " TEST1_stitched.tif:md5,d41d8cd98f00b204e9800998ecf8427e"
11+ ]
12+ ],
13+ " 1" : [
14+ " thresholds.mat:md5,d41d8cd98f00b204e9800998ecf8427e"
15+ ],
16+ " 2" : [
17+ " NM_variables.mat:md5,d41d8cd98f00b204e9800998ecf8427e"
18+ ],
19+ " 3" : [
20+
21+ ],
22+ " NM_variables" : [
23+ " NM_variables.mat:md5,d41d8cd98f00b204e9800998ecf8427e"
24+ ],
25+ " intensity_thresholds" : [
26+ " thresholds.mat:md5,d41d8cd98f00b204e9800998ecf8427e"
27+ ],
28+ " stitched" : [
29+ [
30+ {
31+ " id" : " TEST1"
32+ },
33+ " TEST1_stitched.tif:md5,d41d8cd98f00b204e9800998ecf8427e"
34+ ]
35+ ],
36+ " versions" : [
37+
38+ ]
39+ }
40+ ],
41+ " meta" : {
42+ " nf-test" : " 0.9.2" ,
43+ " nextflow" : " 24.10.4"
44+ },
45+ " timestamp" : " 2025-02-21T16:16:38.660022739"
46+ }
47+ }
You can’t perform that action at this time.
0 commit comments