Skip to content
Snippets Groups Projects
Verified Commit 965d869e authored by Laurent Modolo's avatar Laurent Modolo
Browse files

picard: add normalize_fasta process

parent 0ceb0fc5
No related branches found
Tags v0.2.6
No related merge requests found
...@@ -29,6 +29,31 @@ PicardCommandLine MarkDuplicates \ ...@@ -29,6 +29,31 @@ PicardCommandLine MarkDuplicates \
""" """
} }
params.normalize_fasta = ""
params.normalize_fasta_out = ""
process normalize_fasta {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "$file_id"
if (params.normalize_fasta_out != "") {
publishDir "results/${params.normalize_fasta_out}", mode: 'copy'
}
input:
tuple val(file_id), path(fasta)
output:
tuple val(file_id), path("results/*.fasta.gz"), emit: fasta
script:
"""
mkdir -p results
PicardCommandLine NormalizeFasta \
I=${fasta} \
O=results/${fasta.simpleName}.fasta
gzip results/${fasta.simpleName}.fasta
"""
}
params.index_fasta = "" params.index_fasta = ""
params.index_fasta_out = "" params.index_fasta_out = ""
process index_fasta { process index_fasta {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment