【问题标题】:Problems compressing files using Nextflow使用 Nextflow 压缩文件时出现问题
【发布时间】:2020-08-12 08:03:44
【问题描述】:

我尝试在 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
    """
}

提前谢谢你。

【问题讨论】:

    标签: gzip nextflow


    【解决方案1】:

    我不知道你有什么 tar,但请尝试在选项中添加 h,例如-chzvf,取消引用符号链接。

    【讨论】:

      猜你喜欢
      • 2017-03-28
      • 2021-12-12
      • 2023-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-24
      • 1970-01-01
      相关资源
      最近更新 更多