File tree Expand file tree Collapse file tree 3 files changed +23
-14
lines changed Expand file tree Collapse file tree 3 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ process TRUST4 {
11
11
tuple val(meta), path(bam), path(reads)
12
12
path(fasta)
13
13
path(vdj_reference)
14
+ path(barcode_whitelist)
14
15
val(cell_barcode_read)
15
16
val(umi_read)
16
- path(barcode_whitelist)
17
+ val(read_format)
18
+
17
19
18
20
output:
19
21
tuple val(meta), path(" *.tsv" ) , emit: tsv
@@ -40,7 +42,7 @@ process TRUST4 {
40
42
def (forward, reverse) = reads. collate(2 ). transpose()
41
43
def paired_end_mode = reads && (meta. single_end == false ) ? " -1 ${ forward[0]} -2 ${ reverse[0]} " : ' '
42
44
// read format is optional
43
- def readFormat = params . read_format ? " --readFormat ${ params. read_format} " : ' '
45
+ def readFormat = read_format ? " --readFormat ${ read_format} " : ' '
44
46
// barcodeWhitelist is optional
45
47
def barcodeWhitelist = barcode_whitelist ? " --barcodeWhitelist ${ barcode_whitelist} " : " "
46
48
// add barcode information if present
Original file line number Diff line number Diff line change @@ -34,15 +34,18 @@ input:
34
34
- - vdj_reference :
35
35
type : file
36
36
description : reference file of V/D/J genes
37
+ - - barcode_whitelist :
38
+ type : file
39
+ description : BarocdeWhitelist file
37
40
- - cell_barcode_read :
38
41
type : string
39
42
description : Read containing cell barcode (either R1 or R2)
40
43
- - umi_read :
41
44
type : string
42
45
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.
46
49
output :
47
50
- tsv :
48
51
- meta :
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ nextflow_process {
20
20
])
21
21
input[1] = [file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/transcriptome.fasta', checkIfExists: true)] // fasta
22
22
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
+
26
28
"""
27
29
}
28
30
}
@@ -60,9 +62,10 @@ nextflow_process {
60
62
])
61
63
input[1] = [file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/transcriptome.fasta', checkIfExists: true)] // fasta
62
64
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
66
69
"""
67
70
}
68
71
}
@@ -101,9 +104,10 @@ nextflow_process {
101
104
])
102
105
input[1] = [file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/transcriptome.fasta', checkIfExists: true)]
103
106
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
107
111
"""
108
112
}
109
113
}
You can’t perform that action at this time.
0 commit comments