Skip to content

Commit

Permalink
add stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramprasadn committed Oct 14, 2024
1 parent 8fdfea5 commit d3c51a6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/local/get_chrom_sizes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,15 @@ process GET_CHROM_SIZES {
cut: \$(echo \$(cut --help 2>&1 | head -n 1 | cut -f1,2 -d' '))
END_VERSIONS
"""

stub:
"""
touch ${fai}.sizes
cat <<-END_VERSIONS > versions.yml
"${task.process}":
cut: \$(echo \$(cut --help 2>&1 | head -n 1 | cut -f1,2 -d' '))
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/local/rename_align_files.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@ process RENAME_ALIGN_FILES {
ln: \$(echo \$(ln --version 2>&1 | head -n 1 | cut -d ' ' -f4))
END_VERSIONS
"""

stub:
"""
ln -s $input ${meta.sample}.${extension}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
ln: \$(echo \$(ln --version 2>&1 | head -n 1 | cut -d ' ' -f4))
END_VERSIONS
"""
}

0 comments on commit d3c51a6

Please sign in to comment.