Skip to content

Commit 4fa8dcc

Browse files
committed
read_format should be an input
1 parent ee7b6a0 commit 4fa8dcc

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

modules/nf-core/trust4/main.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ process TRUST4 {
1111
tuple val(meta), path(bam), path(reads)
1212
path(fasta)
1313
path(vdj_reference)
14+
path(barcode_whitelist)
1415
val(cell_barcode_read)
1516
val(umi_read)
16-
path(barcode_whitelist)
17+
val(read_format)
18+
1719

1820
output:
1921
tuple val(meta), path("*.tsv") , emit: tsv
@@ -40,7 +42,7 @@ process TRUST4 {
4042
def (forward, reverse) = reads.collate(2).transpose()
4143
def paired_end_mode = reads && (meta.single_end == false) ? "-1 ${forward[0]} -2 ${reverse[0]}" : ''
4244
// read format is optional
43-
def readFormat = params.read_format ? "--readFormat ${params.read_format}" : ''
45+
def readFormat = read_format ? "--readFormat ${read_format}" : ''
4446
// barcodeWhitelist is optional
4547
def barcodeWhitelist = barcode_whitelist ? "--barcodeWhitelist ${barcode_whitelist}" : ""
4648
// add barcode information if present

modules/nf-core/trust4/meta.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,18 @@ input:
3434
- - vdj_reference:
3535
type: file
3636
description: reference file of V/D/J genes
37+
- - barcode_whitelist:
38+
type: file
39+
description: BarocdeWhitelist file
3740
- - cell_barcode_read:
3841
type: string
3942
description: Read containing cell barcode (either R1 or R2)
4043
- - umi_read:
4144
type: string
4245
description: Read containing umi barcode (either R1 or R2)
43-
- - barcode_whitelist:
44-
type: file
45-
description: BarocdeWhitelist file
46+
- - read_format:
47+
type: string
48+
description: Specifies where in the read the barcodes and UMIs can be found.
4649
output:
4750
- tsv:
4851
- meta:

modules/nf-core/trust4/tests/main.nf.test

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ nextflow_process {
2020
])
2121
input[1] = [file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/transcriptome.fasta', checkIfExists: true)] // fasta
2222
input[2] = [] // ref
23-
input[3] = [] // barcode
24-
input[4] = [] // umi
25-
input[5] = [] // barcodeWhitelist
23+
input[3] = [] // barcodeWhitelist
24+
input[4] = [] // barcode
25+
input[5] = [] // umi
26+
input[6] = [] // read format
27+
2628
"""
2729
}
2830
}
@@ -60,9 +62,10 @@ nextflow_process {
6062
])
6163
input[1] = [file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/transcriptome.fasta', checkIfExists: true)] // fasta
6264
input[2] = [] // ref
63-
input[3] = [] // barcode
64-
input[4] = [] // umi
65-
input[5] = [] // barcodeWhitelist
65+
input[3] = [] // barcodeWhitelist
66+
input[4] = [] // barcode
67+
input[5] = [] // umi
68+
input[6] = [] // read format
6669
"""
6770
}
6871
}
@@ -101,9 +104,10 @@ nextflow_process {
101104
])
102105
input[1] = [file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/transcriptome.fasta', checkIfExists: true)]
103106
input[2] = [] // ref
104-
input[3] = [] // barcode
105-
input[4] = [] // umi
106-
input[5] = [] // barcodeWhitelist
107+
input[3] = [] // barcodeWhitelist
108+
input[4] = [] // barcode
109+
input[5] = [] // umi
110+
input[6] = [] // read format
107111
"""
108112
}
109113
}

0 commit comments

Comments
 (0)