mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
add gatk dict to create dictionnary from fasta file
This commit is contained in:
parent
a69aebd01b
commit
9db873c3bc
4 changed files with 59 additions and 0 deletions
19
tools/gatk/dict/main.nf
Normal file
19
tools/gatk/dict/main.nf
Normal file
|
@ -0,0 +1,19 @@
|
|||
process gatk_dict {
|
||||
tag {fasta}
|
||||
|
||||
container 'quay.io/biocontainers/gatk4-spark:4.1.4.1--1'
|
||||
|
||||
input:
|
||||
path(fasta)
|
||||
|
||||
output:
|
||||
path("${fasta.baseName}.dict")
|
||||
|
||||
script:
|
||||
"""
|
||||
gatk --java-options "-Xmx${task.memory.toGiga()}g" \
|
||||
CreateSequenceDictionary \
|
||||
--REFERENCE ${fasta} \
|
||||
--OUTPUT ${fasta.baseName}.dict
|
||||
"""
|
||||
}
|
25
tools/gatk/dict/meta.yml
Normal file
25
tools/gatk/dict/meta.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: gatk dict
|
||||
description: create a dictionary file from a fasta file
|
||||
keywords:
|
||||
- dictionary
|
||||
tools:
|
||||
- gatk:
|
||||
description: |
|
||||
The GATK toolkit offers a wide variety of tools with a primary focus on variant discovery and genotyping, developed in the Data Sciences Platform at the Broad Institute.
|
||||
homepage: https://gatk.broadinstitute.org/hc/en-us
|
||||
documentation: https://gatk.broadinstitute.org/hc/en-us/categories/360002369672s
|
||||
doi: 10.1158/1538-7445.AM2017-3590
|
||||
input:
|
||||
-
|
||||
- input:
|
||||
type: file
|
||||
description: Input fasta file
|
||||
pattern: *.{fasta,fa}
|
||||
output:
|
||||
-
|
||||
- dict:
|
||||
type: file
|
||||
description: gatk dictionary file
|
||||
pattern: *.{fasta,fa}.{dict}
|
||||
authors:
|
||||
- @maxulysse
|
13
tools/gatk/dict/test/main.nf
Normal file
13
tools/gatk/dict/test/main.nf
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env nextflow
|
||||
nextflow.preview.dsl = 2
|
||||
include '../../../nf-core/module_testing/check_process_outputs.nf' params(params)
|
||||
include '../main.nf' params(params)
|
||||
|
||||
// Define input channels
|
||||
input = '../../../test-datasets/tools/bwa/index/input/reference.fasta'
|
||||
|
||||
// Run the workflow
|
||||
workflow {
|
||||
gatk_dict(input)
|
||||
// .check_output()
|
||||
}
|
2
tools/gatk/dict/test/nextflow.config
Normal file
2
tools/gatk/dict/test/nextflow.config
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker.enabled = true
|
||||
params.outdir = './results'
|
Loading…
Reference in a new issue