mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
update to long args
This commit is contained in:
parent
b2e4342105
commit
20ebb89ff9
8 changed files with 21 additions and 21 deletions
|
@ -38,11 +38,11 @@ process PICARD_ADDORREPLACEREADGROUPS {
|
||||||
-Xmx${avail_mem}g \\
|
-Xmx${avail_mem}g \\
|
||||||
--INPUT ${bam} \\
|
--INPUT ${bam} \\
|
||||||
--OUTPUT ${prefix}.bam \\
|
--OUTPUT ${prefix}.bam \\
|
||||||
-ID ${ID} \\
|
--RGID ${ID} \\
|
||||||
-LB ${LIBRARY} \\
|
--RGLB ${LIBRARY} \\
|
||||||
-PL ${PLATFORM} \\
|
--RGPL ${PLATFORM} \\
|
||||||
-PU ${BARCODE} \\
|
--RGPU ${BARCODE} \\
|
||||||
-SM ${SAMPLE} \\
|
--RGSM ${SAMPLE} \\
|
||||||
--CREATE_INDEX true
|
--CREATE_INDEX true
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
|
@ -31,8 +31,8 @@ process PICARD_CLEANSAM {
|
||||||
-Xmx${avail_mem}g \\
|
-Xmx${avail_mem}g \\
|
||||||
CleanSam \\
|
CleanSam \\
|
||||||
${args} \\
|
${args} \\
|
||||||
-I ${bam} \\
|
--INPUT ${bam} \\
|
||||||
-O ${prefix}.bam
|
--OUTPUT ${prefix}.bam
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -31,8 +31,8 @@ process PICARD_CREATESEQUENCEDICTIONARY {
|
||||||
-Xmx${avail_mem}g \\
|
-Xmx${avail_mem}g \\
|
||||||
CreateSequenceDictionary \\
|
CreateSequenceDictionary \\
|
||||||
$args \\
|
$args \\
|
||||||
-R $fasta \\
|
--REFERENCE_SEQUENCE $fasta \\
|
||||||
-O ${prefix}.dict
|
--OUTPUT ${prefix}.dict
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -31,8 +31,8 @@ process PICARD_FIXMATEINFORMATION {
|
||||||
picard \\
|
picard \\
|
||||||
FixMateInformation \\
|
FixMateInformation \\
|
||||||
-Xmx${avail_mem}g \\
|
-Xmx${avail_mem}g \\
|
||||||
-I ${bam} \\
|
--INPUT ${bam} \\
|
||||||
-O ${prefix}.bam \\
|
--OUTPUT ${prefix}.bam \\
|
||||||
--VALIDATION_STRINGENCY ${STRINGENCY}
|
--VALIDATION_STRINGENCY ${STRINGENCY}
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
|
@ -35,11 +35,11 @@ process PICARD_LIFTOVERVCF {
|
||||||
-Xmx${avail_mem}g \\
|
-Xmx${avail_mem}g \\
|
||||||
LiftoverVcf \\
|
LiftoverVcf \\
|
||||||
$args \\
|
$args \\
|
||||||
-I $input_vcf \\
|
--INPUT $input_vcf \\
|
||||||
-O ${prefix}.lifted.vcf.gz \\
|
--OUTPUT ${prefix}.lifted.vcf.gz \\
|
||||||
--CHAIN $chain \\
|
--CHAIN $chain \\
|
||||||
--REJECT ${prefix}.unlifted.vcf.gz \\
|
--REJECT ${prefix}.unlifted.vcf.gz \\
|
||||||
-R $fasta
|
--REFERENCE_SEQUENCE $fasta
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -33,9 +33,9 @@ process PICARD_MARKDUPLICATES {
|
||||||
-Xmx${avail_mem}g \\
|
-Xmx${avail_mem}g \\
|
||||||
MarkDuplicates \\
|
MarkDuplicates \\
|
||||||
$args \\
|
$args \\
|
||||||
-I $bam \\
|
--INPUT $bam \\
|
||||||
-O ${prefix}.bam \\
|
--OUTPUT ${prefix}.bam \\
|
||||||
-M ${prefix}.MarkDuplicates.metrics.txt
|
--METRICS_FILE ${prefix}.MarkDuplicates.metrics.txt
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -33,8 +33,8 @@ process PICARD_MERGESAMFILES {
|
||||||
-Xmx${avail_mem}g \\
|
-Xmx${avail_mem}g \\
|
||||||
MergeSamFiles \\
|
MergeSamFiles \\
|
||||||
$args \\
|
$args \\
|
||||||
${'INPUT='+bam_files.join(' INPUT=')} \\
|
${'--INPUT '+bam_files.join(' --INPUT ')} \\
|
||||||
OUTPUT=${prefix}.bam
|
--OUTPUT ${prefix}.bam
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
picard: \$( echo \$(picard MergeSamFiles --version 2>&1) | grep -o 'Version:.*' | cut -f2- -d:)
|
picard: \$( echo \$(picard MergeSamFiles --version 2>&1) | grep -o 'Version:.*' | cut -f2- -d:)
|
||||||
|
|
|
@ -22,8 +22,8 @@ process PICARD_SORTVCF {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def seq_dict = sequence_dict ? "-SEQUENCE_DICTIONARY $sequence_dict" : ""
|
def seq_dict = sequence_dict ? "--SEQUENCE_DICTIONARY $sequence_dict" : ""
|
||||||
def reference = reference ? "-REFERENCE_SEQUENCE $reference" : ""
|
def reference = reference ? "--REFERENCE_SEQUENCE $reference" : ""
|
||||||
def avail_mem = 3
|
def avail_mem = 3
|
||||||
if (!task.memory) {
|
if (!task.memory) {
|
||||||
log.info '[Picard SortVcf] Available memory not known - defaulting to 3GB. Specify process memory requirements to change this.'
|
log.info '[Picard SortVcf] Available memory not known - defaulting to 3GB. Specify process memory requirements to change this.'
|
||||||
|
|
Loading…
Reference in a new issue