mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Bedtools intersect adapted to the current module standard
This commit is contained in:
parent
0b123f9e13
commit
98c8f44130
5 changed files with 18 additions and 9 deletions
|
@ -1,8 +1,21 @@
|
|||
def MODULE = "bedtools_intersect"
|
||||
params.publish_dir = MODULE
|
||||
params.publish_results = "default"
|
||||
|
||||
process INTERSECT_BED {
|
||||
tag "$input_file_1-$input_file_2"
|
||||
|
||||
publishDir "${params.out_dir}/${params.publish_dir}",
|
||||
mode: params.publish_dir_mode,
|
||||
saveAs: { filename ->
|
||||
if (params.publish_results == "none") null
|
||||
else filename }
|
||||
|
||||
//container "docker.pkg.github.com/nf-core/$MODULE"
|
||||
container 'quay.io/biocontainers/bedtools:2.29.2--hc088bd4_0'
|
||||
|
||||
conda "${moduleDir}/environment.yml"
|
||||
|
||||
input:
|
||||
path (input_file_1)
|
||||
path (input_file_2)
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
chr1 951 1061
|
||||
chr1 1300 1420
|
||||
chr1 1400 1500
|
||||
|
||||
|
1
software/bedtools/intersect/test/input_data/A.bed
Symbolic link
1
software/bedtools/intersect/test/input_data/A.bed
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../tests/data/bed/A.bed
|
|
@ -1 +0,0 @@
|
|||
chr1 999 1010
|
1
software/bedtools/intersect/test/input_data/B.bed
Symbolic link
1
software/bedtools/intersect/test/input_data/B.bed
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../tests/data/bed/B.bed
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
nextflow.preview.dsl = 2
|
||||
|
||||
params.out_dir = "test_output"
|
||||
params.fastqc_args = ''
|
||||
params.publish_dir_mode = "copy"
|
||||
params.intersect_args = '' //'-bed -c -f 0.20'
|
||||
|
||||
include check_output from '../../../../tests/functions/check_process_outputs.nf' // params(params)
|
||||
|
@ -14,5 +17,4 @@ ch_input_2 = Channel.fromPath('./input_data/B.bed')
|
|||
// Run the workflow
|
||||
workflow {
|
||||
INTERSECT_BED(ch_input_1, ch_input_2, params.intersect_args)
|
||||
// .check_output()
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
docker.enabled = true
|
||||
params.outdir = './results'
|
Loading…
Reference in a new issue