mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 03:28:17 +00:00
acb1a12a56
* Re-organise all test data * Fix ECLint * Fix ECLint agaaainn * Now is not the time EClint
31 lines
1.7 KiB
Text
31 lines
1.7 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { SALMON_INDEX } from '../../../../software/salmon/index/main.nf' addParams( options: [:] )
|
|
include { SALMON_QUANT } from '../../../../software/salmon/quant/main.nf' addParams( options: [args: '--minAssignedFrags 1'] )
|
|
|
|
workflow test_salmon_quant_single_end {
|
|
input = [ [ id:'test', single_end:true ], // meta map
|
|
file("${launchDir}/tests/data/genomics/sarscov2/illumina/fastq/test_1.fastq.gz", checkIfExists: true)
|
|
]
|
|
genome = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.fasta", checkIfExists: true)
|
|
transcriptome = file("${launchDir}/tests/data/genomics/sarscov2/genome/transcriptome.fasta", checkIfExists: true)
|
|
gtf = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.gtf", checkIfExists: true)
|
|
|
|
SALMON_INDEX ( genome, transcriptome )
|
|
SALMON_QUANT ( input, SALMON_INDEX.out.index, gtf, transcriptome, false )
|
|
}
|
|
|
|
workflow test_salmon_quant_paired_end {
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
[ file("${launchDir}/tests/data/genomics/sarscov2/illumina/fastq/test_1.fastq.gz", checkIfExists: true),
|
|
file("${launchDir}/tests/data/genomics/sarscov2/illumina/fastq/test_2.fastq.gz", checkIfExists: true) ]
|
|
]
|
|
genome = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.fasta", checkIfExists: true)
|
|
transcriptome = file("${launchDir}/tests/data/genomics/sarscov2/genome/transcriptome.fasta", checkIfExists: true)
|
|
gtf = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.gtf", checkIfExists: true)
|
|
|
|
SALMON_INDEX ( genome, transcriptome )
|
|
SALMON_QUANT ( input, SALMON_INDEX.out.index, gtf, transcriptome, false )
|
|
}
|