Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing/wrong SENTIEON_DEDUP stub output #4632

Merged
merged 6 commits into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions modules/nf-core/sentieon/dedup/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,17 @@ process SENTIEON_DEDUP {
} else {
fix_ld_library_path = ''
}

def prefix = task.ext.prefix ?: "${meta.id}"
def suffix = task.ext.suffix ?: ".cram" // The suffix should be either ".cram" or ".bam".
def metrics = task.ext.metrics ?: "${prefix}${suffix}.metrics"
"""
$fix_ld_library_path

touch ${prefix}.cram
touch ${prefix}.cram.crai
touch ${prefix}.metrics
touch ${prefix}.score
touch "${prefix}${suffix}"
touch "${prefix}${suffix}\$(echo ${suffix} | sed 's/m\$/i/')"
touch "${metrics}"
touch "${metrics}.multiqc.tsv"
touch "${prefix}.score"

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
Loading