Skip to content

Move python scripts into bin dir #6

@adamjtaylor

Description

@adamjtaylor

Your nextflow tower run ended with the error

python3: can't open file '/.nextflow/assets/ncihtan/nf-htan-qc/modules/download_synapse.py': [Errno 2] No such file or directory

In the relevant process you put the path to the script as

python3 ${baseDir}/modules/download_synapse.py ${synapse_id}

A more robust approach to pointing towards scripts in Nextflow is to

  • Put the script in the bin directory of the workflow repo
  • Ensure it has a python shebang at the top (#!/usr/bin/env python)
  • Ensure it is executable with chmod +x <path-to-script>
  • Evoke it without saying python eg just download_synapse.py <samplesheet>

See: https://www.nextflow.io/docs/latest/sharing.html#the-bin-directory

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions