mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
tests: add haplocheck tests
This commit is contained in:
parent
86343cb034
commit
c1ed4e21be
4 changed files with 42 additions and 4 deletions
|
@ -895,6 +895,10 @@ hamronization/summarize:
|
|||
- modules/hamronization/summarize/**
|
||||
- tests/modules/hamronization/summarize/**
|
||||
|
||||
haplocheck:
|
||||
- modules/haplocheck/**
|
||||
- tests/modules/haplocheck/**
|
||||
|
||||
happy/happy:
|
||||
- modules/happy/happy/**
|
||||
- tests/modules/happy/happy/**
|
||||
|
@ -1643,14 +1647,14 @@ samtools/bam2fq:
|
|||
- modules/samtools/bam2fq/**
|
||||
- tests/modules/samtools/bam2fq/**
|
||||
|
||||
samtools/convert:
|
||||
- modules/samtools/convert/**
|
||||
- tests/modules/samtools/convert/**
|
||||
|
||||
samtools/collatefastq:
|
||||
- modules/samtools/collatefastq/**
|
||||
- tests/modules/samtools/collatefastq/**
|
||||
|
||||
samtools/convert:
|
||||
- modules/samtools/convert/**
|
||||
- tests/modules/samtools/convert/**
|
||||
|
||||
samtools/depth:
|
||||
- modules/samtools/depth/**
|
||||
- tests/modules/samtools/depth/**
|
||||
|
|
16
tests/modules/haplocheck/main.nf
Normal file
16
tests/modules/haplocheck/main.nf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { HAPLOCHECK } from '../../../modules/haplocheck/main.nf'
|
||||
|
||||
workflow test_haplocheck {
|
||||
|
||||
input = [
|
||||
[ id:'test' ], // meta map
|
||||
// TODO: change to "params.test_data[]"
|
||||
file("https://github.com/nf-core/test-datasets/raw/5101234ce48c3eb08adeed922e30a6e57e4fe5fb/testdata/NA12878_chrM.vcf.gz", checkIfExists: true)
|
||||
]
|
||||
|
||||
HAPLOCHECK ( input )
|
||||
}
|
5
tests/modules/haplocheck/nextflow.config
Normal file
5
tests/modules/haplocheck/nextflow.config
Normal file
|
@ -0,0 +1,5 @@
|
|||
process {
|
||||
|
||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||
|
||||
}
|
13
tests/modules/haplocheck/test.yml
Normal file
13
tests/modules/haplocheck/test.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
## TODO nf-core: Please run the following command to build this file:
|
||||
# nf-core modules create-test-yml haplocheck
|
||||
- name: "haplocheck"
|
||||
command: nextflow run ./tests/modules/haplocheck -entry test_haplocheck -c ./tests/config/nextflow.config -c ./tests/modules/haplocheck/nextflow.config
|
||||
tags:
|
||||
- "haplocheck"
|
||||
files:
|
||||
- path: "output/haplocheck/test.html"
|
||||
md5sum: 59d69052c86edff0301816956eaf4d5f
|
||||
- path: output/haplocheck/test.raw.txt
|
||||
md5sum: 69f4e5b28a59b97fc19eb8e8b650d9d5
|
||||
- path: output/haplocheck/versions.yml
|
||||
md5sum: 94e2fa3ceb3946487319f92cea08c942
|
Loading…
Reference in a new issue