mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-03 04:52:09 -05:00
Get samtools flagstat passing
This commit is contained in:
parent
cf5cb8945c
commit
46e4d35ec3
4 changed files with 41 additions and 0 deletions
1
software/samtools/flagstat/test/input/test.paired_end.sorted.bam
Symbolic link
1
software/samtools/flagstat/test/input/test.paired_end.sorted.bam
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../tests/data/bam/test.paired_end.sorted.bam
|
|
@ -0,0 +1 @@
|
|||
../../../../../tests/data/bam/test.paired_end.sorted.bam.bai
|
19
software/samtools/flagstat/test/main.nf
Executable file
19
software/samtools/flagstat/test/main.nf
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { SAMTOOLS_FLAGSTAT } from '../main.nf'
|
||||
|
||||
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_FLAGSTAT ( input, [:] )
|
||||
}
|
||||
|
||||
workflow {
|
||||
test()
|
||||
}
|
20
software/samtools/flagstat/test/nextflow.config
Normal file
20
software/samtools/flagstat/test/nextflow.config
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
params {
|
||||
outdir = "output/"
|
||||
publish_dir_mode = "copy"
|
||||
conda = false
|
||||
}
|
||||
|
||||
profiles {
|
||||
conda {
|
||||
params.conda = true
|
||||
}
|
||||
docker {
|
||||
docker.enabled = true
|
||||
docker.runOptions = '-u \$(id -u):\$(id -g)'
|
||||
}
|
||||
singularity {
|
||||
singularity.enabled = true
|
||||
singularity.autoMounts = true
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue