Skip to content

Commit b392506

Browse files
update UniverSC module
unit tests and documentation
1 parent 34e67b1 commit b392506

File tree

3 files changed

+49
-10
lines changed

3 files changed

+49
-10
lines changed

tests/modules/universc/main.nf

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,32 @@
22

33
nextflow.enable.dsl = 2
44

5+
include { CELLRANGER_MKGTF } from '../../../../modules/cellranger/mkgtf/main.nf'
6+
include { CELLRANGER_MKREF } from '../../../../modules/cellranger/mkref/main.nf'
57
include { UNIVERSC } from '../../../modules/universc/main.nf'
68

7-
workflow test_universc {
9+
workflow test_universc_10x {
810

9-
input = [
10-
[ id:'test', single_end:false ], // meta map
11-
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true)
11+
input = [ [ id:'test', single_end:true, strandedness:'forward', gem: '123', samples: ["test_10x"] ], // meta map
12+
[ file(params.test_data['homo_sapiens']['illumina']['test_10x_1_fastq_gz'], checkIfExists: true),
13+
file(params.test_data['homo_sapiens']['illumina']['test_10x_2_fastq_gz'], checkIfExists: true)
14+
]
1215
]
1316

14-
UNIVERSC ( input )
17+
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
18+
gtf = file(params.test_data['homo_sapiens']['genome']['genome_gtf'], checkIfExists: true)
19+
reference_name = "homo_sapiens_chr22_reference"
20+
21+
CELLRANGER_MKGTF ( gtf )
22+
23+
CELLRANGER_MKREF (
24+
fasta,
25+
CELLRANGER_MKGTF.out.gtf,
26+
reference_name
27+
)
28+
29+
UNIVERSC (
30+
input
31+
CELLRANGER_MKREF.out.reference
32+
)
1533
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
process {
22

33
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
4+
5+
withName: UNIVERSC {
6+
ext.args = '--chemistry="SC3Pv3" --technology="10x"'
7+
}
48

5-
}
9+
}

tests/modules/universc/test.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1-
## TODO nf-core: Please run the following command to build this file:
1+
## nf-core: Please run the following command to build this file:
22
# nf-core modules create-test-yml universc
3-
- name: "universc"
4-
command: nextflow run ./tests/modules/universc -entry test_universc -c ./tests/config/nextflow.config -c ./tests/modules/universc/nextflow.config
3+
- name: universc test_universc_10x
4+
command: nextflow run tests/modules/universc -entry test_universc_10x -c tests/config/nextflow.config
55
tags:
66
- "universc"
7-
#
7+
- demultiplex
8+
- cell-ranger
9+
- single-cell
10+
- 10x
11+
- scRNA-Seq
12+
- umi
13+
- alignment
14+
- quant
15+
- RNA counts
16+
- UMI counts
17+
- RNA quantification
18+
- STAR
819
files:
20+
- path: output/main.nf
21+
md5sum: 216fbfe8b2f51de6e720c12043f95717
22+
- path: output/nextflow.config
23+
md5sum: a44614a3c6420d316d52ea711b7f1aa6
24+
- path: output/test.yml
25+
md5sum: afd1f8cf262db16cb2c710438aafb74e
926
- path: "output/universc/test.bam"
1027
md5sum: e667c7caad0bc4b7ac383fd023c654fc
1128
- path: output/universc/versions.yml

0 commit comments

Comments
 (0)