我尝试在 Nextflow 管道中压缩后缀为“.js”的文件。我的问题是“result.tar.gz”存档只包含指向原始文件的软链接,而不是实际文件。
有人知道这个问题的答案吗?
我的示例代码:
#!/usr/bin/env nextflow
a_ch = Channel
.fromPath('a.js')
b_ch = Channel
.fromPath('b.js')
process testTar {
publishDir "." ,mode: 'copy' , pattern: "*.tar.gz"
input:
path "a.js" from a_ch
path "b.js" from b_ch
output:
path("result.tar.gz") into results_ch
"""
tar -czvf "result.tar.gz" *.js
"""
}
先感谢您。