mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
samtools subsampling (#1194)
Co-authored-by: Subazini Thankaswamy Kosalai <sth036@orcus.orebroll.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
parent
30e64becaa
commit
05ba4d901d
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ process SAMTOOLS_VIEW {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def reference = fasta ? "--reference ${fasta} -C" : ""
|
def reference = fasta ? "--reference ${fasta} -C" : ""
|
||||||
def file_type = input.getExtension()
|
def file_type = input.getExtension()
|
||||||
|
@ -29,6 +30,7 @@ process SAMTOOLS_VIEW {
|
||||||
${reference} \\
|
${reference} \\
|
||||||
$args \\
|
$args \\
|
||||||
$input \\
|
$input \\
|
||||||
|
$args2 \\
|
||||||
> ${prefix}.${file_type}
|
> ${prefix}.${file_type}
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
Loading…
Reference in a new issue