mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Module bedtools-merge added
This commit is contained in:
parent
708cee9cae
commit
cf9d87c977
8 changed files with 84 additions and 0 deletions
7
software/bedtools/merge/Dockerfile
Normal file
7
software/bedtools/merge/Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
FROM nfcore/base
|
||||
LABEL authors="Jose Espinosa-Carrasco" \
|
||||
description="Docker image containing all requirements for nf-core/modules/bedtools/complementbed"
|
||||
|
||||
COPY environment.yml /
|
||||
RUN conda env create -f /environment.yml && conda clean -a
|
||||
ENV PATH /opt/conda/envs/nf-core-bedtools-merge/bin:$PATH
|
9
software/bedtools/merge/environment.yml
Normal file
9
software/bedtools/merge/environment.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
# You can use this file to create a conda environment for this pipeline:
|
||||
# conda env create -f environment.yml
|
||||
name: nf-core-bedtools-merge
|
||||
channels:
|
||||
- conda-forge
|
||||
- bioconda
|
||||
- defaults
|
||||
dependencies:
|
||||
- bioconda::bedtools=2.29.2
|
17
software/bedtools/merge/main.nf
Normal file
17
software/bedtools/merge/main.nf
Normal file
|
@ -0,0 +1,17 @@
|
|||
process BEDTOOLS_MERGE {
|
||||
tag { input_file }
|
||||
|
||||
container 'quay.io/biocontainers/bedtools:2.29.2--hc088bd4_0'
|
||||
|
||||
input:
|
||||
path (input_file)
|
||||
val (bedtools_merge_args)
|
||||
|
||||
output:
|
||||
stdout()
|
||||
|
||||
script:
|
||||
"""
|
||||
bedtools merge -i ${input_file} ${bedtools_merge_args}
|
||||
"""
|
||||
}
|
26
software/bedtools/merge/meta.yml
Normal file
26
software/bedtools/merge/meta.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: bedtools merge
|
||||
description: Combines overlapping genome features of a single file
|
||||
keywords:
|
||||
- merge
|
||||
tools:
|
||||
- bedtools:
|
||||
description: |
|
||||
Bedtools is a software package that provides with a toolset to perform genome arithmetic operations.
|
||||
homepage: https://bedtools.readthedocs.io/en/latest/index.html
|
||||
documentation: https://bedtools.readthedocs.io/en/latest/index.html
|
||||
doi: 10.093/bioinformatics/btq033
|
||||
input:
|
||||
-
|
||||
- input_file:
|
||||
type: file
|
||||
description: Input genomic coordinates file
|
||||
pattern: "*.{bed,gff,vcf,bam}"
|
||||
|
||||
output:
|
||||
-
|
||||
- index:
|
||||
type: stdout,file
|
||||
description:
|
||||
pattern: "stdout,*.{bed}"
|
||||
authors:
|
||||
- "@JoseEspinosa"
|
5
software/bedtools/merge/test/input_data/A.bed
Normal file
5
software/bedtools/merge/test/input_data/A.bed
Normal file
|
@ -0,0 +1,5 @@
|
|||
chr1 951 1061
|
||||
chr1 1300 1420
|
||||
chr1 1400 1500
|
||||
|
||||
|
Binary file not shown.
18
software/bedtools/merge/test/main.nf
Normal file
18
software/bedtools/merge/test/main.nf
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.preview.dsl = 2
|
||||
|
||||
params.bedtools_merge_args = '' //''-s -c 6 -o distinct'
|
||||
|
||||
include check_output from '../../../../tests/functions/check_process_outputs.nf' // params(params)
|
||||
include BEDTOOLS_MERGE from '../main.nf' params(params)
|
||||
|
||||
// Define input channels
|
||||
ch_input = Channel.fromPath('../../test_data_set/A.bed')
|
||||
//ch_input = Channel.fromPath('./input_data/JK2067_downsampled_s0.1.bam')
|
||||
|
||||
// Run the workflow
|
||||
workflow {
|
||||
BEDTOOLS_MERGE(ch_input, params.bedtools_merge_args)
|
||||
// .check_output()
|
||||
}
|
2
software/bedtools/merge/test/nextflow.config
Normal file
2
software/bedtools/merge/test/nextflow.config
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker.enabled = true
|
||||
params.outdir = './results'
|
Loading…
Reference in a new issue