mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
test(samtools): Refactor idxstats to use pytest-workflow
This commit is contained in:
parent
34d86427a6
commit
16cb794892
7 changed files with 20 additions and 43 deletions
|
@ -1 +0,0 @@
|
|||
../../../../../tests/data/bam/test.paired_end.sorted.bam
|
|
@ -1 +0,0 @@
|
|||
../../../../../tests/data/bam/test.paired_end.sorted.bam.bai
|
|
@ -1,19 +0,0 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { SAMTOOLS_IDXSTATS } from '../main.nf' addParams( options: [:] )
|
||||
|
||||
workflow test {
|
||||
|
||||
def input = []
|
||||
input = [ [ id:'test', single_end:false ], // meta map
|
||||
file("${baseDir}/input/test.paired_end.sorted.bam", checkIfExists: true),
|
||||
file("${baseDir}/input/test.paired_end.sorted.bam.bai", checkIfExists: true) ]
|
||||
|
||||
SAMTOOLS_IDXSTATS ( input )
|
||||
}
|
||||
|
||||
workflow {
|
||||
test()
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
|
||||
params {
|
||||
outdir = "output/"
|
||||
publish_dir_mode = "copy"
|
||||
enable_conda = false
|
||||
}
|
||||
|
||||
profiles {
|
||||
conda {
|
||||
params.enable_conda = true
|
||||
}
|
||||
docker {
|
||||
docker.enabled = true
|
||||
docker.runOptions = '-u \$(id -u):\$(id -g)'
|
||||
}
|
||||
singularity {
|
||||
singularity.enabled = true
|
||||
singularity.autoMounts = true
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
gi|170079663|ref|NC_010473.1| 4686137 20000 0
|
||||
* 0 0 0
|
|
@ -3,6 +3,7 @@
|
|||
nextflow.enable.dsl = 2
|
||||
|
||||
include { SAMTOOLS_FLAGSTAT } from '../../../software/samtools/flagstat/main.nf' addParams( options: [:] )
|
||||
include { SAMTOOLS_IDXSTATS } from '../../../software/samtools/idxstats/main.nf' addParams( options: [:] )
|
||||
|
||||
workflow test_samtools_flagstat {
|
||||
|
||||
|
@ -13,3 +14,13 @@ workflow test_samtools_flagstat {
|
|||
|
||||
SAMTOOLS_FLAGSTAT ( input )
|
||||
}
|
||||
|
||||
workflow test_samtools_idxstats {
|
||||
|
||||
def input = []
|
||||
input = [ [ id:'test', single_end:false ], // meta map
|
||||
file("${launchDir}/tests/data/bam/test.paired_end.sorted.bam", checkIfExists: true),
|
||||
file("${launchDir}/tests/data/bam/test.paired_end.sorted.bam.bai", checkIfExists: true) ]
|
||||
|
||||
SAMTOOLS_IDXSTATS ( input )
|
||||
}
|
||||
|
|
|
@ -6,3 +6,12 @@
|
|||
files:
|
||||
- path: output/samtools/test.paired_end.sorted.bam.flagstat
|
||||
md5sum: 80590621c74f5ee43ada20d010a3837f
|
||||
|
||||
- name: Run samtools idxstats test workflow
|
||||
command: nextflow run ./tests/software/samtools/ -profile docker -entry test_samtools_idxstats -c tests/config/nextflow.config
|
||||
tags:
|
||||
- samtools
|
||||
- samtools_idxstats
|
||||
files:
|
||||
- path: output/samtools/test.paired_end.sorted.bam.idxstats
|
||||
md5sum: 3bee8b7d55e412da2b3816c5a18d60d5
|
||||
|
|
Loading…
Reference in a new issue